lob 5.1.1 → 5.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +1 -1
- data/CHANGELOG.md +5 -0
- data/lib/lob/resources/resource_base.rb +5 -5
- data/lib/lob/version.rb +1 -1
- data/lob.gemspec +1 -1
- data/spec/lob/resources/letter_spec.rb +1 -1
- data/spec/lob/resources/postcard_spec.rb +6 -6
- data/spec/lob/resources/resource_base_spec.rb +2 -2
- data/spec/spec_helper.rb +2 -2
- metadata +5 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 13cf985be48a2293b60d39581618b3ec1d6dd55627060e4276e0219839707dda
|
4
|
+
data.tar.gz: 0d157d5f90ab10bfae3a58959be1478adcac54606e37dbecaf8c8b8fabf6dacb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 910a721a953d8bf7a714b71e8ab47dfecd7ab294055cd57b1736f2f84aa3d71ed8b54693a9f09112c0b991f6489b23437005dc4ae146a0aff9ecb38cd2121ffc
|
7
|
+
data.tar.gz: 922c3a7b56174b13a390e7294dd3421ec9eb1305eadbdeccddf007e544ac000e8844b82d5183c5f7c9832dd8c8a4b72b735b0b141f831a95ff0280af81b3bffa
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -19,7 +19,7 @@ module Lob
|
|
19
19
|
query: query
|
20
20
|
}
|
21
21
|
|
22
|
-
submit
|
22
|
+
submit(request)
|
23
23
|
end
|
24
24
|
|
25
25
|
def find(resource_id)
|
@@ -28,7 +28,7 @@ module Lob
|
|
28
28
|
url: resource_url(resource_id)
|
29
29
|
}
|
30
30
|
|
31
|
-
submit
|
31
|
+
submit(request)
|
32
32
|
end
|
33
33
|
|
34
34
|
def create(body={}, headers={}, query={})
|
@@ -40,7 +40,7 @@ module Lob
|
|
40
40
|
query: query
|
41
41
|
}
|
42
42
|
|
43
|
-
submit
|
43
|
+
submit(request)
|
44
44
|
end
|
45
45
|
|
46
46
|
def destroy(resource_id)
|
@@ -49,7 +49,7 @@ module Lob
|
|
49
49
|
url: resource_url(resource_id)
|
50
50
|
}
|
51
51
|
|
52
|
-
submit
|
52
|
+
submit(request)
|
53
53
|
end
|
54
54
|
|
55
55
|
private
|
@@ -71,7 +71,7 @@ module Lob
|
|
71
71
|
if query != {}
|
72
72
|
url = "#{url}?#{build_nested_query(query)}"
|
73
73
|
end
|
74
|
-
|
74
|
+
|
75
75
|
begin
|
76
76
|
if method == :get || method == :delete
|
77
77
|
response = RestClient.send(method, url, headers)
|
data/lib/lob/version.rb
CHANGED
data/lob.gemspec
CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
|
|
20
20
|
|
21
21
|
spec.add_dependency "rest-client", ">= 2.0.1", "< 3.0"
|
22
22
|
|
23
|
-
spec.add_development_dependency "rake", "~>
|
23
|
+
spec.add_development_dependency "rake", "~> 12.3.3"
|
24
24
|
spec.add_development_dependency "minitest", "~> 5.6.1"
|
25
25
|
spec.add_development_dependency "webmock", "~> 1.2"
|
26
26
|
spec.add_development_dependency "coveralls", "~> 0.8.13"
|
@@ -37,7 +37,7 @@ describe Lob::Resources::Postcard do
|
|
37
37
|
description: @sample_postcard_params[:description],
|
38
38
|
to: new_address["id"],
|
39
39
|
back: @sample_postcard_params[:back],
|
40
|
-
front: "https://lob.com/
|
40
|
+
front: "https://s3-us-west-2.amazonaws.com/public.lob.com/assets/pc_4x6_front.pdf"
|
41
41
|
)
|
42
42
|
|
43
43
|
result["description"].must_equal(@sample_postcard_params[:description])
|
@@ -48,7 +48,7 @@ describe Lob::Resources::Postcard do
|
|
48
48
|
description: @sample_postcard_params[:description],
|
49
49
|
to: @sample_address_params,
|
50
50
|
back: @sample_postcard_params[:back],
|
51
|
-
front: "https://lob.com/
|
51
|
+
front: "https://s3-us-west-2.amazonaws.com/public.lob.com/assets/pc_4x6_front.pdf"
|
52
52
|
)
|
53
53
|
|
54
54
|
result["description"].must_equal(@sample_postcard_params[:description])
|
@@ -62,7 +62,7 @@ describe Lob::Resources::Postcard do
|
|
62
62
|
to: new_address["id"],
|
63
63
|
from: @sample_address_params,
|
64
64
|
back: @sample_postcard_params[:back],
|
65
|
-
front: "https://lob.com/
|
65
|
+
front: "https://s3-us-west-2.amazonaws.com/public.lob.com/assets/pc_4x6_front.pdf"
|
66
66
|
)
|
67
67
|
|
68
68
|
result["description"].must_equal(@sample_postcard_params[:description])
|
@@ -74,8 +74,8 @@ describe Lob::Resources::Postcard do
|
|
74
74
|
result = subject.postcards.create(
|
75
75
|
description: @sample_postcard_params[:description],
|
76
76
|
to: new_address["id"],
|
77
|
-
front: "https://lob.com/
|
78
|
-
back: "https://lob.com/
|
77
|
+
front: "https://s3-us-west-2.amazonaws.com/public.lob.com/assets/pc_4x6_front.pdf",
|
78
|
+
back: "https://s3-us-west-2.amazonaws.com/public.lob.com/assets/pc_4x6_back.pdf"
|
79
79
|
)
|
80
80
|
|
81
81
|
result["description"].must_equal(@sample_postcard_params[:description])
|
@@ -112,7 +112,7 @@ describe Lob::Resources::Postcard do
|
|
112
112
|
description: @sample_postcard_params[:description],
|
113
113
|
to: new_address["id"],
|
114
114
|
back: "<html>{{#list}} {{name}} {{/list}}</html>",
|
115
|
-
front: "https://lob.com/
|
115
|
+
front: "https://s3-us-west-2.amazonaws.com/public.lob.com/assets/pc_4x6_front.pdf",
|
116
116
|
merge_variables: merge_variables
|
117
117
|
)
|
118
118
|
|
@@ -55,7 +55,7 @@ describe Lob::Resources::ResourceBase do
|
|
55
55
|
description: sample_postcard_params[:description],
|
56
56
|
to: new_address["id"],
|
57
57
|
back: sample_postcard_params[:back],
|
58
|
-
front: "https://lob.com/
|
58
|
+
front: "https://s3-us-west-2.amazonaws.com/public.lob.com/assets/pc_4x6_front.pdf"
|
59
59
|
}, {
|
60
60
|
"Idempotency-Key" => idempotency_key
|
61
61
|
})
|
@@ -64,7 +64,7 @@ describe Lob::Resources::ResourceBase do
|
|
64
64
|
description: sample_postcard_params[:description],
|
65
65
|
to: new_address["id"],
|
66
66
|
back: sample_postcard_params[:back],
|
67
|
-
front: "https://lob.com/
|
67
|
+
front: "https://s3-us-west-2.amazonaws.com/public.lob.com/assets/pc_4x6_front.pdf"
|
68
68
|
}, {
|
69
69
|
"Idempotency-Key" => idempotency_key
|
70
70
|
})
|
data/spec/spec_helper.rb
CHANGED
@@ -3,10 +3,10 @@ $:.unshift File.expand_path("../lib", File.dirname(__FILE__))
|
|
3
3
|
require "simplecov"
|
4
4
|
require "coveralls"
|
5
5
|
|
6
|
-
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
|
6
|
+
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
|
7
7
|
SimpleCov::Formatter::HTMLFormatter,
|
8
8
|
Coveralls::SimpleCov::Formatter
|
9
|
-
]
|
9
|
+
])
|
10
10
|
SimpleCov.start
|
11
11
|
|
12
12
|
require "lob"
|
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: 5.1.
|
4
|
+
version: 5.1.2
|
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: 2021-02-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
@@ -36,14 +36,14 @@ dependencies:
|
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version:
|
39
|
+
version: 12.3.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
|
-
version:
|
46
|
+
version: 12.3.3
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: minitest
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -185,8 +185,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
185
185
|
- !ruby/object:Gem::Version
|
186
186
|
version: '0'
|
187
187
|
requirements: []
|
188
|
-
|
189
|
-
rubygems_version: 2.5.2.3
|
188
|
+
rubygems_version: 3.0.3
|
190
189
|
signing_key:
|
191
190
|
specification_version: 4
|
192
191
|
summary: Ruby wrapper for Lob.com API with ActiveRecord-style syntax
|