finapps_core 5.0.10 → 5.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/release-drafter.yml +49 -0
- data/.github/workflows/main.yaml +38 -0
- data/.github/workflows/release-drafter.yml +15 -0
- data/.github/workflows/release.yml +54 -0
- data/.github/workflows/verify-pr-labeled.yml +14 -0
- data/.rubocop.yml +6 -13
- data/finapps_core.gemspec +0 -1
- data/lib/finapps_core/rest/base_client.rb +2 -2
- data/lib/finapps_core/utils/loggeable.rb +1 -1
- data/lib/finapps_core/version.rb +1 -1
- data/spec/support/fake_api.rb +1 -1
- metadata +47 -62
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd4de0991c1e8755d433dab8dc0dc424f3ea91f96397ab34989afdc662dc01cc
|
4
|
+
data.tar.gz: 6755974411e0bc978871969f6ce994013e2317c28fe0e18cce96a3b615673a0b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5d459507dd0de21b728fbee60427007ed59243f2b2d98e6ea9c196ed605a363d91b24f752a76ffe1bbf10c34c9ae439985bf91f41bfdc7f0a523dd219d45c6b
|
7
|
+
data.tar.gz: 9b3c7d10e5dbb30c1f8fcc31e66975b01fcb5296045af520aae8bd869f52a89514697a99df2627b7cb456e07f4d69b70479b65171b5ca070942d0386e91fbc50
|
@@ -0,0 +1,49 @@
|
|
1
|
+
name-template: 'version $RESOLVED_VERSION'
|
2
|
+
tag-template: 'v$RESOLVED_VERSION'
|
3
|
+
categories:
|
4
|
+
- title: 'Added'
|
5
|
+
labels: 'enhancement'
|
6
|
+
- title: 'Changed'
|
7
|
+
labels: 'change'
|
8
|
+
- title: 'Deprecated'
|
9
|
+
labels: 'deprecated'
|
10
|
+
- title: 'Removed'
|
11
|
+
labels: 'removed'
|
12
|
+
- title: 'Fixed'
|
13
|
+
labels: 'bug'
|
14
|
+
- title: 'Security'
|
15
|
+
label: 'dependencies'
|
16
|
+
- title: 'Documentation updates'
|
17
|
+
label: 'documentation'
|
18
|
+
- title: 'Maintenance'
|
19
|
+
labels: 'internal'
|
20
|
+
|
21
|
+
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
|
22
|
+
|
23
|
+
version-resolver:
|
24
|
+
major:
|
25
|
+
labels:
|
26
|
+
- 'major'
|
27
|
+
minor:
|
28
|
+
labels:
|
29
|
+
- 'minor'
|
30
|
+
patch:
|
31
|
+
labels:
|
32
|
+
- 'patch'
|
33
|
+
default: patch
|
34
|
+
|
35
|
+
exclude-labels:
|
36
|
+
- reverted
|
37
|
+
- no-changelog
|
38
|
+
- skip-changelog
|
39
|
+
- invalid
|
40
|
+
|
41
|
+
template: |
|
42
|
+
## [$RESOLVED_VERSION](https://github.com/finapps/ruby-client/compare/$PREVIOUS_TAG...$RESOLVED_VERSION)
|
43
|
+
$CHANGES
|
44
|
+
|
45
|
+
replacers:
|
46
|
+
- search: '/CVE-(\d{4})-(\d+)/g'
|
47
|
+
replace: 'https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-$1-$2'
|
48
|
+
- search: '@dependabot-preview'
|
49
|
+
replace: '@dependabot'
|
@@ -0,0 +1,38 @@
|
|
1
|
+
name: Continuous Integration
|
2
|
+
|
3
|
+
on: [push, pull_request]
|
4
|
+
|
5
|
+
jobs:
|
6
|
+
ci:
|
7
|
+
if: "!contains(github.event.head_commit.message, 'skip ci')"
|
8
|
+
runs-on: ubuntu-latest
|
9
|
+
|
10
|
+
strategy:
|
11
|
+
fail-fast: true
|
12
|
+
|
13
|
+
steps:
|
14
|
+
- uses: actions/checkout@v1
|
15
|
+
|
16
|
+
- name: Use Ruby 2.6
|
17
|
+
uses: actions/setup-ruby@v1
|
18
|
+
with:
|
19
|
+
ruby-version: '2.6'
|
20
|
+
|
21
|
+
- uses: actions/cache@v2
|
22
|
+
with:
|
23
|
+
path: vendor/bundle
|
24
|
+
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
|
25
|
+
restore-keys: |
|
26
|
+
${{ runner.os }}-gems-
|
27
|
+
|
28
|
+
- name: Install gems
|
29
|
+
run: |
|
30
|
+
gem install -N bundler
|
31
|
+
bundle config path vendor/bundle
|
32
|
+
bundle install --jobs 4 --retry 3
|
33
|
+
|
34
|
+
- name: Run rubocop
|
35
|
+
run: bundle exec rubocop
|
36
|
+
|
37
|
+
- name: Run tests
|
38
|
+
run: bundle exec rspec
|
@@ -0,0 +1,15 @@
|
|
1
|
+
name: Release Drafter
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches:
|
6
|
+
- master
|
7
|
+
|
8
|
+
jobs:
|
9
|
+
update_release_draft:
|
10
|
+
if: "!contains(github.event.head_commit.message, 'skip ci')"
|
11
|
+
runs-on: ubuntu-latest
|
12
|
+
steps:
|
13
|
+
- uses: release-drafter/release-drafter@v5
|
14
|
+
env:
|
15
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
@@ -0,0 +1,54 @@
|
|
1
|
+
name: Bump version and Release
|
2
|
+
on:
|
3
|
+
release:
|
4
|
+
types: [published]
|
5
|
+
|
6
|
+
jobs:
|
7
|
+
release:
|
8
|
+
runs-on: ubuntu-latest
|
9
|
+
strategy:
|
10
|
+
fail-fast: true
|
11
|
+
|
12
|
+
steps:
|
13
|
+
- uses: actions/checkout@master
|
14
|
+
with:
|
15
|
+
persist-credentials: false
|
16
|
+
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
|
17
|
+
|
18
|
+
- uses: actions/setup-ruby@v1
|
19
|
+
with:
|
20
|
+
ruby-version: '2.6'
|
21
|
+
|
22
|
+
- name: Get version from latest tag
|
23
|
+
id: get_version
|
24
|
+
uses: battila7/get-version-action@v2
|
25
|
+
|
26
|
+
- name: Bump version
|
27
|
+
run: |
|
28
|
+
gem install -N gem-release
|
29
|
+
git config --local user.email "action@github.com"
|
30
|
+
git config --local user.name "GitHub Action"
|
31
|
+
gem bump --skip-ci --version ${{ steps.get_version.outputs.version-without-v }}
|
32
|
+
|
33
|
+
- name: Push changes
|
34
|
+
uses: ad-m/github-push-action@master
|
35
|
+
with:
|
36
|
+
# GitHub Actions token does not support pushing to protected branches.
|
37
|
+
# github_token: ${{ secrets.GITHUB_TOKEN }}
|
38
|
+
#
|
39
|
+
# A manually populated`PERSONAL_ACCESS_TOKEN` environment variable
|
40
|
+
# with permissions to push to a protected branch must be used.
|
41
|
+
# not ideal - keep eyes open for a better solution
|
42
|
+
github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
|
43
|
+
|
44
|
+
- name: Release gem to rubygems.org
|
45
|
+
run: |
|
46
|
+
set +x
|
47
|
+
mkdir -p ~/.gem
|
48
|
+
cat << EOF > ~/.gem/credentials
|
49
|
+
---
|
50
|
+
:rubygems_api_key: ${{ secrets.RUBYGEMS_API_KEY }}
|
51
|
+
EOF
|
52
|
+
chmod 0600 ~/.gem/credentials
|
53
|
+
set -x
|
54
|
+
gem release
|
@@ -0,0 +1,14 @@
|
|
1
|
+
name: "Require PR labels"
|
2
|
+
|
3
|
+
on:
|
4
|
+
pull_request:
|
5
|
+
types: [opened, labeled, unlabeled, synchronize]
|
6
|
+
jobs:
|
7
|
+
label:
|
8
|
+
runs-on: ubuntu-latest
|
9
|
+
steps:
|
10
|
+
- uses: mheap/github-action-required-labels@v1
|
11
|
+
with:
|
12
|
+
mode: exactly
|
13
|
+
count: 1
|
14
|
+
labels: "bug, change, enhancement"
|
data/.rubocop.yml
CHANGED
@@ -8,6 +8,7 @@ AllCops:
|
|
8
8
|
- "vendor/**/*"
|
9
9
|
- "bin/**/*"
|
10
10
|
CacheRootDirectory: tmp
|
11
|
+
NewCops: enable
|
11
12
|
|
12
13
|
Layout/SpaceAroundMethodCallOperator:
|
13
14
|
Enabled: true
|
@@ -47,8 +48,8 @@ Metrics/ClassLength:
|
|
47
48
|
Metrics/BlockLength:
|
48
49
|
ExcludedMethods: ['describe', 'context']
|
49
50
|
Exclude:
|
51
|
+
- finapps_core.gemspec
|
50
52
|
- config/environments/**/**
|
51
|
-
- '*.gemspec'
|
52
53
|
- Guardfile
|
53
54
|
- config/routes.rb
|
54
55
|
- config/Guardfile
|
@@ -68,6 +69,8 @@ Naming/PredicateName:
|
|
68
69
|
|
69
70
|
RSpec/FilePath:
|
70
71
|
Enabled: false
|
72
|
+
Gemspec/RequiredRubyVersion:
|
73
|
+
Enabled: false
|
71
74
|
|
72
75
|
Style/RedundantRegexpCharacterClass:
|
73
76
|
Enabled: true
|
@@ -137,18 +140,8 @@ Style/OneLineConditional:
|
|
137
140
|
Description: Favor the ternary operator(?:) over if/then/else/end constructs.
|
138
141
|
StyleGuide: https://github.com/bbatsov/ruby-style-guide#ternary-operator
|
139
142
|
Enabled: false
|
140
|
-
Style/
|
141
|
-
Enabled:
|
142
|
-
Style/HashEachMethods:
|
143
|
-
Enabled: true
|
144
|
-
Style/HashTransformKeys:
|
145
|
-
Enabled: true
|
146
|
-
Style/HashTransformValues:
|
147
|
-
Enabled: true
|
148
|
-
Style/RedundantFetchBlock:
|
149
|
-
Enabled: true
|
150
|
-
Style/SlicingWithRange:
|
151
|
-
Enabled: true
|
143
|
+
Style/OptionalBooleanParameter:
|
144
|
+
Enabled: false
|
152
145
|
|
153
146
|
RSpec/NestedGroups:
|
154
147
|
Max: 5
|
data/finapps_core.gemspec
CHANGED
@@ -25,7 +25,6 @@ Gem::Specification.new do |spec|
|
|
25
25
|
|
26
26
|
spec.add_development_dependency 'bundler', '~> 2.0', '>= 2.0.2'
|
27
27
|
spec.add_development_dependency 'codeclimate-test-reporter', '~> 1.0', '>= 1.0.9'
|
28
|
-
spec.add_development_dependency 'gem-release', '~> 2.0', '>= 2.0.3'
|
29
28
|
spec.add_development_dependency 'rake', '~> 13.0', '>= 13.0.1'
|
30
29
|
spec.add_development_dependency 'rspec', '~> 3.8', '>= 3.8.0'
|
31
30
|
spec.add_development_dependency 'rubocop', '~> 0.86', '>= 0.86.0'
|
data/lib/finapps_core/version.rb
CHANGED
data/spec/support/fake_api.rb
CHANGED
@@ -34,7 +34,7 @@ class FakeApi < Sinatra::Base
|
|
34
34
|
def json_response(response_code, file_name)
|
35
35
|
content_type :json
|
36
36
|
status response_code
|
37
|
-
File.open(File.dirname(__FILE__)
|
37
|
+
File.open("#{File.dirname(__FILE__)}/fixtures/#{file_name}", 'rb').read
|
38
38
|
end
|
39
39
|
|
40
40
|
def version; end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: finapps_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.
|
4
|
+
version: 5.0.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Erich Quintero
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-06
|
11
|
+
date: 2020-08-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -34,20 +34,20 @@ dependencies:
|
|
34
34
|
name: faraday_middleware
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
|
-
- - "
|
37
|
+
- - ">="
|
38
38
|
- !ruby/object:Gem::Version
|
39
39
|
version: '1.0'
|
40
|
-
- - "
|
40
|
+
- - "~>"
|
41
41
|
- !ruby/object:Gem::Version
|
42
42
|
version: '1.0'
|
43
43
|
type: :runtime
|
44
44
|
prerelease: false
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
|
-
- - "
|
47
|
+
- - ">="
|
48
48
|
- !ruby/object:Gem::Version
|
49
49
|
version: '1.0'
|
50
|
-
- - "
|
50
|
+
- - "~>"
|
51
51
|
- !ruby/object:Gem::Version
|
52
52
|
version: '1.0'
|
53
53
|
- !ruby/object:Gem::Dependency
|
@@ -90,26 +90,6 @@ dependencies:
|
|
90
90
|
- - ">="
|
91
91
|
- !ruby/object:Gem::Version
|
92
92
|
version: 1.0.9
|
93
|
-
- !ruby/object:Gem::Dependency
|
94
|
-
name: gem-release
|
95
|
-
requirement: !ruby/object:Gem::Requirement
|
96
|
-
requirements:
|
97
|
-
- - "~>"
|
98
|
-
- !ruby/object:Gem::Version
|
99
|
-
version: '2.0'
|
100
|
-
- - ">="
|
101
|
-
- !ruby/object:Gem::Version
|
102
|
-
version: 2.0.3
|
103
|
-
type: :development
|
104
|
-
prerelease: false
|
105
|
-
version_requirements: !ruby/object:Gem::Requirement
|
106
|
-
requirements:
|
107
|
-
- - "~>"
|
108
|
-
- !ruby/object:Gem::Version
|
109
|
-
version: '2.0'
|
110
|
-
- - ">="
|
111
|
-
- !ruby/object:Gem::Version
|
112
|
-
version: 2.0.3
|
113
93
|
- !ruby/object:Gem::Dependency
|
114
94
|
name: rake
|
115
95
|
requirement: !ruby/object:Gem::Requirement
|
@@ -134,42 +114,42 @@ dependencies:
|
|
134
114
|
name: rspec
|
135
115
|
requirement: !ruby/object:Gem::Requirement
|
136
116
|
requirements:
|
137
|
-
- - "~>"
|
138
|
-
- !ruby/object:Gem::Version
|
139
|
-
version: '3.8'
|
140
117
|
- - ">="
|
141
118
|
- !ruby/object:Gem::Version
|
142
119
|
version: 3.8.0
|
120
|
+
- - "~>"
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: '3.8'
|
143
123
|
type: :development
|
144
124
|
prerelease: false
|
145
125
|
version_requirements: !ruby/object:Gem::Requirement
|
146
126
|
requirements:
|
147
|
-
- - "~>"
|
148
|
-
- !ruby/object:Gem::Version
|
149
|
-
version: '3.8'
|
150
127
|
- - ">="
|
151
128
|
- !ruby/object:Gem::Version
|
152
129
|
version: 3.8.0
|
130
|
+
- - "~>"
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: '3.8'
|
153
133
|
- !ruby/object:Gem::Dependency
|
154
134
|
name: rubocop
|
155
135
|
requirement: !ruby/object:Gem::Requirement
|
156
136
|
requirements:
|
157
|
-
- - "~>"
|
158
|
-
- !ruby/object:Gem::Version
|
159
|
-
version: '0.86'
|
160
137
|
- - ">="
|
161
138
|
- !ruby/object:Gem::Version
|
162
139
|
version: 0.86.0
|
140
|
+
- - "~>"
|
141
|
+
- !ruby/object:Gem::Version
|
142
|
+
version: '0.86'
|
163
143
|
type: :development
|
164
144
|
prerelease: false
|
165
145
|
version_requirements: !ruby/object:Gem::Requirement
|
166
146
|
requirements:
|
167
|
-
- - "~>"
|
168
|
-
- !ruby/object:Gem::Version
|
169
|
-
version: '0.86'
|
170
147
|
- - ">="
|
171
148
|
- !ruby/object:Gem::Version
|
172
149
|
version: 0.86.0
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0.86'
|
173
153
|
- !ruby/object:Gem::Dependency
|
174
154
|
name: rubocop-performance
|
175
155
|
requirement: !ruby/object:Gem::Requirement
|
@@ -194,22 +174,22 @@ dependencies:
|
|
194
174
|
name: rubocop-rspec
|
195
175
|
requirement: !ruby/object:Gem::Requirement
|
196
176
|
requirements:
|
197
|
-
- - "~>"
|
198
|
-
- !ruby/object:Gem::Version
|
199
|
-
version: '1.40'
|
200
177
|
- - ">="
|
201
178
|
- !ruby/object:Gem::Version
|
202
179
|
version: 1.40.0
|
180
|
+
- - "~>"
|
181
|
+
- !ruby/object:Gem::Version
|
182
|
+
version: '1.40'
|
203
183
|
type: :development
|
204
184
|
prerelease: false
|
205
185
|
version_requirements: !ruby/object:Gem::Requirement
|
206
186
|
requirements:
|
207
|
-
- - "~>"
|
208
|
-
- !ruby/object:Gem::Version
|
209
|
-
version: '1.40'
|
210
187
|
- - ">="
|
211
188
|
- !ruby/object:Gem::Version
|
212
189
|
version: 1.40.0
|
190
|
+
- - "~>"
|
191
|
+
- !ruby/object:Gem::Version
|
192
|
+
version: '1.40'
|
213
193
|
- !ruby/object:Gem::Dependency
|
214
194
|
name: sinatra
|
215
195
|
requirement: !ruby/object:Gem::Requirement
|
@@ -234,22 +214,22 @@ dependencies:
|
|
234
214
|
name: webmock
|
235
215
|
requirement: !ruby/object:Gem::Requirement
|
236
216
|
requirements:
|
237
|
-
- - "~>"
|
238
|
-
- !ruby/object:Gem::Version
|
239
|
-
version: '3.6'
|
240
217
|
- - ">="
|
241
218
|
- !ruby/object:Gem::Version
|
242
219
|
version: 3.6.0
|
220
|
+
- - "~>"
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: '3.6'
|
243
223
|
type: :development
|
244
224
|
prerelease: false
|
245
225
|
version_requirements: !ruby/object:Gem::Requirement
|
246
226
|
requirements:
|
247
|
-
- - "~>"
|
248
|
-
- !ruby/object:Gem::Version
|
249
|
-
version: '3.6'
|
250
227
|
- - ">="
|
251
228
|
- !ruby/object:Gem::Version
|
252
229
|
version: 3.6.0
|
230
|
+
- - "~>"
|
231
|
+
- !ruby/object:Gem::Version
|
232
|
+
version: '3.6'
|
253
233
|
description: A simple library for communicating with the FinApps REST API. Core functionality.
|
254
234
|
email:
|
255
235
|
- erich@financialapps.com
|
@@ -260,6 +240,11 @@ extra_rdoc_files:
|
|
260
240
|
- LICENSE
|
261
241
|
files:
|
262
242
|
- ".codeclimate.yml"
|
243
|
+
- ".github/release-drafter.yml"
|
244
|
+
- ".github/workflows/main.yaml"
|
245
|
+
- ".github/workflows/release-drafter.yml"
|
246
|
+
- ".github/workflows/release.yml"
|
247
|
+
- ".github/workflows/verify-pr-labeled.yml"
|
263
248
|
- ".gitignore"
|
264
249
|
- ".gitlab-ci.yml"
|
265
250
|
- ".hound.yml"
|
@@ -345,25 +330,25 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
345
330
|
- !ruby/object:Gem::Version
|
346
331
|
version: '0'
|
347
332
|
requirements: []
|
348
|
-
rubygems_version: 3.
|
333
|
+
rubygems_version: 3.0.3
|
349
334
|
signing_key:
|
350
335
|
specification_version: 4
|
351
336
|
summary: FinApps REST API ruby client - Core.
|
352
337
|
test_files:
|
353
|
-
- spec/middleware/response/raise_error_spec.rb
|
354
|
-
- spec/middleware/request/user_agent_spec.rb
|
355
|
-
- spec/middleware/request/request_id_spec.rb
|
356
|
-
- spec/middleware/request/tenant_authentication_spec.rb
|
357
|
-
- spec/middleware/request/accept_json_spec.rb
|
358
|
-
- spec/middleware/request/x_consumer_id_spec.rb
|
359
|
-
- spec/middleware/request/no_encoding_basic_authentication_spec.rb
|
360
338
|
- spec/spec_helper.rb
|
361
|
-
- spec/spec_helpers/client.rb
|
362
|
-
- spec/utils/validatable_spec.rb
|
363
339
|
- spec/support/fake_api.rb
|
340
|
+
- spec/utils/validatable_spec.rb
|
364
341
|
- spec/core_extensions/object/is_integer_spec.rb
|
365
|
-
- spec/rest/credentials_spec.rb
|
366
342
|
- spec/rest/base_client_spec.rb
|
367
|
-
- spec/rest/configuration_spec.rb
|
368
343
|
- spec/rest/defaults_spec.rb
|
369
344
|
- spec/rest/resources_spec.rb
|
345
|
+
- spec/rest/credentials_spec.rb
|
346
|
+
- spec/rest/configuration_spec.rb
|
347
|
+
- spec/spec_helpers/client.rb
|
348
|
+
- spec/middleware/request/user_agent_spec.rb
|
349
|
+
- spec/middleware/request/tenant_authentication_spec.rb
|
350
|
+
- spec/middleware/request/x_consumer_id_spec.rb
|
351
|
+
- spec/middleware/request/no_encoding_basic_authentication_spec.rb
|
352
|
+
- spec/middleware/request/request_id_spec.rb
|
353
|
+
- spec/middleware/request/accept_json_spec.rb
|
354
|
+
- spec/middleware/response/raise_error_spec.rb
|