lob 4.1.1 → 4.2.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
2
  SHA1:
3
- metadata.gz: d5cfe05235642362fa53cba2a021265746216133
4
- data.tar.gz: 9ebd24dfafb61a6ba0f061fd339d520e204cde1c
3
+ metadata.gz: 3476691f58ba7bfaf6cbedb44a75cdbd249d51e7
4
+ data.tar.gz: 9d1d4215c142196c340e4abcdc75d0a0117c1382
5
5
  SHA512:
6
- metadata.gz: f6da1ef9315c24c5621466370f2db320d4f2d5c0ea29395ac387fe982f2673bacf116ea3ffc3f7fde631f9b2f4670f3baa2a6a650e2299c6235caabbd3c9e9bf
7
- data.tar.gz: d6a8be68a93fd93b4fca6a9ec6651d35629638f4e53d01aa3d0d0271344e7151eed83106e9107960beee3316031eb5a8ebfdb56baa82fcaf9809a4e04bbcb3f0
6
+ metadata.gz: 07ccac963f8d375d83a79434311be0a954def5a529d3cda0df193198dfe24d2a795e8e713299cf098f4129f832d06432633fa183a0fb2ca499f010790ef9e1fc
7
+ data.tar.gz: 1de8c5fcae8eb8b1ddeb2e7d8235525476db6f554f53d1ab106204bac42fcdf63ee4b81c50b904670b709bd6157866eec7d0182ac854ed96bd32382e4fc1bd3c
data/.travis.yml CHANGED
@@ -3,7 +3,8 @@ language: ruby
3
3
  sudo: false
4
4
 
5
5
  rvm:
6
- - jruby
6
+ - jruby-9.0.5.0
7
+ - jruby-9.1.9.0
7
8
  - 2.1
8
9
  - 2.2
9
10
  - 2.3
@@ -12,4 +13,7 @@ rvm:
12
13
  env:
13
14
  JRUBY_OPTS=--2.0
14
15
 
