activerecord-postgres-earthdistance 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 837c44a62054d3207412a8426a108d91c3ee565a
4
- data.tar.gz: 51eb68df69f6259f9ed85cfa01a8b699bdfdc59d
3
+ metadata.gz: 66511eae5a8cb2b504b1040cb1339974295916c5
4
+ data.tar.gz: 2700f96a4817f91aeee66f461cc80638b56fb44b
5
5
  SHA512:
6
- metadata.gz: bc1e1bb9e5ee4f5abf5d282cc0580ddde5994a7011e0948413b1191549fe78850835eb9aee996fa4a5faa12534124848371c327e82a0b36e24f07d934881f86d
7
- data.tar.gz: b0a529f93d2adcba785c74c7440ac7ef45eae07175b7ac7a670e388046dc589c6082c9dc63b0d698c7070d97d91cfb3da8ae61afab4a1531151090341f3711ee
6
+ metadata.gz: f44686c1e06bb4d226a2c6327d1b604b060bb6437d54361de421ead725fe90adb2c3071c493dd6b3a6aecdda81da9cbb1d852ec2996060d219fecfd91d555893
7
+ data.tar.gz: b5bf876569b00f5ef302bbabc4199f143fb59d22841999f2778fee56680dc6f67f2ae560f35d475b90e3dc8334a04a9fd27f6636459ea2eca24acb88333734f6
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- activerecord-postgres-earthdistance (0.5.0)
4
+ activerecord-postgres-earthdistance (0.5.1)
5
5
  activerecord (>= 3.1)
6
6
  pg
7
7
  rake
@@ -60,4 +60,4 @@ DEPENDENCIES
60
60
  rspec (~> 2.11)
61
61
 
62
62
  BUNDLED WITH
63
- 1.13.1
63
+ 1.13.6
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift lib unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "activerecord-postgres-earthdistance"
7
- s.version = "0.5.0"
7
+ s.version = "0.5.1"
8
8
 
9
9
  s.platform = Gem::Platform::RUBY
10
10
  s.license = "MIT"
@@ -4,12 +4,11 @@ module ActiveRecord
4
4
  module ConnectionAdapters
5
5
  module SchemaStatements
6
6
  def add_earthdistance_index(table_name, options = {})
7
- execute("CREATE INDEX %s_earthdistance_ix ON %s USING gist (ll_to_earth(%s, %s));")
8
- .format([table_name, table_name, (options[:lat] || "lat"), (options[:lng] || "lng")])
7
+ execute("CREATE INDEX %s_earthdistance_ix ON %s USING gist (ll_to_earth(%s, %s));" % [table_name, table_name, (options[:lat] || "lat"), (options[:lng] || "lng")])
9
8
  end
10
9
 
11
10
  def remove_earthdistance_index(table_name)
12
- execute("DROP INDEX %s_earthdistance_ix;").format([table_name])
11
+ execute("DROP INDEX %s_earthdistance_ix;" % [table_name])
13
12
  end
14
13
  end
15
14
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-postgres-earthdistance
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Diogo Biazus
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-06 00:00:00.000000000 Z
11
+ date: 2016-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord