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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2bda40363bc8b3099785ae4cbae1c0f63b430e2d8356139b665719c1e71fb72d
4
- data.tar.gz: cff05669b537733cf977ad1a7851ef97c7137f37654e331f421a95ea1c1475df
3
+ metadata.gz: 16289cb3a4fed2c297aaaac3a8a6cce2922fb471d1bd9639f08ece70888403b3
4
+ data.tar.gz: 93254358f562d5f2f07d6ad90262212638c8d2339cb29b0e59345122c57fe470
5
5
  SHA512:
6
- metadata.gz: de9bb73bb6f5c6b73ab1ac32688723f78e789c8fa8160a7dbda8ae1f530db1e768f8becd4375029062c01cc1df6d65bbd76aad9b605305ee18a8ba9f75e5017c
7
- data.tar.gz: fe0fe3715744ff12df6ae1723306041ecec07c6a1bb9ce7dec1189c171fb8cf17c9282433734b8d7575c0c9d448e9d6b6346b24939956405fd88e2a3a63266a6
6
+ metadata.gz: 403e8be91fa4f02e2de8b225ba80606fb6f6b260d36aa1ea7598053d28c0837f93f17d8aa6c4465194f6d5eb647048c12ac49c41efc2873a20ac61f58109c109
7
+ data.tar.gz: 41c4fa905b663f49667463a15548ec586e534d04b9cd9e59a764c26c4f5235e98582dca7a3b843444fdaafbcabfc18e14ea058efdc7f2a635b4ca66743381307
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Estated
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.0-SNAPSHOT"
3
3
  end
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.3.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-16 00:00:00.000000000 Z
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: '0'
142
+ version: 1.3.1
143
143
  requirements: []
144
144
  rubygems_version: 3.0.6
145
145
  signing_key: