geocode_records 0.1.3 → 0.1.4

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: 21a4000dec35d9e348e5d08e8cc134ea770c8b2f
4
- data.tar.gz: a90cf2b53712ce6fd19cad8c332229f55854a943
3
+ metadata.gz: bb43330e498049979f259e4c84056e035773e6e5
4
+ data.tar.gz: 4b95dcbde1816170fe530cff54c0b29ea9fac43c
5
5
  SHA512:
6
- metadata.gz: 34a891649b15bcd2bbce05570e780dc38ea1e48afe3fab2fefcace3dfca7bbff592c74cf329c6303d39a733b2780f868862b4ed2d68f8720a6e88f2478ba99ef
7
- data.tar.gz: be33ccd4bca6261e6a9e2661c931576dddf303d5279eb366b13127c660932f81ad270172410fc49a70d543fc358d5b85d20e6a873cc5e58af54f4739679a7621
6
+ metadata.gz: ee3b4dda7267a126fccaeb20c98c461ffc3068ca23bd3fe27f48d2731584649e1325d5dc49b0cd10873db6db3cc2f01d63e4660af14727a98ffdce2165302f2e
7
+ data.tar.gz: 615be6818087fa934bb348ab9caf468b9f8e7bffd3e4bbb2d730328d6657e54ec5e9c26b1123fecfb9a391b29897b659d48f8b44eddb7876fbe9d26c3565490e
data/CHANGELOG CHANGED
@@ -1,3 +1,9 @@
1
+ 0.1.4 / 2017-07-11
2
+
3
+ * Enhancements
4
+
5
+ * Compatible with AR 4.2 and 5.x
6
+
1
7
  0.1.3 / 2016-06-20
2
8
 
3
9
  * Enhancements
@@ -1,3 +1,3 @@
1
1
  class GeocodeRecords
2
- VERSION = '0.1.3'
2
+ VERSION = '0.1.4'
3
3
  end
@@ -63,7 +63,12 @@ class GeocodeRecords
63
63
  end
64
64
 
65
65
  def table_name
66
- options[:table_name] || records.engine.table_name
66
+ @table_name = begin
67
+ memo = options[:table_name]
68
+ memo ||= records.table_name if records.respond_to?(:table_name)
69
+ memo ||= records.engine.table_name
70
+ memo
71
+ end
67
72
  end
68
73
 
69
74
  def pasqual
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geocode_records
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seamus Abshere
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-20 00:00:00.000000000 Z
11
+ date: 2017-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -212,7 +212,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
212
212
  version: '0'
213
213
  requirements: []
214
214
  rubyforge_project:
215
- rubygems_version: 2.2.2
215
+ rubygems_version: 2.6.8
216
216
  signing_key:
217
217
  specification_version: 4
218
218
  summary: Geocode an ActiveRecord::Relation with node_smartystreets
@@ -220,4 +220,3 @@ test_files:
220
220
  - spec/geocode_records/smarty_streets_spec.rb
221
221
  - spec/geocode_records_spec.rb
222
222
  - spec/spec_helper.rb
223
- has_rdoc: