finapps_core 6.0.1 → 6.0.2

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: d18e32588446fcca7dbf1e07e819e278d3d2abb4bf75207eba374b5c60c5f14c
4
- data.tar.gz: 0f7f59132bdf40f76b80925390bacb4067be4a3604d45a0defdbd3f3dbe5b298
3
+ metadata.gz: 3b9fa5ca000c09b230c7032f5c9440717277f1f4aaf6f0378db29fecf33876b9
4
+ data.tar.gz: 037fc8c35abc696cbab2f25c62891a1e0c886a01f70bc2138d4c70d874e894c1
5
5
  SHA512:
6
- metadata.gz: 3278d2d0ca52fcf1042923b9fe641b112b2c7956062e81527c84b5e24d3805df7479b233ded5c2e5c2fa96a7c2457107ee52afdf1c783f3a307c7b0626ad5cef
7
- data.tar.gz: d845efa3086595a6b5c024a91a6755d92fe24fa3e85e79cc530074d4469b861c2e54c133289a19762b2c126145d2e01f9891da4617b99d98490c60af6380171e
6
+ metadata.gz: 6f933574cc7893beed8b32d12c05a41be05bfffcf4819c6092a32c31ffa8be0b458502982f3c7067a1d2ed5ec3343d229ebe316df83fb7ae9444b0f5e0ab700f
7
+ data.tar.gz: f2d8db2e4f877a97fc4a2415f7cfd7a91043b701fc28a4ebff3a0b29e3769042b4a6291a768b1eb23ac9c640bd0c272748fa660bd48a370ad1c836231fe81902
@@ -16,11 +16,10 @@ jobs:
16
16
  fail-fast: false
17
17
  matrix:
18
18
  os: [ubuntu-latest]
19
- ruby: [2.6, 2.7, '3.0']
20
19
  runs-on: ${{ matrix.os }}
21
20
  steps:
22
21
  - name: Checkout source code
23
- uses: actions/checkout@v2.3.4
22
+ uses: actions/checkout@v2.4.0
24
23
 
25
24
  - name: Install required ruby version
26
25
  uses: ruby/setup-ruby@v1
@@ -11,7 +11,7 @@ jobs:
11
11
 
12
12
  steps:
13
13
  - name: Checkout source code
14
- uses: actions/checkout@v2.3.4
14
+ uses: actions/checkout@v2.4.0
15
15
  with:
16
16
  persist-credentials: false
17
17
  fetch-depth: 0 # otherwise, you will fail to push refs to dest repo
@@ -7,7 +7,7 @@ jobs:
7
7
  label:
8
8
  runs-on: ubuntu-latest
9
9
  steps:
10
- - uses: mheap/github-action-required-labels@v1.1.2
10
+ - uses: mheap/github-action-required-labels@v1.2
11
11
  with:
12
12
  mode: minimum
13
13
  count: 1
data/finapps_core.gemspec CHANGED
@@ -37,4 +37,7 @@ Gem::Specification.new do |spec|
37
37
 
38
38
  spec.extra_rdoc_files = %w(README.md LICENSE)
39
39
  spec.rdoc_options = %w(--line-numbers --inline-source --title finapps-ruby-core --main README.md)
40
+ # rubocop:disable Gemspec/RequireMFA
41
+ spec.metadata['rubygems_mfa_required'] = 'false'
42
+ # rubocop:enable Gemspec/RequireMFA
40
43
  end
@@ -19,13 +19,13 @@ module FinAppsCore
19
19
  end
20
20
 
21
21
  def init_connection_response(conn, logger)
22
+ conn.response :json,
23
+ content_type: /\bjson$/,
24
+ parser_options: {symbolize_names: true}
22
25
  conn.response :logger, logger, bodies: true,
23
26
  headers: true,
24
27
  formatter: FinAppsCore::Logging::ContenTypeFormatter,
25
28
  log_level: :debug
26
- conn.response :json,
27
- content_type: /\bjson$/,
28
- parser_options: {symbolize_names: true}
29
29
  end
30
30
 
31
31
  def init_connection_request(conn, config)
@@ -12,7 +12,7 @@ module FinAppsCore
12
12
  end
13
13
 
14
14
  def nil_or_empty?(value)
15
- !value || value.respond_to?(:empty?) && value.empty?
15
+ !value || (value.respond_to?(:empty?) && value.empty?)
16
16
  end
17
17
  end
18
18
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FinAppsCore
4
- VERSION = '6.0.1'
4
+ VERSION = '6.0.2'
5
5
  end
@@ -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__)}/fixtures/#{file_name}", 'rb').read
37
+ File.binread("#{File.dirname(__FILE__)}/fixtures/#{file_name}")
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: 6.0.1
4
+ version: 6.0.2
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-08-26 00:00:00.000000000 Z
11
+ date: 2022-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -347,7 +347,8 @@ files:
347
347
  homepage: https://github.com/finapps/ruby-client-core
348
348
  licenses:
349
349
  - MIT
350
- metadata: {}
350
+ metadata:
351
+ rubygems_mfa_required: 'false'
351
352
  post_install_message:
352
353
  rdoc_options:
353
354
  - "--line-numbers"
@@ -374,22 +375,22 @@ signing_key:
374
375
  specification_version: 4
375
376
  summary: FinApps REST API ruby client - Core.
376
377
  test_files:
377
- - spec/rest/base_client_spec.rb
378
- - spec/rest/defaults_spec.rb
379
- - spec/rest/configuration_spec.rb
380
- - spec/rest/resources_spec.rb
381
- - spec/rest/credentials_spec.rb
382
- - spec/spec_helpers/client.rb
383
- - spec/middleware/request/user_agent_spec.rb
378
+ - spec/core_extensions/object/is_integer_spec.rb
379
+ - spec/logging/conten_type_formatter_spec.rb
380
+ - spec/utils/validatable_spec.rb
381
+ - spec/support/fake_api.rb
384
382
  - spec/middleware/request/request_id_spec.rb
385
- - spec/middleware/request/x_consumer_id_spec.rb
386
- - spec/middleware/request/x_tenant_id_spec.rb
387
- - spec/middleware/request/tenant_authentication_spec.rb
388
383
  - spec/middleware/request/accept_json_spec.rb
389
384
  - spec/middleware/request/no_encoding_basic_authentication_spec.rb
385
+ - spec/middleware/request/x_consumer_id_spec.rb
386
+ - spec/middleware/request/user_agent_spec.rb
387
+ - spec/middleware/request/tenant_authentication_spec.rb
388
+ - spec/middleware/request/x_tenant_id_spec.rb
390
389
  - spec/middleware/response/raise_error_spec.rb
391
- - spec/support/fake_api.rb
392
- - spec/core_extensions/object/is_integer_spec.rb
393
- - spec/logging/conten_type_formatter_spec.rb
394
390
  - spec/spec_helper.rb
395
- - spec/utils/validatable_spec.rb
391
+ - spec/rest/configuration_spec.rb
392
+ - spec/rest/base_client_spec.rb
393
+ - spec/rest/defaults_spec.rb
394
+ - spec/rest/credentials_spec.rb
395
+ - spec/rest/resources_spec.rb
396
+ - spec/spec_helpers/client.rb