Skip to content

Commit

Permalink
Updates that are necessary to pass tests. Tie a specific simplecov ve…
Browse files Browse the repository at this point in the history
…rsion due to a conflict and fix errors in the sqlite adapter. Tests all pass using rake test after this.
  • Loading branch information
Ryan committed Jan 7, 2021
1 parent cc5fd43 commit 1f3be32
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion geokit-rails.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
spec.add_dependency 'rails', '>= 3.0'
spec.add_dependency 'geokit', '~> 1.5'
spec.add_development_dependency "bundler", "> 1.0"
spec.add_development_dependency "simplecov"
spec.add_development_dependency "simplecov", "~> 0.16.1"
spec.add_development_dependency "simplecov-rcov"
spec.add_development_dependency 'rake'
spec.add_development_dependency 'test-unit'
Expand Down
4 changes: 2 additions & 2 deletions lib/geokit-rails/adapters/sqlite.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module Adapters
class SQLite < Abstract

def self.add_numeric(name)
@@connection.create_function name, 1, :numeric do |func, *args|
@@connection.create_function name, 1, SQLite3::Constants::TextRep::ANY do |func, *args|
func.result = yield(*args)
end
end
Expand Down Expand Up @@ -50,4 +50,4 @@ def flat_distance_sql(origin, lat_degree_units, lng_degree_units)

end
end
end
end
2 changes: 1 addition & 1 deletion lib/geokit-rails/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module GeokitRails
VERSION = "2.3.1"
VERSION = "2.3.2"
end

0 comments on commit 1f3be32

Please sign in to comment.