finapps_core 5.0.15 → 5.0.16

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 15287486b44c005d79a5b2df3a5f21c2aabe9c4a2b64831fbfa3dcc3cf0d537a
4
- data.tar.gz: 854733e5448065c154b7db0c40f0c8be4ea772f924845cbf7035eea1f2ef7594
3
+ metadata.gz: efedc04912fc8d2e17cdf0bdc23dc97a5635176edfe159c14c501fe78324bfe4
4
+ data.tar.gz: 86a3f2c2780f971838604f94f53e81b3835ef4c7efb8012919750e17adfb9c7c
5
5
  SHA512:
6
- metadata.gz: 622a1963d7b63526bc7210d27e21fb318e0a07d964c889c9531e10cff27c89e3c9368a9138ed242cb77e609d5ccf75918c329d7b7984580f656d1f4b1b1e53ef
7
- data.tar.gz: 551f19f7f5d4f7eb64dd0879a73054f882a25fa92a7360aa0ab9c595c811d468ba72912087bfd756b5a327aa30100520a5da74f957298bc8961130325514e09a
6
+ metadata.gz: 1c9adf724d9ed849f72214bcfdbdcb14b92ee12e41192653f951fa26294cec1b1bcc72e57e473cafa051260faad28d3d64a90875c557bd02a1c66c407164fc7e
7
+ data.tar.gz: 4e2aba080939fc41f278285a379962d02c67a38017919ed851df50175b805826f745ace7eb05a0102682a0e14dc03b357d62f2df57f2893de4f2555475b43510
@@ -0,0 +1,7 @@
1
+ version: 2
2
+ updates:
3
+ # Maintain dependencies for GitHub Actions
4
+ - package-ecosystem: "github-actions"
5
+ directory: "/"
6
+ schedule:
7
+ interval: "daily"
@@ -10,38 +10,32 @@ on:
10
10
  - ".github/**"
11
11
  - ".VERSION"
12
12
  jobs:
13
- tests:
13
+ test:
14
14
  if: "!contains(github.event.head_commit.message, 'skip ci')"
15
- runs-on: ubuntu-latest
16
-
17
15
  strategy:
18
- fail-fast: true
19
-
16
+ fail-fast: false
17
+ matrix:
18
+ os: [ubuntu-latest]
19
+ ruby: [2.6, 2.7, '3.0']
20
+ runs-on: ${{ matrix.os }}
20
21
  steps:
21
22
  - name: Checkout source code
22
23
  uses: actions/checkout@v2
23
24
 
24
25
  - name: Install required ruby version
25
26
  uses: ruby/setup-ruby@v1
26
-
27
- - name: Setup cache key and directory for gems cache
28
- uses: actions/cache@v2
29
27
  with:
30
- path: vendor/bundle
31
- key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
32
- restore-keys: |
33
- ${{ runner.os }}-gems-
28
+ bundler-cache: true # runs 'bundle install' and caches gems
34
29
 
35
- - name: Bundle install
30
+ - name: Run rspec with coverage
36
31
  run: |
37
- bundle config path vendor/bundle
38
- bundle config set jobs 4
39
- bundle config set retry 3
40
- bundle install
32
+ COVERAGE=true bundle exec rspec
41
33
 
42
34
  - name: Run rubocop
43
- run: |
35
+ run: |
44
36
  bundle exec rubocop --parallel
45
37
 
46
- - name: Run rspec
47
- run: bundle exec rspec
38
+ - name: Run Skunk on Project
39
+ run: |
40
+ gem install skunk
41
+ skunk lib/
@@ -9,6 +9,15 @@ jobs:
9
9
  steps:
10
10
  - uses: mheap/github-action-required-labels@v1
11
11
  with:
12
- mode: exactly
12
+ mode: minimum
13
13
  count: 1
14
- labels: "bug, change, enhancement"
14
+ #
15
+ # Releases will group changes under Added/Fixed/Changed sub-headers
16
+ # based on labels and follwing these rules:
17
+ #
18
+ # Added: enhancement
19
+ # Fixed: bug
20
+ # Changed: maintenance, change, dependencies (used by Dependabot)
21
+ # Ignore: skip-changelog
22
+ #
23
+ labels: "enhancement, bug, maintenance, change, dependencies, skip-changelog"
data/README.md CHANGED
@@ -3,9 +3,6 @@ FinApps Ruby-Client-Core
3
3
  ========================
4
4
 
