melissa_data 0.1.1 → 0.2.0

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
  SHA1:
3
- metadata.gz: 815c3aab597d59d45f0d2b5b6e1090240ca7906c
4
- data.tar.gz: 7e250c2c21c8a04507da1572411cc39fceb450b5
3
+ metadata.gz: fb6fcff59f19d65820ff78dbf7ad690794bcca08
4
+ data.tar.gz: b25789763463c70c2cf4142e9a64563f9581d782
5
5
  SHA512:
6
- metadata.gz: 597980ef52b375f86ba4fc63890a6bd27435485a325dde170fd4610d682d23c65870e21b9cbb9f791b736242dd199f3a4f8ab3faf19cabc4e4bf8c43acb09839
7
- data.tar.gz: bd0b48b5c3b9750628466aa3e1391716ec7080781e3c1a4af0f1778727a9a0cf306fb9563ffe3983a916eee192a37d4841250b69a5d4cd0992ce2d0df31a4156
6
+ metadata.gz: a3127755251d2122a0624c60e21df23abb47e8244caaa16a9c360f9739561f8206556d5e090bbbd1878a891cc488c31e3a61241a0b796ed426c31cf159bc7296
7
+ data.tar.gz: f2b374a9ebb33282a00c3de291f17dbd83f94861b673be6343b46c72f078e841363b23254e95dcca029a9e6f84eca6298e5d49a92dcc0a9822f72e5262f23474
data/.ruby_version ADDED
@@ -0,0 +1 @@
1
+ 2.2.1
data/README.md CHANGED
@@ -28,8 +28,11 @@ Once you have these, you may use the following client. To instantiate a client:
28
28
  ```ruby
29
29
  irb> MelissaData.web_smart_id = ENV['MELISSA_DATA_WEB_SMART_ID']
30
30
  irb> client = MelissaData::WebSmart::Client.new
31
- irb> client.property(some_fips_code, some_apn)
32
- # => property data
31
+ irb> client.property(fips: some_fips_code, apn: some_apn)
32
+ # => your property data
33
+ # since it uses keyword arguments, order does not matter
34
+ irb> client.property(apn: some_apn, fips: some_fips_code)
35
+ # => your property data
33
36
  ```
34
37
 
35
38
  Data comes in the following form:
@@ -1,3 +1,3 @@
1
1
  module MelissaData
2
- VERSION = "0.1.1"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -1,8 +1,8 @@
1
1
  module MelissaData
2
2
  module WebSmart
3
3
  class Client
4
- def property(fips, apn)
5
- MelissaData::WebSmart::PropertyAPI.new.property(fips, apn)
4
+ def property(fips:, apn:)
5
+ MelissaData::WebSmart::PropertyAPI.new.property(fips: fips, apn: apn)
6
6
  end
7
7
  end
8
8
  end
@@ -4,7 +4,7 @@ require 'nokogiri'
4
4
  module MelissaData
5
5
  module WebSmart
6
6
  class PropertyAPI
7
- def property(fips, apn)
7
+ def property(fips:, apn:)
8
8
  resp = RestClient.get('https://property.melissadata.net/v3/REST/Service.svc/doLookup',
9
9
  { params: { id: MelissaData.web_smart_id,
10
10
  fips: fips,
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: 0.1.1
4
+ version: 0.2.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: 2015-10-02 00:00:00.000000000 Z
12
+ date: 2015-10-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri
@@ -119,6 +119,7 @@ extra_rdoc_files: []
119
119
  files:
120
120
  - ".gitignore"
121
121
  - ".rspec"
122
+ - ".ruby_version"
122
123
  - ".travis.yml"
123
124
  - CODE_OF_CONDUCT.md
124
125
  - Gemfile
@@ -154,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
154
155
  version: '0'
155
156
  requirements: []
156
157
  rubyforge_project:
157
- rubygems_version: 2.4.5
158
+ rubygems_version: 2.4.6
158
159
  signing_key:
159
160
  specification_version: 4
160
161
  summary: A simple interface to Melissa Data's Web Smart Property API