lob 5.4.3 → 5.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/run_tests_job.yml +2 -6
- data/.github/workflows/update_gem.yml +1 -4
- data/CHANGELOG.md +5 -0
- data/lib/lob/resources/resource_base.rb +2 -3
- data/lib/lob/version.rb +1 -1
- data/lob.gemspec +1 -0
- data/spec/spec_helper.rb +6 -4
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b0a60dcd0cd6c3caef1d72f172c78ac2d544532a006c00ede921f397de1c2897
|
4
|
+
data.tar.gz: ebd88e4908500dba5f7814dd0e74b4a3e114c95395cb3511f2a66868acf3a739
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e8f68abd55e2626148f6ec248e2c9efcc7eeaaf58b6257370f33a91354d9924ebd660498b6704cf39fb6ba51919d120a306d6eef6e6aefb471d5cd19470d76f
|
7
|
+
data.tar.gz: d49279834a27c4665da66e509bcc9bf6625b3121ad644691a6ed76921917cb93e090b28f595c1c31ee7517d97073a68806b39ee8f404688bd4553303c02720a9
|
@@ -1,10 +1,6 @@
|
|
1
1
|
name: Run tests
|
2
2
|
|
3
|
-
on:
|
4
|
-
pull_request:
|
5
|
-
types: [ created, reopened ]
|
6
|
-
branches:
|
7
|
-
- master
|
3
|
+
on: [pull_request]
|
8
4
|
jobs:
|
9
5
|
ruby_tests:
|
10
6
|
runs-on: ubuntu-latest
|
@@ -28,7 +24,7 @@ jobs:
|
|
28
24
|
uses: coverallsapp/github-action@master
|
29
25
|
with:
|
30
26
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
31
|
-
|
27
|
+
path-to-lcov: ./coverage/lcov/lcov.info
|
32
28
|
|
33
29
|
|
34
30
|
|
@@ -7,15 +7,12 @@ on:
|
|
7
7
|
jobs:
|
8
8
|
publish_gem:
|
9
9
|
runs-on: ubuntu-latest
|
10
|
-
strategy:
|
11
|
-
matrix:
|
12
|
-
ruby-version: ['jruby-9.2.9.0', '2.6', '2.7', '3.0']
|
13
10
|
steps:
|
14
11
|
- uses: actions/checkout@v2
|
15
12
|
- name: Setup
|
16
13
|
uses: ruby/setup-ruby@v1
|
17
14
|
with:
|
18
|
-
ruby-version:
|
15
|
+
ruby-version: 2.7
|
19
16
|
- name: Install Dependencies
|
20
17
|
run: bundle install
|
21
18
|
- name: Publish Gem
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
|
+
## [**5.4.4**](https://github.com/lob/lob-ruby/releases/tag/v5.4.4) (2021-12-16)
|
2
|
+
- [**202**](https://github.com/lob/lob-ruby/pull/202) Fix for coveralls API for GH actions and fix for error in resource_base.rb
|
1
3
|
## [**5.4.3**](https://github.com/lob/lob-ruby/releases/tag/v5.4.3) (2021-12-15)
|
2
4
|
- [**199**](https://github.com/lob/lob-ruby/pull/199) Refactor ResourceBase to make the options sent to rest-client more configurable
|
5
|
+
## [**5.4.2**](https://github.com/lob/lob-ruby/releases/tag/v5.4.2) (2021-12-08)
|
6
|
+
- [**198**](https://github.com/lob/lob-ruby/pull/198) specified ruby version in publish action
|
7
|
+
- [**195**](https://github.com/lob/lob-ruby/pull/195) added links to example scripts in README file & gh actions to release
|
3
8
|
## [**5.4.1**](https://github.com/lob/lob-ruby/releases/tag/v5.4.1) (2021-09-28)
|
4
9
|
- [**193**](https://github.com/lob/lob-ruby/pull/193) Minor patches
|
5
10
|
## [**5.4.0**](https://github.com/lob/lob-ruby/releases/tag/v5.4.0) (2021-09-21)
|
@@ -78,13 +78,12 @@ module Lob
|
|
78
78
|
url: url,
|
79
79
|
}
|
80
80
|
unless method == :delete || method == :get
|
81
|
-
if body
|
81
|
+
if body and body[:merge_variables] and body[:merge_variables].class == Hash
|
82
82
|
body[:merge_variables] = body[:merge_variables].to_json
|
83
83
|
end
|
84
84
|
|
85
|
-
client_params[:
|
85
|
+
client_params[:payload] = body
|
86
86
|
end
|
87
|
-
|
88
87
|
begin
|
89
88
|
response = RestClient::Request.execute(client_params)
|
90
89
|
|
data/lib/lob/version.rb
CHANGED
data/lob.gemspec
CHANGED
@@ -23,6 +23,7 @@ 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 "simplecov-lcov"
|
26
27
|
spec.add_development_dependency "coveralls_reborn", "~> 0.23.1"
|
27
28
|
spec.add_development_dependency "simplecov", "~> 0.21.0"
|
28
29
|
spec.add_development_dependency "json", "~> 2.3.1"
|
data/spec/spec_helper.rb
CHANGED
@@ -3,10 +3,12 @@ $:.unshift File.expand_path("../lib", File.dirname(__FILE__))
|
|
3
3
|
require "simplecov"
|
4
4
|
require "coveralls"
|
5
5
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
6
|
+
require 'simplecov-lcov'
|
7
|
+
|
8
|
+
SimpleCov::Formatter::LcovFormatter.config.report_with_single_file = true
|
9
|
+
SimpleCov::Formatter::LcovFormatter.config.lcov_file_name = 'lcov.info'
|
10
|
+
|
11
|
+
SimpleCov.formatter = SimpleCov::Formatter::LcovFormatter
|
10
12
|
SimpleCov.start
|
11
13
|
|
12
14
|
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.4.
|
4
|
+
version: 5.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lob
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-12-
|
11
|
+
date: 2021-12-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
@@ -72,6 +72,20 @@ dependencies:
|
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: '1.2'
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: simplecov-lcov
|
77
|
+
requirement: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - ">="
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '0'
|
82
|
+
type: :development
|
83
|
+
prerelease: false
|
84
|
+
version_requirements: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - ">="
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '0'
|
75
89
|
- !ruby/object:Gem::Dependency
|
76
90
|
name: coveralls_reborn
|
77
91
|
requirement: !ruby/object:Gem::Requirement
|
@@ -233,7 +247,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
233
247
|
- !ruby/object:Gem::Version
|
234
248
|
version: '0'
|
235
249
|
requirements: []
|
236
|
-
rubygems_version: 3.
|
250
|
+
rubygems_version: 3.1.6
|
237
251
|
signing_key:
|
238
252
|
specification_version: 4
|
239
253
|
summary: Ruby wrapper for Lob.com API with ActiveRecord-style syntax
|