finapps_core 2.0.14 → 2.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13f4ba86a94de3e1ca4e6aff4ce2cf64dfbbb423
|
4
|
+
data.tar.gz: ca6db24c7d989854b484e200efcc4d97aff7dd83
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ecf9432bd8c9000dc9a7558d631d07b1a667d76ad60f999e0b755953af7cc24c15f0159c3be0c1f558afe45f003659472849cd321ecfa308df3841efa2f7e0e1
|
7
|
+
data.tar.gz: ee47b4f66598ecefb87921ec2c2b4cb1a1b3b608a85ac4aad1808120123faaf8408defbb02bf07595151c8a3d8e5e36254ede7e78da4b07aef33c27d545200de
|
@@ -1,10 +1,10 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
+
using ObjectExtensions
|
3
|
+
using StringExtensions
|
4
|
+
|
2
5
|
module FinAppsCore
|
3
6
|
module Middleware
|
4
7
|
class RaiseError < Faraday::Response::Middleware # :nodoc:
|
5
|
-
using ObjectExtensions
|
6
|
-
using StringExtensions
|
7
|
-
|
8
8
|
SUCCESS_STATUSES = 200..299
|
9
9
|
CONNECTION_FAILED_STATUS = 407
|
10
10
|
API_SESSION_TIMEOUT = 419
|
@@ -4,6 +4,9 @@ require_relative './connection.rb'
|
|
4
4
|
require_relative '../utils/loggeable'
|
5
5
|
require_relative '../utils/validatable'
|
6
6
|
|
7
|
+
using ObjectExtensions
|
8
|
+
using StringExtensions
|
9
|
+
|
7
10
|
module FinAppsCore
|
8
11
|
module REST
|
9
12
|
# base client functionality
|
@@ -12,9 +15,6 @@ module FinAppsCore
|
|
12
15
|
include ::FinAppsCore::Utils::Validatable
|
13
16
|
include ::FinAppsCore::REST::Connection
|
14
17
|
|
15
|
-
using ObjectExtensions
|
16
|
-
using StringExtensions
|
17
|
-
|
18
18
|
attr_reader :config
|
19
19
|
|
20
20
|
def initialize(options, logger=nil)
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
+
using ObjectExtensions
|
3
|
+
using StringExtensions
|
4
|
+
|
2
5
|
module FinAppsCore
|
3
6
|
module Utils
|
4
7
|
# Adds validation capabilities when included into other classes
|
5
8
|
module Validatable
|
6
|
-
using ObjectExtensions
|
7
|
-
using StringExtensions
|
8
|
-
|
9
9
|
def not_blank(value, name=nil)
|
10
10
|
raise FinAppsCore::MissingArgumentsError.new "Missing argument#{": #{name}" unless name.nil?}" if value.blank?
|
11
11
|
end
|
data/lib/finapps_core/version.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
+
using ObjectExtensions
|
3
|
+
|
2
4
|
RSpec.describe ObjectExtensions do
|
3
5
|
context 'when refining Object' do
|
4
|
-
using ObjectExtensions
|
5
|
-
|
6
6
|
describe '#blank?' do
|
7
7
|
# An object is blank if it's false, empty, or a whitespace string.
|
8
8
|
context 'for false' do
|