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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66511eae5a8cb2b504b1040cb1339974295916c5
|
4
|
+
data.tar.gz: 2700f96a4817f91aeee66f461cc80638b56fb44b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f44686c1e06bb4d226a2c6327d1b604b060bb6437d54361de421ead725fe90adb2c3071c493dd6b3a6aecdda81da9cbb1d852ec2996060d219fecfd91d555893
|
7
|
+
data.tar.gz: b5bf876569b00f5ef302bbabc4199f143fb59d22841999f2778fee56680dc6f67f2ae560f35d475b90e3dc8334a04a9fd27f6636459ea2eca24acb88333734f6
|
data/Gemfile.lock
CHANGED
@@ -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;"
|
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.
|
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-
|
11
|
+
date: 2016-11-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|