5
5
  [![Gem Version](https://img.shields.io/gem/v/finapps_core.svg)](https://rubygems.org/gems/finapps_core)
6
- [![Build Status](https://travis-ci.org/finapps/ruby-client-core.svg?branch=master)](https://travis-ci.org/finapps/ruby-client-core)
7
- [![Code Climate](https://codeclimate.com/github/finapps/ruby-client-core/badges/gpa.svg)](https://codeclimate.com/github/finapps/ruby-client-core)
8
- [![Test Coverage](https://codeclimate.com/github/finapps/ruby-client-core/badges/coverage.svg)](https://codeclimate.com/github/finapps/ruby-client-core/coverage)
9
6
  [![License](http://img.shields.io/:license-mit-blue.svg?style=flat-square)](http://finapps.mit-license.org)
10
7
 
11
8
  Common library for Ruby clients.
@@ -18,4 +15,4 @@ See Financial Apps API [Ruby Client][ruby-client].
18
15
  [FinancialApps.com][financialapps]
19
16
 
20
17
  [ruby-client]: https://github.com/finapps/ruby-client
21
- [financialapps]: https://financialapps.com
18
+ [financialapps]: https://financialapps.com
data/finapps_core.gemspec CHANGED
@@ -20,19 +20,20 @@ Gem::Specification.new do |spec|
20
20
  spec.test_files = Dir['spec/**/*.rb']
21
21
  spec.require_paths = ['lib']
22
22
 
23
- spec.add_runtime_dependency 'faraday', '~> 1.3', '>= 1.3.0'
23
+ spec.add_runtime_dependency 'faraday', '~> 1.4', '>= 1.4.0'
24
24
  spec.add_runtime_dependency 'faraday_middleware', '~> 1.0', '>= 1.0.0'
25
25
 
26
- spec.add_development_dependency 'bundler', '~> 2.1', '>= 2.1.4'
27
- spec.add_development_dependency 'codeclimate-test-reporter', '~> 1.0', '>= 1.0.9'
26
+ spec.add_development_dependency 'bundler', '~> 2.2', '>= 2.2.16'
28
27
  spec.add_development_dependency 'rake', '~> 13.0', '>= 13.0.1'
29
28
  spec.add_development_dependency 'rspec', '~> 3.10', '>= 3.10.0'
30
29
  spec.add_development_dependency 'rubocop', '~> 1.9', '>= 1.9.1'
31
30
  spec.add_development_dependency 'rubocop-performance', '~> 1.9', '>= 1.9.2'
32
31
  spec.add_development_dependency 'rubocop-rake', '~> 0.5', '>= 0.5.1'
33
32
  spec.add_development_dependency 'rubocop-rspec', '~> 2.2', '>= 2.2.0'
33
+ spec.add_development_dependency 'simplecov', '~> 0.21', '>= 0.21.2'
34
+ spec.add_development_dependency 'simplecov-console', '~> 0.9'
34
35
  spec.add_development_dependency 'sinatra', '~> 2.1', '>= 2.1.0'
35
- spec.add_development_dependency 'webmock', '~> 3.11', '>= 3.11.2'
36
+ spec.add_development_dependency 'webmock', '~> 3.12', '>= 3.12.2'
36
37
 
37
38
  spec.extra_rdoc_files = %w(README.md LICENSE)
38
39
  spec.rdoc_options = %w(--line-numbers --inline-source --title finapps-ruby-core --main README.md)
@@ -9,7 +9,7 @@ module FinAppsCore
9
9
 
10
10
  # noinspection SpellCheckingInspection
11
11
  DEFAULTS = {
12
- host: 'https://api.finclear.io',
12
+ host: 'https://api.allcleardecisioning.com',
13
13
  timeout: 30,
14
14
  proxy: nil,
15
15
  log_level: Logger::UNKNOWN
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FinAppsCore
4
- VERSION = '5.0.15'
4
+ VERSION = '5.0.16'
5
5
  end
@@ -9,9 +9,22 @@ RSpec.describe FinAppsCore::REST::Defaults do
9
9
  it('sets API_VERSION') { expect(described_class::API_VERSION).to eq '4' }
10
10
  it('sets DEFAULTS') { expect(described_class::DEFAULTS).to be_a(Hash) }
11
11
  it('freezes DEFAULTS') { expect(described_class::DEFAULTS).to be_frozen }
12
- it('sets DEFAULTS[:host]') { expect(described_class::DEFAULTS[:host]).to eq 'https://api.finclear.io' }
13
- it('sets DEFAULTS[:timeout]') { expect(described_class::DEFAULTS[:timeout]).to eq 30 }
14
- it('does not set DEFAULTS[:proxy]') { expect(described_class::DEFAULTS[:proxy]).to be_nil }
15
- it('sets DEFAULTS[:log_level]') { expect(described_class::DEFAULTS[:log_level]).to eq Logger::UNKNOWN }
12
+
13
+ it('sets DEFAULTS[:host]') {
14
+ expected = 'https://api.allcleardecisioning.com'
15
+ expect(described_class::DEFAULTS[:host]).to eq expected
16
+ }
17
+
18
+ it('sets DEFAULTS[:timeout]') {
19
+ expect(described_class::DEFAULTS[:timeout]).to eq 30
20
+ }
21
+
22
+ it('does not set DEFAULTS[:proxy]') {
23
+ expect(described_class::DEFAULTS[:proxy]).to be_nil
24
+ }
25
+
26
+ it('sets DEFAULTS[:log_level]') {
27
+ expect(described_class::DEFAULTS[:log_level]).to eq Logger::UNKNOWN
28
+ }
16
29
  end
17
30
  end
data/spec/spec_helper.rb CHANGED
@@ -1,10 +1,19 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- if ENV['CODECLIMATE_REPO_TOKEN']
4
- # require 'codeclimate-test-reporter'
5
- # CodeClimate::TestReporter.start
3
+ if ENV['COVERAGE'] == 'true'
6
4
  require 'simplecov'
7
- SimpleCov.start
5
+ require 'simplecov-console'
6
+
7
+ SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
8
+ SimpleCov::Formatter::HTMLFormatter,
9
+ SimpleCov::Formatter::Console,
10
+ ]
11
+
12
+ SimpleCov.start do
13
+ track_files 'lib/**/*.rb'
14
+ end
15
+
16
+ puts "Using SimpleCov v#{SimpleCov::VERSION}"
8
17
  end
9
18
 
10
19
  require 'bundler/setup'
@@ -33,7 +42,6 @@ RSpec.configure do |config|
33
42
  base_url = "#{FinAppsCore::REST::Defaults::DEFAULTS[:host]}/v#{FinAppsCore::REST::Defaults::API_VERSION}/"
34
43
  stub_request(:any, /#{base_url}/).to_rack(::FakeApi)
35
44
  end
36
- WebMock.disable_net_connect!(allow: 'codeclimate.com')
37
45
  end
38
46
 
39
47
  VALID_CREDENTIALS = {identifier: '49fb918d-7e71-44dd-7378-58f19606df2a',
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.15
4
+ version: 5.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erich Quintero
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-03 00:00:00.000000000 Z
11
+ date: 2021-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -16,20 +16,20 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.3'
19
+ version: '1.4'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 1.3.0
22
+ version: 1.4.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - "~>"
28
28
  - !ruby/object:Gem::Version
29
- version: '1.3'
29
+ version: '1.4'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 1.3.0
32
+ version: 1.4.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: faraday_middleware
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -56,40 +56,20 @@ dependencies:
56
56
  requirements:
57
57
  - - "~>"
58
58
  - !ruby/object:Gem::Version
59
- version: '2.1'
60
- - - ">="
61
- - !ruby/object:Gem::Version
62
- version: 2.1.4
63
- type: :development
64
- prerelease: false
65
- version_requirements: !ruby/object:Gem::Requirement
66
- requirements:
67
- - - "~>"
68
- - !ruby/object:Gem::Version
69
- version: '2.1'
70
- - - ">="
71
- - !ruby/object:Gem::Version
72
- version: 2.1.4
73
- - !ruby/object:Gem::Dependency
74
- name: codeclimate-test-reporter
75
- requirement: !ruby/object:Gem::Requirement
76
- requirements:
77
- - - "~>"
78
- - !ruby/object:Gem::Version
79
- version: '1.0'
59
+ version: '2.2'
80
60
  - - ">="
81
61
  - !ruby/object:Gem::Version
82
- version: 1.0.9
62
+ version: 2.2.16
83
63
  type: :development
84
64
  prerelease: false
85
65
  version_requirements: !ruby/object:Gem::Requirement
86
66
  requirements:
87
67
  - - "~>"
88
68
  - !ruby/object:Gem::Version
89
- version: '1.0'
69
+ version: '2.2'
90
70
  - - ">="
91
71
  - !ruby/object:Gem::Version
92
- version: 1.0.9
72
+ version: 2.2.16
93
73
  - !ruby/object:Gem::Dependency
94
74
  name: rake
95
75
  requirement: !ruby/object:Gem::Requirement
@@ -210,6 +190,40 @@ dependencies:
210
190
  - - ">="
211
191
  - !ruby/object:Gem::Version
212
192
  version: 2.2.0
193
+ - !ruby/object:Gem::Dependency
194
+ name: simplecov
195
+ requirement: !ruby/object:Gem::Requirement
196
+ requirements:
197
+ - - "~>"
198
+ - !ruby/object:Gem::Version
199
+ version: '0.21'
200
+ - - ">="
201
+ - !ruby/object:Gem::Version
202
+ version: 0.21.2
203
+ type: :development
204
+ prerelease: false
205
+ version_requirements: !ruby/object:Gem::Requirement
206
+ requirements:
207
+ - - "~>"
208
+ - !ruby/object:Gem::Version
209
+ version: '0.21'
210
+ - - ">="
211
+ - !ruby/object:Gem::Version
212
+ version: 0.21.2
213
+ - !ruby/object:Gem::Dependency
214
+ name: simplecov-console
215
+ requirement: !ruby/object:Gem::Requirement
216
+ requirements:
217
+ - - "~>"
218
+ - !ruby/object:Gem::Version
219
+ version: '0.9'
220
+ type: :development
221
+ prerelease: false
222
+ version_requirements: !ruby/object:Gem::Requirement
223
+ requirements:
224
+ - - "~>"
225
+ - !ruby/object:Gem::Version
226
+ version: '0.9'
213
227
  - !ruby/object:Gem::Dependency
214
228
  name: sinatra
215
229
  requirement: !ruby/object:Gem::Requirement
@@ -236,20 +250,20 @@ dependencies:
236
250
  requirements:
237
251
  - - "~>"
238
252
  - !ruby/object:Gem::Version
239
- version: '3.11'
253
+ version: '3.12'
240
254
  - - ">="
241
255
  - !ruby/object:Gem::Version
242
- version: 3.11.2
256
+ version: 3.12.2
243
257
  type: :development
244
258
  prerelease: false
245
259
  version_requirements: !ruby/object:Gem::Requirement
246
260
  requirements:
247
261
  - - "~>"
248
262
  - !ruby/object:Gem::Version
249
- version: '3.11'
263
+ version: '3.12'
250
264
  - - ">="
251
265
  - !ruby/object:Gem::Version
252
- version: 3.11.2
266
+ version: 3.12.2
253
267
  description: A simple library for communicating with the FinApps REST API. Core functionality.
254
268
  email:
255
269
  - erich@financialapps.com
@@ -260,6 +274,7 @@ extra_rdoc_files:
260
274
  - LICENSE
261
275
  files:
262
276
  - ".codeclimate.yml"
277
+ - ".github/dependabot.yml"
263
278
  - ".github/release-drafter.yml"
264
279
  - ".github/workflows/ci.yaml"
265
280
  - ".github/workflows/release-drafter.yml"
@@ -357,21 +372,21 @@ signing_key:
357
372
  specification_version: 4
358
373
  summary: FinApps REST API ruby client - Core.
359
374
  test_files:
375
+ - spec/utils/validatable_spec.rb
376
+ - spec/spec_helper.rb
360
377
  - spec/support/fake_api.rb
361
378
  - spec/spec_helpers/client.rb
362
- - spec/rest/configuration_spec.rb
363
- - spec/rest/base_client_spec.rb
364
379
  - spec/rest/resources_spec.rb
365
- - spec/rest/defaults_spec.rb
366
380
  - spec/rest/credentials_spec.rb
367
- - spec/spec_helper.rb
381
+ - spec/rest/base_client_spec.rb
382
+ - spec/rest/configuration_spec.rb
383
+ - spec/rest/defaults_spec.rb
368
384
  - spec/core_extensions/object/is_integer_spec.rb
369
- - spec/utils/validatable_spec.rb
370
- - spec/middleware/response/raise_error_spec.rb
371
- - spec/middleware/request/tenant_authentication_spec.rb
372
- - spec/middleware/request/no_encoding_basic_authentication_spec.rb
373
385
  - spec/middleware/request/user_agent_spec.rb
374
- - spec/middleware/request/x_consumer_id_spec.rb
375
386
  - spec/middleware/request/request_id_spec.rb
376
- - spec/middleware/request/x_tenant_id_spec.rb
377
387
  - spec/middleware/request/accept_json_spec.rb
388
+ - spec/middleware/request/no_encoding_basic_authentication_spec.rb
389
+ - spec/middleware/request/tenant_authentication_spec.rb
390
+ - spec/middleware/request/x_consumer_id_spec.rb
391
+ - spec/middleware/request/x_tenant_id_spec.rb
392
+ - spec/middleware/response/raise_error_spec.rb