estated 0.3.0 → 0.4.0.pre.SNAPSHOT
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/estated/client.rb +9 -0
- data/lib/estated/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 16289cb3a4fed2c297aaaac3a8a6cce2922fb471d1bd9639f08ece70888403b3
|
4
|
+
data.tar.gz: 93254358f562d5f2f07d6ad90262212638c8d2339cb29b0e59345122c57fe470
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 403e8be91fa4f02e2de8b225ba80606fb6f6b260d36aa1ea7598053d28c0837f93f17d8aa6c4465194f6d5eb647048c12ac49c41efc2873a20ac61f58109c109
|
7
|
+
data.tar.gz: 41c4fa905b663f49667463a15548ec586e534d04b9cd9e59a764c26c4f5235e98582dca7a3b843444fdaafbcabfc18e14ea058efdc7f2a635b4ca66743381307
|
data/lib/estated/client.rb
CHANGED
@@ -31,7 +31,16 @@ module Estated
|
|
31
31
|
result, result_is_cacheable = yield
|
32
32
|
|
33
33
|
if Estated.config.cache_enabled? && result_is_cacheable
|
34
|
+
# Cache original request
|
34
35
|
RequestCache.write(path, params, result)
|
36
|
+
|
37
|
+
# Also cache fips/apn request format
|
38
|
+
fips = result.dig('data', 'parcel', 'fips_code')
|
39
|
+
apn = result.dig('data', 'parcel', 'apn_unformatted')
|
40
|
+
|
41
|
+
if fips && apn
|
42
|
+
RequestCache.write(path, { fips: fips, apn: apn }, result)
|
43
|
+
end
|
35
44
|
end
|
36
45
|
|
37
46
|
result
|
data/lib/estated/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: estated
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0.pre.SNAPSHOT
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex VKO
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date: 2020-03-
|
13
|
+
date: 2020-03-17 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: httparty
|
@@ -137,9 +137,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
137
137
|
version: 2.3.0
|
138
138
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
139
139
|
requirements:
|
140
|
-
- - "
|
140
|
+
- - ">"
|
141
141
|
- !ruby/object:Gem::Version
|
142
|
-
version:
|
142
|
+
version: 1.3.1
|
143
143
|
requirements: []
|
144
144
|
rubygems_version: 3.0.6
|
145
145
|
signing_key:
|