mirror of
https://github.com/neocities/neocities.git
synced 2025-07-21 18:16:07 +02:00
mostly finished port to ruby3
This commit is contained in:
parent
a9dd102383
commit
0ca1473d22
30 changed files with 765 additions and 731 deletions
|
@ -12,7 +12,14 @@ Bundler.require
|
|||
Bundler.require :development if ENV['RACK_ENV'] == 'development'
|
||||
|
||||
require 'tilt/erubis'
|
||||
require 'active_support/core_ext/integer/time'
|
||||
require 'active_support'
|
||||
require 'active_support/time'
|
||||
|
||||
class File
|
||||
def self.exists?(val)
|
||||
self.exist?(val)
|
||||
end
|
||||
end
|
||||
|
||||
Dir['./ext/**/*.rb'].each {|f| require f}
|
||||
|
||||
|
@ -162,4 +169,6 @@ $gandi = Gandi::Session.new $config['gandi_api_key'], gandi_opts
|
|||
|
||||
$image_optim = ImageOptim.new pngout: false, svgo: false
|
||||
|
||||
Money.locale_backend = nil
|
||||
Money.locale_backend = nil
|
||||
Money.default_currency = Money::Currency.new("USD")
|
||||
Money.rounding_mode = BigDecimal::ROUND_HALF_UP
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue