melissa_data 1.0.1 → 1.1.0

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
- SHA1:
3
- metadata.gz: aa6ec9b360723217a1e6a94b3d8b8d2d56552441
4
- data.tar.gz: af5fbe5e39dba423116290eab1d7225ca16cf178
2
+ SHA256:
3
+ metadata.gz: ed1d05cdd9715224286358f5b5047a2407b21cc449099b88d34416db699c92af
4
+ data.tar.gz: a3c9257371fa902c9d73e2524739a459338fd90d5251a314f6d455fb20385745
5
5
  SHA512:
6
- metadata.gz: b6764d3f7df57bf344d3cf9786fb2837d022e1be1cca361bbe4fd3a60d34fca9b685ac9203bff6d116cc79f0707daaa80faa79328f2ca7cf913d128eb97f335e
7
- data.tar.gz: 1e74eecaf87a47c458d4f7672d4e3baedd896bf5bc65bf4a7e3c92ec97ec4c278d90880fcacf768151e7b72a61fb89c2d75f1cb6967e19cb1d3c74baf96aa651
6
+ metadata.gz: 68040c66b3d698c5c55bb9413559eb3ed126828476fac9baf3894a144dd5a60c1b325bc0af5a0682c31c8b0a101a8e93e83fc3d0eafead0aee2b0fd179eda613
7
+ data.tar.gz: 99d954fdc7a37ebb84f45d0518abbeb0d554e671bd5d40069bed14d05ee168c07028a9942b511e43e3cd6862c16824a8ead142fe4e010d029936ff9cefd7eed6
@@ -1 +1 @@
1
- ruby-2.3.3
1
+ ruby-2.5.1
data/CHANGELOG CHANGED
@@ -1,3 +1,4 @@
1
1
  # To be added to with each release from here onward
2
2
 
3
- CURRENT: 1.0.1
3
+ CURRENT: 1.1.0
4
+ PREV: 1.0.1
@@ -1,3 +1,3 @@
1
1
  module MelissaData
2
- VERSION = '1.0.1'
2
+ VERSION = '1.1.0'
3
3
  end
@@ -28,6 +28,11 @@ module MelissaData
28
28
  @response
29
29
  end
30
30
 
31
+ def property_by_address(address:)
32
+ @response = process(@client.property_by_address(address: address), 'property')
33
+ resolve_response
34
+ end
35
+
31
36
  def address(address:, city:, state:, zip:, country: "USA")
32
37
  resp = viperize_hash(@client.address(address: address,
33
38
  city: city,
@@ -39,7 +39,21 @@ module MelissaData
39
39
  def property_by_address_key(address_key:)
40
40
  raw = default_connection(BASE_URL).get '/v4/WEB/LookupProperty/', {
41
41
  id: MelissaData.web_smart_id,
42
- AddressKey: address_key,
42
+ addressKey: address_key,
43
+ cols: 'GrpAll',
44
+ format: 'json'
45
+ }
46
+
47
+ res = JSON.parse(raw.body).deep_transform_keys(&:underscore)
48
+ res&.with_indifferent_access
49
+ end
50
+
51
+ def property_by_address(address:)
52
+ raw = default_connection(BASE_URL).get '/v4/WEB/LookupProperty/', {
53
+ id: MelissaData.web_smart_id,
54
+ ff: address,
55
+ cols: 'GrpAll',
56
+ addressKey: nil,
43
57
  format: 'json'
44
58
  }
45
59
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: melissa_data
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Grayson
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2018-06-01 00:00:00.000000000 Z
12
+ date: 2018-12-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: geokit
@@ -192,7 +192,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
192
192
  version: '0'
193
193
  requirements: []
194
194
  rubyforge_project:
195
- rubygems_version: 2.6.12
195
+ rubygems_version: 2.7.7
196
196
  signing_key:
197
197
  specification_version: 4
198
198
  summary: A simple interface to Melissa Data's Web Smart Property API