lob 2.3.0 → 2.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/CHANGELOG.md +3 -0
- data/README.md +1 -16
- data/examples/csv_postcards/create_postcards.rb +1 -1
- data/lib/lob/v1/route.rb +4 -0
- data/lib/lob/version.rb +1 -1
- data/spec/lob/v1/address_spec.rb +4 -1
- data/spec/lob/v1/route_spec.rb +16 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a8c0c830106e832bbae29edd30ba92113856d60
|
4
|
+
data.tar.gz: cd9b46196b888da5ea9e7a4d85d692283b3c2adf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bed40a4effe60e29f7ab30dbac740c0fc4be8d99a170acf0349a62d053878261d7d1d823f21fc35b731ef17d4766860090390949b6bd40fb2b0bbcf5ea017e0c
|
7
|
+
data.tar.gz: 7686f7bf43a5f9ab78e08334dd072342569795d3b0c754518cf5f9dd37d5dc754ce57c3eb037e4af7de99daaca7211c8761956534fdddd14c05aa49022f2430a
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
## [**2.4.0**](https://github.com/lob/lob-ruby/releases/tag/v2.4.0)
|
2
|
+
- [**#136**] (https://github.com/lob/lob-ruby/pull/136) Adds find to routes
|
3
|
+
|
1
4
|
## [**2.3.0**](https://github.com/lob/lob-ruby/releases/tag/v2.3.0)
|
2
5
|
- [**#130**] (https://github.com/lob/lob-ruby/pull/130) Removed services endpoint support
|
3
6
|
|
data/README.md
CHANGED
@@ -30,8 +30,7 @@ Here's a general overview of the Lob services available, click through to read m
|
|
30
30
|
- [Postcards API](https://lob.com/services/postcards)
|
31
31
|
- [Letters API](https://lob.com/services/letters)
|
32
32
|
- [Checks API](https://lob.com/services/checks)
|
33
|
-
- [
|
34
|
-
- [Area Mail API](https://lob.com/services/sam)
|
33
|
+
- [Area Mail API](https://lob.com/services/area)
|
35
34
|
- [Address Verification API](https://lob.com/verification/address)
|
36
35
|
|
37
36
|
### Registration
|
@@ -130,19 +129,6 @@ There are simple scripts to demonstrate how to create all the core Lob products
|
|
130
129
|
- [Delete a Bank Account](https://lob.com/docs/ruby#bankaccounts_delete)
|
131
130
|
- [Verify a Bank Account](https://lob.com/docs/ruby#bankaccounts_verify)
|
132
131
|
- [List all Bank Accounts](https://lob.com/docs/ruby#bankaccounts_list)
|
133
|
-
- **Prints API**
|
134
|
-
- [Jobs](https://lob.com/docs/ruby#jobs)
|
135
|
-
- [Create a Job](https://lob.com/docs/ruby#jobs_create)
|
136
|
-
- [Retrieve a Job](https://lob.com/docs/ruby#jobs_retrieve)
|
137
|
-
- [List all Jobs](https://lob.com/docs/ruby#jobs_list)
|
138
|
-
- [Objects](https://lob.com/docs/ruby#objects)
|
139
|
-
- [Create an Object](https://lob.com/docs/ruby#objects_create)
|
140
|
-
- [Retrieve an Object](https://lob.com/docs/ruby#objects_retrieve)
|
141
|
-
- [Delete an Object](https://lob.com/docs/ruby#objects_delete)
|
142
|
-
- [List all Objects](https://lob.com/docs/ruby#objects_list)
|
143
|
-
- [Settings](https://lob.com/docs/ruby#settings)
|
144
|
-
- [Retrieve a Setting](https://lob.com/docs/ruby#settings_retrieve)
|
145
|
-
- [List all Settings](https://lob.com/docs/ruby#settings_list)
|
146
132
|
- **Area Mail API**
|
147
133
|
- [Areas](https://lob.com/docs/ruby#areas)
|
148
134
|
- [Create an Area Mailing](https://lob.com/docs/ruby#areas_create)
|
@@ -160,7 +146,6 @@ There are simple scripts to demonstrate how to create all the core Lob products
|
|
160
146
|
- [API Changelog](https://lob.com/docs/ruby#changelog)
|
161
147
|
- [HTML Examples](https://lob.com/docs/ruby#html-examples)
|
162
148
|
- [Image Prepping](https://lob.com/docs/ruby#prepping)
|
163
|
-
- [Prints API Templates](https://lob.com/docs/ruby#prints-templates)
|
164
149
|
|
165
150
|
## Contributing
|
166
151
|
|
data/lib/lob/v1/route.rb
CHANGED
data/lib/lob/version.rb
CHANGED
data/spec/lob/v1/address_spec.rb
CHANGED
data/spec/lob/v1/route_spec.rb
CHANGED
@@ -4,6 +4,16 @@ describe Lob::V1::Route do
|
|
4
4
|
|
5
5
|
subject { Lob(api_key: ENV["LOB_API_KEY"]) }
|
6
6
|
|
7
|
+
describe "find" do
|
8
|
+
|
9
|
+
it "should fetch a route" do
|
10
|
+
zip_code = "94158"
|
11
|
+
routes = subject.routes.find(zip_code)
|
12
|
+
routes["zip_code"].must_equal(zip_code)
|
13
|
+
end
|
14
|
+
|
15
|
+
end
|
16
|
+
|
7
17
|
describe "list" do
|
8
18
|
|
9
19
|
it "should list routes" do
|
@@ -18,6 +28,12 @@ describe Lob::V1::Route do
|
|
18
28
|
routes["zip_code"].must_equal(zip_code)
|
19
29
|
end
|
20
30
|
|
31
|
+
it "should list routes given multiple zip codes" do
|
32
|
+
zip_codes = ["94107", "94158"]
|
33
|
+
routes = subject.routes.list(zip_codes: zip_codes)
|
34
|
+
routes["data"][0]["zip_code"].must_equal(zip_codes[0])
|
35
|
+
end
|
36
|
+
|
21
37
|
end
|
22
38
|
|
23
39
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lob
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lob
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|