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 +4 -4
- data/.github/workflows/ci.yaml +1 -2
- data/.github/workflows/release.yml +1 -1
- data/.github/workflows/verify-pr-labeled.yml +1 -1
- data/finapps_core.gemspec +3 -0
- data/lib/finapps_core/rest/connection.rb +3 -3
- data/lib/finapps_core/utils/validatable.rb +1 -1
- data/lib/finapps_core/version.rb +1 -1
- data/spec/support/fake_api.rb +1 -1
- metadata +18 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b9fa5ca000c09b230c7032f5c9440717277f1f4aaf6f0378db29fecf33876b9
|
4
|
+
data.tar.gz: 037fc8c35abc696cbab2f25c62891a1e0c886a01f70bc2138d4c70d874e894c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f933574cc7893beed8b32d12c05a41be05bfffcf4819c6092a32c31ffa8be0b458502982f3c7067a1d2ed5ec3343d229ebe316df83fb7ae9444b0f5e0ab700f
|
7
|
+
data.tar.gz: f2d8db2e4f877a97fc4a2415f7cfd7a91043b701fc28a4ebff3a0b29e3769042b4a6291a768b1eb23ac9c640bd0c272748fa660bd48a370ad1c836231fe81902
|
data/.github/workflows/ci.yaml
CHANGED
@@ -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.
|
22
|
+
uses: actions/checkout@v2.4.0
|
24
23
|
|
25
24
|
- name: Install required ruby version
|
26
25
|
uses: ruby/setup-ruby@v1
|
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)
|
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.
|
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.
|
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:
|
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/
|
378
|
-
- spec/
|
379
|
-
- spec/
|
380
|
-
- spec/
|
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/
|
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
|