16
+ before_install:
17
+ - gem install bundler
18
+
15
19
  script: bundle exec rake test
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## [**4.2.0**](https://github.com/lob/lob-ruby/releases/tag/v4.2.0)
2
+ - [**169**](https://github.com/lob/lob-ruby/pull/169) Support 'case' param for us_verifications
3
+ - [**168**](https://github.com/lob/lob-ruby/pull/168) tweak wording around handling numbers with leading zeros
4
+ - [**167**](https://github.com/lob/lob-ruby/pull/167) remove duplicate test
5
+ - [**166**](https://github.com/lob/lob-ruby/pull/166) Fix commented check amount in checks.rb example
6
+
7
+ ## [**4.1.2**](https://github.com/lob/lob-ruby/releases/tag/v4.1.2)
8
+ - [**#165**] (https://github.com/lob/lob-ruby/pull/165) Remove states and countries API resources. Also remove the ability to use postcard.message.
9
+
1
10
  ## [**4.1.1**](https://github.com/lob/lob-ruby/releases/tag/v4.1.1)
2
11
  - [**#160**] (https://github.com/lob/lob-ruby/pull/160) adds capability to pass in idempotency headers
3
12
 
data/README.md CHANGED
@@ -73,7 +73,7 @@ lob = Lob::Client.new(api_key: "your-api-key", api_version: "2014-12-18")
73
73
 
74
74
  When using zip codes with zero-prefixes, always quote them. For example when specifying `02125`, pass it as a string `"02125"`, instead of an integer.
75
75
 
76
- The Ruby interpreter assumes it's not of base-10 and tries to convert it to base-10 number. So that might result in an entirely different zip-code than intended.
76
+ The Ruby interpreter interprets a number with a leading zero as an octal (i.e., base-8) number and converts it to a base-10 number. Thus `01000` is converted to the base-10 value `512` (since `8*8*8=512`). So not quoting might result in an entirely different zip-code than intended.
77
77
 
78
78
  #### Accessing Response Headers
79
79
 
@@ -175,11 +175,6 @@ There are simple scripts to demonstrate how to create all the core Lob objects (
175
175
  - [The Routes Object](https://lob.com/docs/ruby#routes_object)
176
176
  - [Retrieve Routes](https://lob.com/docs/ruby#routes_retrieve)
177
177
  - [List all Routes](https://lob.com/docs/ruby#routes_list)
178
- - **Resources**
179
- - [Countries](https://lob.com/docs/ruby#countries)
180
- - [List all Countries](https://lob.com/docs/ruby#countries_list)
181
- - [States](https://lob.com/docs/ruby#states)
182
- - [List all States](https://lob.com/docs/ruby#states_list)
183
178
  - **Appendix**
184
179
  - [API Changelog](https://lob.com/docs/ruby#changelog)
185
180
  - [The Tracking Event Object](https://lob.com/docs/ruby#tracking_event_object)
data/examples/checks.rb CHANGED
@@ -35,7 +35,7 @@ bank_account = lob.bank_accounts.create(
35
35
  puts bank_account
36
36
  lob.bank_accounts.verify(bank_account['id'], amounts: [23, 12])
37
37
 
38
- # send a $1000 check using an already created bank and address
38
+ # send a $100 check using an already created bank and address
39
39
  puts lob.checks.create(
40
40
  description: "Test Check",
41
41
  check_number: "10000",
@@ -82,5 +82,5 @@ puts lob.postcards.create(
82
82
  metadata: { campaign: "Summer 2015 Beach" },
83
83
  merge_variables: { name: "Albert", event: "Summer 2015 Beach-athon" },
84
84
  front: html,
85
- message: "Please RSVP as soon as possible to reserve your lounge chair."
85
+ back: "<h1>Please RSVP as soon as possible to reserve your lounge chair.</h1>"
86
86
  )
data/lib/lob/client.rb CHANGED
@@ -2,12 +2,10 @@ require "lob/resources/address"
2
2
  require "lob/resources/area"
3
3
  require "lob/resources/bank_account"
4
4
  require "lob/resources/check"
5
- require "lob/resources/country"
6
5
  require "lob/resources/intl_verifications"
7
6
  require "lob/resources/letter"
8
7
  require "lob/resources/postcard"
9
8
  require "lob/resources/route"
10
- require "lob/resources/state"
11
9
  require "lob/resources/us_verifications"
12
10
  require "lob/resources/us_zip_lookups"
13
11
 
@@ -40,10 +38,6 @@ module Lob
40
38
  Lob::Resources::Check.new(config)
41
39
  end
42
40
 
43
- def countries
44
- Lob::Resources::Country.new(config)
45
- end
46
-
47
41
  def intl_verifications
48
42
  Lob::Resources::IntlVerifications.new(config)
49
43
  end
@@ -60,10 +54,6 @@ module Lob
60
54
  Lob::Resources::Route.new(config)
61
55
  end
62
56
 
63
- def states
64
- Lob::Resources::State.new(config)
65
- end
66
-
67
57
  def us_verifications
68
58
  Lob::Resources::USVerifications.new(config)
69
59
  end
@@ -9,8 +9,14 @@ module Lob
9
9
  @endpoint = "bank_accounts"
10
10
  end
11
11
 
12
- def verify(bank_account_id, options = {})
13
- submit :post, verify_url(bank_account_id), options
12
+ def verify(bank_account_id, body = {})
13
+ request = {
14
+ method: :post,
15
+ url: verify_url(bank_account_id),
16
+ body: body
17
+ }
18
+
19
+ submit request
14
20
  end
15
21
 
16
22
  private
@@ -11,8 +11,14 @@ module Lob
11
11
  @endpoint = "intl_verifications"
12
12
  end
13
13
 
14
- def verify(options={})
15
- submit :post, endpoint_url, options
14
+ def verify(body={})
15
+ request = {
16
+ method: :post,
17
+ url: endpoint_url,
18
+ body: body
19
+ }
20
+
21
+ submit request
16
22
  end
17
23
 
18
24
  end
@@ -12,41 +12,71 @@ module Lob
12
12
  @config = config
13
13
  end
14
14
 
15
- def list(options={})
16
- submit :get, endpoint_url, options
15
+ def list(query={})
16
+ request = {
17
+ method: :get,
18
+ url: endpoint_url,
19
+ query: query
20
+ }
21
+
22
+ submit request
17
23
  end
18
24
 
19
25
  def find(resource_id)
20
- submit :get, resource_url(resource_id)
26
+ request = {
27
+ method: :get,
28
+ url: resource_url(resource_id)
29
+ }
30
+
31
+ submit request
21
32
  end
22
33
 
23
- def create(options={}, headers={})
24
- submit :post, endpoint_url, options, headers
34
+ def create(body={}, headers={}, query={})
35
+ request = {
36
+ method: :post,
37
+ url: endpoint_url,
38
+ body: body,
39
+ headers: headers,
40
+ query: query
41
+ }
42
+
43
+ submit request
25
44
  end
26
45
 
27
46
  def destroy(resource_id)
28
- submit :delete, resource_url(resource_id)
47
+ request = {
48
+ method: :delete,
49
+ url: resource_url(resource_id)
50
+ }
51
+
52
+ submit request
29
53
  end
30
54
 
31
55
  private
32
56
 
33
- def submit(method, url, parameters={}, headers={})
57
+ def submit(request)
34
58
  clientVersion = Lob::VERSION
35
59
 
60
+ url = request[:url]
61
+ method = request[:method]
62
+ body = request[:body] || {}
63
+ query = request[:query] || {}
64
+ headers = request[:headers] || {}
65
+
66
+ headers = headers.merge({
67
+ user_agent: 'Lob/v1 RubyBindings/' + clientVersion,
68
+ "Lob-Version" => config[:api_version]
69
+ })
70
+
71
+ if query != {}
72
+ url = "#{url}?#{build_nested_query(query)}"
73
+ end
74
+
36
75
  begin
37
76
  if method == :get || method == :delete
38
- # Hack to URL encode nested objects like metadata.
39
- url = "#{url}?#{build_nested_query(parameters)}"
40
- response = RestClient.send(method, url, {
41
- user_agent: 'Lob/v1 RubyBindings/' + clientVersion,
42
- "Lob-Version" => config[:api_version]
43
- })
77
+ response = RestClient.send(method, url, headers)
44
78
  else
45
- headers = headers.merge({
46
- user_agent: 'Lob/v1 RubyBindings/' + clientVersion,
47
- "Lob-Version" => config[:api_version]
48
- })
49
- response = RestClient.send(method, url, parameters, headers)
79
+ response = RestClient.send(method, url, body, headers)
50
80
  end
51
81
 
52
82
  body = JSON.parse(response)
@@ -13,10 +13,19 @@ module Lob
13
13
 
14
14
  def list(options = {})
15
15
  if options.is_a?(String)
16
- submit :get, resource_url(options)
16
+ request = {
17
+ method: :get,
18
+ url: resource_url(options)
19
+ }
17
20
  else
18
- submit :get, endpoint_url, options
21
+ request = {
22
+ method: :get,
23
+ url: endpoint_url,
24
+ query: options
25
+ }
19
26
  end
27
+
28
+ submit request
20
29
  end
21
30
 
22
31
  end
@@ -11,8 +11,15 @@ module Lob
11
11
  @endpoint = "us_verifications"
12
12
  end
13
13
 
14
- def verify(options={})
15
- submit :post, endpoint_url, options
14
+ def verify(body={}, query={})
15
+ request = {
16
+ method: :post,
17
+ url: endpoint_url,
18
+ body: body,
19
+ query: query
20
+ }
21
+
22
+ submit request
16
23
  end
17
24
 
18
25
  end
@@ -11,8 +11,14 @@ module Lob
11
11
  @endpoint = "us_zip_lookups"
12
12
  end
13
13
 
14
- def lookup(options={})
15
- submit :post, endpoint_url, options
14
+ def lookup(body={})
15
+ request = {
16
+ method: :post,
17
+ url: endpoint_url,
18
+ body: body
19
+ }
20
+
21
+ submit request
16
22
  end
17
23
 
18
24
  end
data/lib/lob/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lob
2
- VERSION = "4.1.1"
2
+ VERSION = "4.2.0"
3
3
  end
@@ -4,9 +4,9 @@ describe Lob::Resources::Address do
4
4
 
5
5
  before :each do
6
6
  @sample_params = {
7
- name: "John Doe",
8
- address_line1: "325 Berry Street",
9
- address_city: "San Francisco",
7
+ name: "JOHN DOE",
8
+ address_line1: "325 BERRY ST",
9
+ address_city: "SAN FRANCISCO",
10
10
  address_state: "CA",
11
11
  address_country: "US",
12
12
  address_zip: 94158,
@@ -4,11 +4,11 @@ describe Lob::Resources::IntlVerifications do
4
4
 
5
5
  before :each do
6
6
  @sample_params = {
7
- address_line1: "123 Test St",
8
- address_city: "HEARST",
9
- address_state: "ONTARIO",
10
- address_zip: "P0L1N0",
11
- address_country: "CA"
7
+ primary_line: "123 Test St",
8
+ city: "HEARST",
9
+ state: "ONTARIO",
10
+ postal_code: "P0L1N0",
11
+ country: "CA"
12
12
  }
13
13
  end
14
14
 
@@ -73,24 +73,6 @@ describe Lob::Resources::Letter do
73
73
  end
74
74
 
75
75
 
76
- describe "find" do
77
- it "should find a letter" do
78
- new_address = subject.addresses.create @sample_address_params
79
-
80
- new_letter = subject.letters.create(
81
- description: "TestLetter",
82
- color: true,
83
- file: "https://s3-us-west-2.amazonaws.com/lob-assets/letter-goblue.pdf",
84
- to: new_address["id"],
85
- from: new_address["id"]
86
- )
87
-
88
- result = subject.letters.find(new_letter["id"])
89
- assert /#{new_letter["description"]}/ =~ result.to_s
90
- end
91
- end
92
-
93
-
94
76
  describe "destroy" do
95
77
  it "should destroy a letter" do
96
78
  new_address = subject.addresses.create @sample_address_params
@@ -16,7 +16,7 @@ describe Lob::Resources::Postcard do
16
16
 
17
17
  @sample_postcard_params = {
18
18
  description: "TestPostcard",
19
- message: "Sample postcard message"
19
+ back: "<h1>Sample postcard back</h1>"
20
20
  }
21
21
  end
22
22
 
@@ -36,7 +36,7 @@ describe Lob::Resources::Postcard do
36
36
  result = subject.postcards.create(
37
37
  description: @sample_postcard_params[:description],
38
38
  to: new_address["id"],
39
- message: @sample_postcard_params[:message],
39
+ back: @sample_postcard_params[:back],
40
40
  front: "https://lob.com/postcardfront.pdf"
41
41
  )
42
42
 
@@ -47,7 +47,7 @@ describe Lob::Resources::Postcard do
47
47
  result = subject.postcards.create(
48
48
  description: @sample_postcard_params[:description],
49
49
  to: @sample_address_params,
50
- message: @sample_postcard_params[:message],
50
+ back: @sample_postcard_params[:back],
51
51
  front: "https://lob.com/postcardfront.pdf"
52
52
  )
53
53
 
@@ -61,7 +61,7 @@ describe Lob::Resources::Postcard do
61
61
  description: @sample_postcard_params[:description],
62
62
  to: new_address["id"],
63
63
  from: @sample_address_params,
64
- message: @sample_postcard_params[:message],
64
+ back: @sample_postcard_params[:back],
65
65
  front: "https://lob.com/postcardfront.pdf"
66
66
  )
67
67
 
@@ -30,10 +30,6 @@ describe Lob::Resources::ResourceBase do
30
30
  subject.checks.must_be_kind_of(Lob::Resources::Check)
31
31
  end
32
32
 
33
- it "should return countries resource" do
34
- subject.countries.must_be_kind_of(Lob::Resources::Country)
35
- end
36
-
37
33
  it "should return letters resource" do
38
34
  subject.letters.must_be_kind_of(Lob::Resources::Letter)
39
35
  end
@@ -46,10 +42,6 @@ describe Lob::Resources::ResourceBase do
46
42
  subject.routes.must_be_kind_of(Lob::Resources::Route)
47
43
  end
48
44
 
49
- it "should return states resource" do
50
- subject.states.must_be_kind_of(Lob::Resources::State)
51
- end
52
-
53
45
  it "should accept an idempotency_key" do
54
46
  sample_address_params = {
55
47
  name: "TestAddress",
@@ -64,7 +56,7 @@ describe Lob::Resources::ResourceBase do
64
56
 
65
57
  sample_postcard_params = {
66
58
  description: "TestPostcard",
67
- message: "Sample postcard message"
59
+ back: "<h1>Sample postcard back</h1>"
68
60
  }
69
61
 
70
62
  new_address = subject.addresses.create sample_address_params
@@ -74,7 +66,7 @@ describe Lob::Resources::ResourceBase do
74
66
  new_postcard = subject.postcards.create({
75
67
  description: sample_postcard_params[:description],
76
68
  to: new_address["id"],
77
- message: sample_postcard_params[:message],
69
+ back: sample_postcard_params[:back],
78
70
  front: "https://lob.com/postcardfront.pdf"
79
71
  }, {
80
72
  "Idempotency-Key" => idempotency_key
@@ -83,7 +75,7 @@ describe Lob::Resources::ResourceBase do
83
75
  new_postcard_dup = subject.postcards.create({
84
76
  description: sample_postcard_params[:description],
85
77
  to: new_address["id"],
86
- message: sample_postcard_params[:message],
78
+ back: sample_postcard_params[:back],
87
79
  front: "https://lob.com/postcardfront.pdf"
88
80
  }, {
89
81
  "Idempotency-Key" => idempotency_key
@@ -18,9 +18,13 @@ describe Lob::Resources::USVerifications do
18
18
  it "should verify a US address" do
19
19
  result = subject.us_verifications.verify @sample_params
20
20
 
21
- result["recipient"].must_equal(@sample_params[:recipient])
22
- result["primary_line"].must_equal(@sample_params[:primary_line])
23
- result["last_line"].must_equal("SAN FRANCISCO CA 94107-1728")
21
+ result["recipient"].must_equal("TEST KEYS DO NOT VERIFY ADDRESSES")
22
+ end
23
+
24
+ it "should verify a US address" do
25
+ result = subject.us_verifications.verify @sample_params, {case: "proper"}
26
+
27
+ result["recipient"].must_equal("Test Keys Do Not Verify Addresses")
24
28
  end
25
29
  end
26
30
 
metadata CHANGED
@@ -1,145 +1,145 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lob
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.1
4
+ version: 4.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lob
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-09 00:00:00.000000000 Z
11
+ date: 2018-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.8'
20
- - - <
20
+ - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: '3.0'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - '>='
27
+ - - ">="
28
28
  - !ruby/object:Gem::Version
29
29
  version: '1.8'
30
- - - <
30
+ - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: '3.0'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: bundler
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - ~>
37
+ - - "~>"
38
38
  - !ruby/object:Gem::Version
39
39
  version: '1.3'
40
40
  type: :development
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
- - - ~>
44
+ - - "~>"
45
45
  - !ruby/object:Gem::Version
46
46
  version: '1.3'
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rake
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
- - - ~>
51
+ - - "~>"
52
52
  - !ruby/object:Gem::Version
53
53
  version: 10.4.2
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
- - - ~>
58
+ - - "~>"
59
59
  - !ruby/object:Gem::Version
60
60
  version: 10.4.2
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: minitest
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
- - - ~>
65
+ - - "~>"
66
66
  - !ruby/object:Gem::Version
67
67
  version: 5.6.1
68
68
  type: :development
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
- - - ~>
72
+ - - "~>"
73
73
  - !ruby/object:Gem::Version
74
74
  version: 5.6.1
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: webmock
77
77
  requirement: !ruby/object:Gem::Requirement
78
78
  requirements:
79
- - - ~>
79
+ - - "~>"
80
80
  - !ruby/object:Gem::Version
81
81
  version: '1.2'
82
82
  type: :development
83
83
  prerelease: false
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
- - - ~>
86
+ - - "~>"
87
87
  - !ruby/object:Gem::Version
88
88
  version: '1.2'
89
89
  - !ruby/object:Gem::Dependency
90
90
  name: travis-lint
91
91
  requirement: !ruby/object:Gem::Requirement
92
92
  requirements:
93
- - - ~>
93
+ - - "~>"
94
94
  - !ruby/object:Gem::Version
95
95
  version: 2.0.0
96
96
  type: :development
97
97
  prerelease: false
98
98
  version_requirements: !ruby/object:Gem::Requirement
99
99
  requirements:
100
- - - ~>
100
+ - - "~>"
101
101
  - !ruby/object:Gem::Version
102
102
  version: 2.0.0
103
103
  - !ruby/object:Gem::Dependency
104
104
  name: coveralls
105
105
  requirement: !ruby/object:Gem::Requirement
106
106
  requirements:
107
- - - ~>
107
+ - - "~>"
108
108
  - !ruby/object:Gem::Version
109
109
  version: 0.8.1
110
110
  type: :development
111
111
  prerelease: false
112
112
  version_requirements: !ruby/object:Gem::Requirement
113
113
  requirements:
114
- - - ~>
114
+ - - "~>"
115
115
  - !ruby/object:Gem::Version
116
116
  version: 0.8.1
117
117
  - !ruby/object:Gem::Dependency
118
118
  name: simplecov
119
119
  requirement: !ruby/object:Gem::Requirement
120
120
  requirements:
121
- - - ~>
121
+ - - "~>"
122
122
  - !ruby/object:Gem::Version
123
123
  version: 0.10.0
124
124
  type: :development
125
125
  prerelease: false
126
126
  version_requirements: !ruby/object:Gem::Requirement
127
127
  requirements:
128
- - - ~>
128
+ - - "~>"
129
129
  - !ruby/object:Gem::Version
130
130
  version: 0.10.0
131
131
  - !ruby/object:Gem::Dependency
132
132
  name: pry
133
133
  requirement: !ruby/object:Gem::Requirement
134
134
  requirements:
135
- - - ~>
135
+ - - "~>"
136
136
  - !ruby/object:Gem::Version
137
137
  version: 0.10.0
138
138
  type: :development
139
139
  prerelease: false
140
140
  version_requirements: !ruby/object:Gem::Requirement
141
141
  requirements:
142
- - - ~>
142
+ - - "~>"
143
143
  - !ruby/object:Gem::Version
144
144
  version: 0.10.0
145
145
  description: Lob API Ruby wrapper
@@ -149,8 +149,8 @@ executables: []
149
149
  extensions: []
150
150
  extra_rdoc_files: []
151
151
  files:
152
- - .gitignore
153
- - .travis.yml
152
+ - ".gitignore"
153
+ - ".travis.yml"
154
154
  - CHANGELOG.md
155
155
  - CONTRIBUTING.md
156
156
  - Gemfile
@@ -180,13 +180,11 @@ files:
180
180
  - lib/lob/resources/area.rb
181
181
  - lib/lob/resources/bank_account.rb
182
182
  - lib/lob/resources/check.rb
183
- - lib/lob/resources/country.rb
184
183
  - lib/lob/resources/intl_verifications.rb
185
184
  - lib/lob/resources/letter.rb
186
185
  - lib/lob/resources/postcard.rb
187
186
  - lib/lob/resources/resource_base.rb
188
187
  - lib/lob/resources/route.rb
189
- - lib/lob/resources/state.rb
190
188
  - lib/lob/resources/us_verifications.rb
191
189
  - lib/lob/resources/us_zip_lookups.rb
192
190
  - lib/lob/version.rb
@@ -196,13 +194,11 @@ files:
196
194
  - spec/lob/resources/area_spec.rb
197
195
  - spec/lob/resources/bank_account_spec.rb
198
196
  - spec/lob/resources/check_spec.rb
199
- - spec/lob/resources/country_spec.rb
200
197
  - spec/lob/resources/intl_verifications_spec.rb
201
198
  - spec/lob/resources/letter_spec.rb
202
199
  - spec/lob/resources/postcard_spec.rb
203
200
  - spec/lob/resources/resource_base_spec.rb
204
201
  - spec/lob/resources/route_spec.rb
205
- - spec/lob/resources/state_spec.rb
206
202
  - spec/lob/resources/us_verifications_spec.rb
207
203
  - spec/lob/resources/us_zip_lookups_spec.rb
208
204
  - spec/lob_spec.rb
@@ -220,17 +216,17 @@ require_paths:
220
216
  - lib
221
217
  required_ruby_version: !ruby/object:Gem::Requirement
222
218
  requirements:
223
- - - '>='
219
+ - - ">="
224
220
  - !ruby/object:Gem::Version
225
221
  version: '0'
226
222
  required_rubygems_version: !ruby/object:Gem::Requirement
227
223
  requirements:
228
- - - '>='
224
+ - - ">="
229
225
  - !ruby/object:Gem::Version
230
226
  version: '0'
231
227
  requirements: []
232
228
  rubyforge_project:
233
- rubygems_version: 2.0.14.1
229
+ rubygems_version: 2.6.6
234
230
  signing_key:
235
231
  specification_version: 4
236
232
  summary: Ruby wrapper for Lob.com API with ActiveRecord-style syntax
@@ -240,13 +236,11 @@ test_files:
240
236
  - spec/lob/resources/area_spec.rb
241
237
  - spec/lob/resources/bank_account_spec.rb
242
238
  - spec/lob/resources/check_spec.rb
243
- - spec/lob/resources/country_spec.rb
244
239
  - spec/lob/resources/intl_verifications_spec.rb
245
240
  - spec/lob/resources/letter_spec.rb
246
241
  - spec/lob/resources/postcard_spec.rb
247
242
  - spec/lob/resources/resource_base_spec.rb
248
243
  - spec/lob/resources/route_spec.rb
249
- - spec/lob/resources/state_spec.rb
250
244
  - spec/lob/resources/us_verifications_spec.rb
251
245
  - spec/lob/resources/us_zip_lookups_spec.rb
252
246
  - spec/lob_spec.rb
@@ -1,16 +0,0 @@
1
- require "lob/resources/resource_base"
2
-
3
- module Lob
4
- module Resources
5
- class Country < Lob::Resources::ResourceBase
6
-
7
- undef_method :find, :create, :destroy
8
-
9
- def initialize(config)
10
- super(config)
11
- @endpoint = "countries"
12
- end
13
-
14
- end
15
- end
16
- end
@@ -1,16 +0,0 @@
1
- require "lob/resources/resource_base"
2
-
3
- module Lob
4
- module Resources
5
- class State < Lob::Resources::ResourceBase
6
-
7
- undef_method :find, :create, :destroy
8
-
9
- def initialize(config)
10
- super(config)
11
- @endpoint = "states"
12
- end
13
-
14
- end
15
- end
16
- end
@@ -1,12 +0,0 @@
1
- require "spec_helper"
2
-
3
- describe Lob::Resources::Country do
4
-
5
- subject { Lob::Client.new(api_key: API_KEY) }
6
-
7
- describe "list" do
8
- it "should list countries" do
9
- assert subject.countries.list["object"] == "list"
10
- end
11
- end
12
- end
@@ -1,12 +0,0 @@
1
- require "spec_helper"
2
-
3
- describe Lob::Resources::State do
4
-
5
- subject { Lob::Client.new(api_key: API_KEY) }
6
-
7
- describe "list" do
8
- it "should list states" do
9
- assert subject.states.list["object"] == "list"
10
- end
11
- end
12
- end