Skip to content

Commit

Permalink
Fixed loading error in Rails 7.0.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ryankopf committed Jan 24, 2023
1 parent 178863b commit e3a9f6e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions geokit-rails.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "simplecov-rcov"
spec.add_development_dependency 'net-http'
spec.add_development_dependency 'rake'
spec.add_development_dependency 'rexml'
spec.add_development_dependency 'test-unit'
spec.add_development_dependency "mocha", "~> 0.9"
spec.add_development_dependency 'coveralls_reborn'
Expand Down
1 change: 0 additions & 1 deletion lib/geokit-rails/ip_geocode_lookup.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require 'yaml'
require 'active_support/concern'

module Geokit
Expand Down
6 changes: 5 additions & 1 deletion test/boot.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@
$LOAD_PATH << (PLUGIN_ROOT + 'test/models')

config_file = PLUGIN_ROOT + 'test/database.yml'
db_config = YAML::load(IO.read(config_file))
if defined?(YAML.safe_load)
db_config = YAML.safe_load(IO.read(config_file), aliases: true)
else
db_config = YAML::load(IO.read(config_file))
end
logger_file = PLUGIN_ROOT + "test/#{ADAPTER}-debug.log"
schema_file = PLUGIN_ROOT + 'test/schema.rb'

Expand Down

0 comments on commit e3a9f6e

Please sign in to comment.