finapps_core 2.0.14 → 2.0.15

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
  SHA1:
3
- metadata.gz: 86bc9e7cd93098384999250f48d2fdda8f4ca28b
4
- data.tar.gz: 2937bd60ffef3631111dc2e56dee2f74b7dbd079
3
+ metadata.gz: 13f4ba86a94de3e1ca4e6aff4ce2cf64dfbbb423
4
+ data.tar.gz: ca6db24c7d989854b484e200efcc4d97aff7dd83
5
5
  SHA512:
6
- metadata.gz: 05bbf8d6c82bb75465d0860283401a1740aef976eec61061b433fa0e02cf9849ec618d2fba52055f4156c7b41a6e6af876c101447ece3d8fb5261b3309ea8297
7
- data.tar.gz: d6e35e528aae53103ef0f3cd8469bdd1c5fe9289a5f4c9533e867347d742826339578b9b4207580b5e8acab276f259b161d6934203fbea50896b0b69be1428ed
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
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module FinAppsCore
3
- VERSION = '2.0.14'
3
+ VERSION = '2.0.15'
4
4
  end
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: finapps_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.14
4
+ version: 2.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erich Quintero