ledger_sync 1.8.1 → 2.0.0.pre.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/gem-workflow.yml +67 -0
- data/.rubocop.yml +1 -0
- data/Gemfile.lock +7 -10
- data/lib/ledger_sync/test/support/qa/shared_examples.rb +13 -3
- data/lib/ledger_sync/test/support/test_ledger/customer/deserializer.rb +2 -0
- data/lib/ledger_sync/version.rb +6 -4
- metadata +4 -4
- data/.coveralls.yml +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b77798289157965cac34c12dcf2753b9686a3685f69dfcf1b0c6012e0f8c72e
|
4
|
+
data.tar.gz: 89187325145ea11757a2a7a3aa1c7665db371ae0155a5ced5ecc6dc9d605f74e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2219e4e3f5007be773dc335abd8c2415fac518b3abbf71e81887a06f9fc34b294c7c6756dfd49c6be1e2f6a0f1a5fd00784db444a34684054c23e616c60629ab
|
7
|
+
data.tar.gz: b20684cedfcd1ce96c346ad2f224f2c038a6c4852f25f9d811ce69f7479d0f2fa9b202c164230359bd0c5387396031dd28b91ff6d5b4fd298a05764dcf59ccfe
|
@@ -0,0 +1,67 @@
|
|
1
|
+
name: Test and Deploy
|
2
|
+
on:
|
3
|
+
push:
|
4
|
+
pull_request:
|
5
|
+
release:
|
6
|
+
types: [created]
|
7
|
+
jobs:
|
8
|
+
rubocop:
|
9
|
+
strategy:
|
10
|
+
matrix:
|
11
|
+
ruby-version: [2.6.3, 2.6.6, 2.7.1]
|
12
|
+
runs-on: [ubuntu-latest]
|
13
|
+
steps:
|
14
|
+
- uses: actions/checkout@v2
|
15
|
+
with:
|
16
|
+
persist-credentials: false
|
17
|
+
fetch-depth: 0
|
18
|
+
- name: Ruby Setup and Bundle
|
19
|
+
uses: ruby/setup-ruby@v1
|
20
|
+
with:
|
21
|
+
ruby-version: ${{ matrix.ruby-version }}
|
22
|
+
bundler-cache: true
|
23
|
+
- run: bundle exec rubocop
|
24
|
+
rspec:
|
25
|
+
strategy:
|
26
|
+
matrix:
|
27
|
+
ruby-version: [2.6.3, 2.6.6, 2.7.1]
|
28
|
+
runs-on: [ubuntu-latest]
|
29
|
+
steps:
|
30
|
+
- uses: actions/checkout@v2
|
31
|
+
with:
|
32
|
+
persist-credentials: false
|
33
|
+
fetch-depth: 0
|
34
|
+
- name: Ruby Setup and Bundle
|
35
|
+
uses: ruby/setup-ruby@v1
|
36
|
+
with:
|
37
|
+
ruby-version: ${{ matrix.ruby-version }}
|
38
|
+
bundler-cache: true
|
39
|
+
- name: rspec and report to coveralls
|
40
|
+
env:
|
41
|
+
COVERALLS_REPO_TOKEN: ${{ github.event_name == 'push' && secrets.COVERALLS_REPO_TOKEN }}
|
42
|
+
run: bundle exec rspec --order rand
|
43
|
+
publish:
|
44
|
+
runs-on: ubuntu-latest
|
45
|
+
needs: ['rubocop', 'rspec']
|
46
|
+
if: github.event_name == 'release' && github.event.action == 'created'
|
47
|
+
steps:
|
48
|
+
- name: Checkout
|
49
|
+
uses: actions/checkout@v2
|
50
|
+
with:
|
51
|
+
persist-credentials: false
|
52
|
+
fetch-depth: 0
|
53
|
+
- name: Ruby Setup and Bundle
|
54
|
+
uses: ruby/setup-ruby@v1
|
55
|
+
with:
|
56
|
+
ruby-version: 2.7.1
|
57
|
+
bundler-cache: true
|
58
|
+
- name: Publish to RubyGems
|
59
|
+
run: |
|
60
|
+
mkdir -p $HOME/.gem
|
61
|
+
touch $HOME/.gem/credentials
|
62
|
+
chmod 0600 $HOME/.gem/credentials
|
63
|
+
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
64
|
+
gem build *.gemspec
|
65
|
+
gem push *.gem
|
66
|
+
env:
|
67
|
+
GEM_HOST_API_KEY: "${{ secrets.RUBY_GEM_KEY }}"
|
data/.rubocop.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ledger_sync (
|
4
|
+
ledger_sync (2.0.0)
|
5
5
|
activemodel
|
6
6
|
colorize
|
7
7
|
dry-schema (~> 1.5.4)
|
@@ -49,7 +49,7 @@ GEM
|
|
49
49
|
diff-lcs (1.4.4)
|
50
50
|
docile (1.3.2)
|
51
51
|
dotenv (2.7.6)
|
52
|
-
dry-configurable (0.12.
|
52
|
+
dry-configurable (0.12.1)
|
53
53
|
concurrent-ruby (~> 1.0)
|
54
54
|
dry-core (~> 0.5, >= 0.5.0)
|
55
55
|
dry-container (0.7.2)
|
@@ -71,11 +71,10 @@ GEM
|
|
71
71
|
dry-initializer (~> 3.0)
|
72
72
|
dry-logic (~> 1.0)
|
73
73
|
dry-types (~> 1.4)
|
74
|
-
dry-types (1.
|
74
|
+
dry-types (1.5.1)
|
75
75
|
concurrent-ruby (~> 1.0)
|
76
76
|
dry-container (~> 0.3)
|
77
|
-
dry-core (~> 0.
|
78
|
-
dry-equalizer (~> 0.3)
|
77
|
+
dry-core (~> 0.5, >= 0.5)
|
79
78
|
dry-inflector (~> 0.1, >= 0.1.2)
|
80
79
|
dry-logic (~> 1.0, >= 1.0.2)
|
81
80
|
dry-validation (1.5.6)
|
@@ -97,7 +96,7 @@ GEM
|
|
97
96
|
ruby2_keywords
|
98
97
|
faraday-detailed_logger (2.3.0)
|
99
98
|
faraday (>= 0.8, < 2)
|
100
|
-
faraday-net_http (1.0.
|
99
|
+
faraday-net_http (1.0.1)
|
101
100
|
faraday_middleware (1.0.0)
|
102
101
|
faraday (~> 1.0)
|
103
102
|
ffi (1.13.1)
|
@@ -138,11 +137,9 @@ GEM
|
|
138
137
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
139
138
|
rb-inotify (~> 0.9, >= 0.9.10)
|
140
139
|
mercenary (0.3.6)
|
141
|
-
mini_portile2 (2.5.0)
|
142
140
|
minitest (5.14.2)
|
143
141
|
multipart-post (2.1.1)
|
144
|
-
nokogiri (1.11.1)
|
145
|
-
mini_portile2 (~> 2.5.0)
|
142
|
+
nokogiri (1.11.1-x86_64-darwin)
|
146
143
|
racc (~> 1.4)
|
147
144
|
openssl (2.2.0)
|
148
145
|
overcommit (0.57.0)
|
@@ -192,7 +189,7 @@ GEM
|
|
192
189
|
rubocop-ast (1.1.1)
|
193
190
|
parser (>= 2.7.1.5)
|
194
191
|
ruby-progressbar (1.10.1)
|
195
|
-
ruby2_keywords (0.0.
|
192
|
+
ruby2_keywords (0.0.4)
|
196
193
|
safe_yaml (1.0.5)
|
197
194
|
sass (3.7.4)
|
198
195
|
sass-listen (~> 4.0.0)
|
@@ -7,7 +7,10 @@ RSpec.shared_examples 'a create' do |delete: true|
|
|
7
7
|
resource: resource
|
8
8
|
)
|
9
9
|
|
10
|
-
|
10
|
+
if result.failure?
|
11
|
+
pd result.response.response.body
|
12
|
+
byebug if ENV['DEBUG'] # rubocop:disable Lint/Debugger
|
13
|
+
end
|
11
14
|
|
12
15
|
expect(result).to be_success
|
13
16
|
|
@@ -52,7 +55,11 @@ RSpec.shared_examples 'a find' do |delete: true|
|
|
52
55
|
resource: resource
|
53
56
|
)
|
54
57
|
|
55
|
-
|
58
|
+
if result.failure?
|
59
|
+
pd result.response.response.body
|
60
|
+
byebug if ENV['DEBUG'] # rubocop:disable Lint/Debugger
|
61
|
+
end
|
62
|
+
|
56
63
|
result.raise_if_error
|
57
64
|
expect(result).to be_success
|
58
65
|
resource = result.resource
|
@@ -146,7 +153,10 @@ RSpec.shared_examples 'a searcher' do
|
|
146
153
|
it do
|
147
154
|
result = client.searcher_for(resource_type: resource.class.resource_module_str).search
|
148
155
|
|
149
|
-
|
156
|
+
if result.failure?
|
157
|
+
pd result.response.response.body
|
158
|
+
byebug if ENV['DEBUG'] # rubocop:disable Lint/Debugger
|
159
|
+
end
|
150
160
|
|
151
161
|
expect(result).to be_success
|
152
162
|
end
|
data/lib/ledger_sync/version.rb
CHANGED
@@ -1,13 +1,15 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
# :nocov:
|
3
4
|
module LedgerSync
|
4
|
-
VERSION = '
|
5
|
+
VERSION = '2.0.0'
|
5
6
|
|
6
7
|
def self.version
|
7
|
-
if
|
8
|
-
VERSION
|
8
|
+
if ENV['PRE_RELEASE']
|
9
|
+
"#{VERSION}.pre.#{ENV['GITHUB_RUN_NUMBER']}"
|
9
10
|
else
|
10
|
-
|
11
|
+
VERSION
|
11
12
|
end
|
12
13
|
end
|
13
14
|
end
|
15
|
+
# :nocov:
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ledger_sync
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0.pre.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Jackson
|
@@ -452,10 +452,10 @@ executables: []
|
|
452
452
|
extensions: []
|
453
453
|
extra_rdoc_files: []
|
454
454
|
files:
|
455
|
-
- ".coveralls.yml"
|
456
455
|
- ".env.template"
|
457
456
|
- ".github/ISSUE_TEMPLATE/bug_report.md"
|
458
457
|
- ".github/ISSUE_TEMPLATE/feature_request.md"
|
458
|
+
- ".github/workflows/gem-workflow.yml"
|
459
459
|
- ".gitignore"
|
460
460
|
- ".overcommit.yml"
|
461
461
|
- ".rubocop.yml"
|
@@ -816,9 +816,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
816
816
|
version: 2.5.8
|
817
817
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
818
818
|
requirements:
|
819
|
-
- - "
|
819
|
+
- - ">"
|
820
820
|
- !ruby/object:Gem::Version
|
821
|
-
version:
|
821
|
+
version: 1.3.1
|
822
822
|
requirements: []
|
823
823
|
rubygems_version: 3.0.3
|
824
824
|
signing_key:
|
data/.coveralls.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
service_name: travis-ci
|