mirror of
https://github.com/neocities/neocities.git
synced 2025-08-03 16:21:52 +02:00
catch branch up with master
This commit is contained in:
commit
af0a31d6a2
102 changed files with 4055 additions and 919 deletions
|
@ -75,18 +75,6 @@ if ENV['RACK_ENV'] == 'development'
|
|||
end
|
||||
# :nocov:
|
||||
|
||||
# :nocov:
|
||||
if $config['pubsub_url']
|
||||
$pubsub_pool = ConnectionPool.new(size: 10, timeout: 5) {
|
||||
Redis.new url: $config['pubsub_url']
|
||||
}
|
||||
end
|
||||
|
||||
if $config['pubsub_url'].nil? && ENV['RACK_ENV'] == 'production'
|
||||
raise 'pubsub_url is missing from config'
|
||||
end
|
||||
# :nocov:
|
||||
|
||||
Sequel.datetime_class = Time
|
||||
Sequel.extension :core_extensions
|
||||
Sequel.extension :migration
|
||||
|
@ -138,3 +126,11 @@ PayPal::Recurring.configure do |config|
|
|||
config.password = $config['paypal_api_password']
|
||||
config.signature = $config['paypal_api_signature']
|
||||
end
|
||||
|
||||
require 'csv'
|
||||
|
||||
$country_codes = {}
|
||||
|
||||
CSV.foreach("./files/country_codes.csv") do |row|
|
||||
$country_codes[row.last] = row.first
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue