lob 5.4.1 → 5.4.2

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
  SHA256:
3
- metadata.gz: cba07a0c8f145a8df9e935499f91a0dd6d1554f97b9ba8479b2fcd4ccaa5d3b9
4
- data.tar.gz: 8d48e11c13ba9a5d611a161ad6c9d78a315464f610910ec71f553cd365ccf0b9
3
+ metadata.gz: b69d606dfce94ccad4b1bb4cb584a7e3d0ac341e4a117775aba88f31123d0de5
4
+ data.tar.gz: 8c82f0edfbadfaeb5aac1f922107c138349581ca8f7590ec294dd1141a7c7f6a
5
5
  SHA512:
6
- metadata.gz: 010dd2a65e955352fec5e191c306e980a29ab40cb45b41b557c47e27edf9dad1f0e63067fc2758a9366163ed36f16d426f2ca1bebe8088be2bbc86deeee334bc
7
- data.tar.gz: 49d65f5c597defa7a3989c6888869e12870736724970598c44c4e6460775f48ab0340d32e41dbf87c8c0a4f32d0fac2a7bc4feef45eee591ed0a21c295c7d31b
6
+ metadata.gz: e5f1f78dedb730277f86ce1d4f74105121d72927e1843de558bfbe89546f5cad7e838d0517348619aef0d62e9d1693058efbd57662cd10a24930385f6d11cdd9
7
+ data.tar.gz: b5475fe1716dda1aaebe194f2f1c8af7fe4f7a9b4a3e55e8124e057c1d76c6d2434631754dcf7bc801c5129e9598b137acda021e5b796ca4a8442eeb77f7704d
@@ -0,0 +1,36 @@
1
+ name: Run tests
2
+
3
+ on:
4
+ pull_request:
5
+ types: [ created, reopened ]
6
+ branches:
7
+ - master
8
+ jobs:
9
+ ruby_tests:
10
+ runs-on: ubuntu-latest
11
+ strategy:
12
+ matrix:
13
+ ruby-version: ['jruby-9.2.9.0', '2.6', '2.7', '3.0']
14
+ steps:
15
+ - uses: actions/checkout@v2
16
+ - name: Setup
17
+ uses: ruby/setup-ruby@v1
18
+ with:
19
+ ruby-version: ${{ matrix.ruby-version }}
20
+ - name: Install Dependencies
21
+ run: bundle install
22
+ - name: Run Tests
23
+ env:
24
+ API_KEY: ${{ secrets.API_KEY }}
25
+ JRUBY_OPT: --2.0
26
+ run: bundle exec rake test
27
+ - name: Send coverage to Coveralls
28
+ uses: coverallsapp/github-action@master
29
+ with:
30
+ github-token: ${{ secrets.GITHUB_TOKEN }}
31
+
32
+
33
+
34
+
35
+
36
+
@@ -0,0 +1,30 @@
1
+ name: Publish Gem
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+
7
+ jobs:
8
+ publish_gem:
9
+ runs-on: ubuntu-latest
10
+ strategy:
11
+ matrix:
12
+ ruby-version: ['jruby-9.2.9.0', '2.6', '2.7', '3.0']
13
+ steps:
14
+ - uses: actions/checkout@v2
15
+ - name: Setup
16
+ uses: ruby/setup-ruby@v1
17
+ with:
18
+ ruby-version: ${{ matrix.ruby-version }}
19
+ - name: Install Dependencies
20
+ run: bundle install
21
+ - name: Publish Gem
22
+ run: |
23
+ mkdir -p $HOME/.gem
24
+ touch $HOME/.gem/credentials
25
+ chmod 0600 $HOME/.gem/credentials
26
+ printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
27
+ gem build *.gemspec
28
+ gem push *.gem
29
+ env:
30
+ GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
data/examples/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  # Ruby Examples
2
2
 
3
- Here we have put together a handful of ruby examples to help get you started. Please read through the official [API Documentation](https://docs.lob.com) to get a complete sense of what to expect from each endpoint. As always, feel free to [contact us](https://lob.com/support) directly if you have any questions on implementation.
3
+ Here we have put together a handful of ruby examples to help get you started. Please read through the official [API Documentation](https://docs.lob.com) to get a complete sense of what to expect from each endpoint. As always, feel free to [contact us](https://lob.com/support) directly if you have any questions on implementation. Thank you for using Lob!
4
4
 
5
5
  To run these example commands, make sure you have a supported version of Ruby installed, including all the necessary gems.
6
6
 
7
- ## /csv_checks/
7
+ ## [/csv_checks/](./csv_checks/)
8
8
 
9
9
  An example showing how to dynamically create checks from a CSV using HTML, merge variables, and Lob's [Checks API](https://lob.com/services/checks).
10
10
 
@@ -12,7 +12,7 @@ An example showing how to dynamically create checks from a CSV using HTML, merge
12
12
  bundle exec ruby examples/csv_checks/create_checks.rb
13
13
  ```
14
14
 
15
- ## /csv_letters/
15
+ ## [/csv_letters/](./csv_letters/)
16
16
 
17
17
  An example showing how to dynamically create letters from a CSV using HTML, a custom font, merge variables, and Lob's [Letters API](https://lob.com/services/letters).
18
18
 
@@ -20,7 +20,7 @@ An example showing how to dynamically create letters from a CSV using HTML, a cu
20
20
  bundle exec ruby examples/csv_letters/create_letters.rb
21
21
  ```
22
22
 
23
- ## /csv_postcards/
23
+ ## [/csv_postcards/](./csv_postcards/)
24
24
 
25
25
  An example showing how to dynamically create postcards from a CSV using HTML, a custom font, merge variables, and Lob's [Postcards API](https://lob.com/services/postcards).
26
26
 
@@ -28,7 +28,7 @@ An example showing how to dynamically create postcards from a CSV using HTML, a
28
28
  bundle exec ruby examples/csv_postcards/create_postcards.rb
29
29
  ```
30
30
 
31
- ## /csv_verify/
31
+ ## [/csv_verify/](./csv_verify/)
32
32
 
33
33
  An example showing how to validate and cleanse a CSV spreadsheet full of shipping addresses using Lob's [US Verification API](https://lob.com/services/verifications).
34
34
 
@@ -38,7 +38,7 @@ Please note that if you are running this with a Test API Key, the verification A
38
38
  bundle exec ruby examples/csv_verify/verify.rb
39
39
  ```
40
40
 
41
- ## /checks.rb
41
+ ## [/checks.rb](./checks.rb)
42
42
 
43
43
  An example showing how to create a check using Lob's [Checks API](https://lob.com/services/checks).
44
44
 
@@ -46,7 +46,7 @@ An example showing how to create a check using Lob's [Checks API](https://lob.co
46
46
  bundle exec ruby examples/checks.rb
47
47
  ```
48
48
 
49
- ## /letters.rb
49
+ ## [/letters.rb](./letters.rb)
50
50
 
51
51
  An example showing how to create a letter using Lob's [Letters API](https://lob.com/services/letters).
52
52
 
@@ -54,7 +54,7 @@ An example showing how to create a letter using Lob's [Letters API](https://lob.
54
54
  bundle exec ruby examples/letters.rb
55
55
  ```
56
56
 
57
- ## /postcards.rb
57
+ ## [/postcards.rb](./postcards.rb)
58
58
 
59
59
  An example showing how to create a postcard using Lob's [Postcards API](https://lob.com/services/postcards).
60
60
 
@@ -62,7 +62,7 @@ An example showing how to create a postcard using Lob's [Postcards API](https://
62
62
  bundle exec ruby examples/postcards.rb
63
63
  ```
64
64
 
65
- ## /postcards_idempotent.rb
65
+ ## [/postcards_idempotent.rb](./postcards_idempotent.rb)
66
66
 
67
67
  An example showing how to create an idempotent postcard request using Lob's [Postcards API](https://lob.com/services/postcards).
68
68
 
@@ -70,7 +70,7 @@ An example showing how to create an idempotent postcard request using Lob's [Pos
70
70
  bundle exec ruby examples/postcards_idempotent.rb
71
71
  ```
72
72
 
73
- ## /postcards_intl.rb
73
+ ## [/postcards_intl.rb](./postcards_intl.rb)
74
74
 
75
75
  An example showing how to create an international postcard using Lob's [Postcards API](https://lob.com/services/postcards).
76
76
 
@@ -78,7 +78,7 @@ An example showing how to create an international postcard using Lob's [Postcard
78
78
  bundle exec ruby examples/postcards_intl.rb
79
79
  ```
80
80
 
81
- ## /postcards_remote.rb
81
+ ## [/postcards_remote.rb](./postcards_remote.rb)
82
82
 
83
83
  An example showing how to create a postcard with remote files, using Lob's [Postcards API](https://lob.com/services/postcards).
84
84
 
@@ -86,7 +86,7 @@ An example showing how to create a postcard with remote files, using Lob's [Post
86
86
  bundle exec ruby examples/postcards_remote.rb
87
87
  ```
88
88
 
89
- ## /postcards_send_date.rb
89
+ ## [/postcards_send_date.rb](./postcards_send_date.rb)
90
90
 
91
91
  An example showing how to create a postcard with a specified send date, using Lob's [Postcards API](https://lob.com/services/postcards).
92
92
 
@@ -94,7 +94,7 @@ An example showing how to create a postcard with a specified send date, using Lo
94
94
  bundle exec ruby examples/postcards_send_date.rb
95
95
  ```
96
96
 
97
- ## /postcards_template.rb
97
+ ## [/postcards_template.rb](./postcards_template.rb)
98
98
 
99
99
  An example showing how to create a postcard with a saved template, using Lob's [Postcards API](https://lob.com/services/postcards).
100
100
 
@@ -102,7 +102,7 @@ An example showing how to create a postcard with a saved template, using Lob's [
102
102
  bundle exec ruby examples/postcards_template.rb
103
103
  ```
104
104
 
105
- ## /self_mailers.rb
105
+ ## [/self_mailers.rb](./self_mailers.rb)
106
106
 
107
107
  An example showing how to create a self mailer using Lob's Self Mailers API.
108
108
 
data/lib/lob/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lob
2
- VERSION = "5.4.1"
2
+ VERSION = "5.4.2"
3
3
  end
data/lob.gemspec CHANGED
@@ -23,8 +23,8 @@ Gem::Specification.new do |spec|
23
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
- spec.add_development_dependency "coveralls", "~> 0.8.23"
27
- spec.add_development_dependency "simplecov", "~> 0.16.1"
26
+ spec.add_development_dependency "coveralls_reborn", "~> 0.23.1"
27
+ spec.add_development_dependency "simplecov", "~> 0.21.0"
28
28
  spec.add_development_dependency "json", "~> 2.3.1"
29
29
  spec.add_development_dependency "uri", "~> 0.10.1"
30
30
  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: 5.4.1
4
+ version: 5.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lob
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-29 00:00:00.000000000 Z
11
+ date: 2021-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -73,33 +73,33 @@ dependencies:
73
73
  - !ruby/object:Gem::Version
74
74
  version: '1.2'
75
75
  - !ruby/object:Gem::Dependency
76
- name: coveralls
76
+ name: coveralls_reborn
77
77
  requirement: !ruby/object:Gem::Requirement
78
78
  requirements:
79
79
  - - "~>"
80
80
  - !ruby/object:Gem::Version
81
- version: 0.8.23
81
+ version: 0.23.1
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
- version: 0.8.23
88
+ version: 0.23.1
89
89
  - !ruby/object:Gem::Dependency
90
90
  name: simplecov
91
91
  requirement: !ruby/object:Gem::Requirement
92
92
  requirements:
93
93
  - - "~>"
94
94
  - !ruby/object:Gem::Version
95
- version: 0.16.1
95
+ version: 0.21.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
- version: 0.16.1
102
+ version: 0.21.0
103
103
  - !ruby/object:Gem::Dependency
104
104
  name: json
105
105
  requirement: !ruby/object:Gem::Requirement
@@ -135,8 +135,9 @@ executables: []
135
135
  extensions: []
136
136
  extra_rdoc_files: []
137
137
  files:
138
+ - ".github/workflows/run_tests_job.yml"
139
+ - ".github/workflows/update_gem.yml"
138
140
  - ".gitignore"
139
- - ".travis.yml"
140
141
  - CHANGELOG.md
141
142
  - CONTRIBUTING.md
142
143
  - Gemfile
@@ -232,7 +233,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
232
233
  - !ruby/object:Gem::Version
233
234
  version: '0'
234
235
  requirements: []
235
- rubygems_version: 3.0.3
236
+ rubygems_version: 3.1.6
236
237
  signing_key:
237
238
  specification_version: 4
238
239
  summary: Ruby wrapper for Lob.com API with ActiveRecord-style syntax
data/.travis.yml DELETED
@@ -1,12 +0,0 @@
1
- language: ruby
2
-
3
- rvm:
4
- - jruby-9.1.9.0
5
- - jruby-9.2.9.0
6
- - 2.6
7
- - 2.7
8
- - 3.0
9
- env:
10
- JRUBY_OPTS=--2.0
11
-
12
- script: bundle exec rake test