finapps_core 2.0.8 → 2.0.9

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: 690653898566160499a36794b4e425e971084850
4
- data.tar.gz: a8033293d7534b33e3dc50a9e05ebf572459104c
3
+ metadata.gz: c22285971977bec08d18d052a6c8a8c9f914728f
4
+ data.tar.gz: f09b7b16b0274301d1c45ba1d243c35b42b52499
5
5
  SHA512:
6
- metadata.gz: a73ce339f22075a17bd42ef376f242c8a073fc2cd75a747c78208bde95a3be3432a473f0584058d6d062e93e188b27ca7410b8c12090f18c999690e9c94390d4
7
- data.tar.gz: 5dd85914a21e81980a7decc0e87cb52d5c9c05a27505b7da5b53e956cd13f7a594fd547ee09eaec96ea8de523c6fdee09f8f37ff532d9f15367aa99d7e824d55
6
+ metadata.gz: d2de23e7309b6c9cb88531fa35e51ae46d031d02a43eecd6e91edbac0774e5386500874b6e87d8f5e82e1ed7d525ca0165d0b5d4ecdcb704b96ac1ca42e2bcc3
7
+ data.tar.gz: e38782f084a51009b01fd0a1ef23b73842cb1f1600b079ed747e142e5257ad085595adf15f6f89278513d8355567a0300ce1297d04c102e14923115b0d69abc2
data/.travis.yml CHANGED
@@ -3,7 +3,11 @@ cache: bundler
3
3
  rvm:
4
4
  - 2.3.1
5
5
  before_install:
6
- - "echo 'gem: --no-ri --no-rdoc' > ~/.gemrc"
6
+ - "echo 'gem: --no-ri --no-rdoc' > ~/.gemrc"
7
+ - gem update --system
8
+ - gem --version
9
+ - gem install bundler
10
+ - bundler --version
7
11
  script:
8
12
  - bundle exec rspec
9
13
  notifications:
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- finapps_core (2.0.7)
4
+ finapps_core (2.0.8)
5
5
  faraday (~> 0.11, >= 0.11.0)
6
6
  faraday_middleware (~> 0.11, >= 0.11.0.1)
7
7
  rash (~> 0.4, >= 0.4.0)
@@ -2,6 +2,7 @@
2
2
  module FinAppsCore
3
3
  module REST
4
4
  class Resources # :nodoc:
5
+ include FinAppsCore::Utils::Validatable
5
6
  include FinAppsCore::Utils::ParameterFilter
6
7
  require 'erb'
7
8
 
@@ -10,7 +11,7 @@ module FinAppsCore
10
11
  # @param [FinAppsCore::REST::Client] client
11
12
  # @return [FinAppsCore::REST::Resources]
12
13
  def initialize(client)
13
- raise MissingArgumentsError.new 'Missing argument: client.' if client.nil?
14
+ not_blank(client, :client)
14
15
  @client = client
15
16
  end
16
17
 
@@ -36,7 +37,7 @@ module FinAppsCore
36
37
  end
37
38
 
38
39
  def request_without_body(path, method, id)
39
- raise MissingArgumentsError.new 'Missing argument: id.' if id.nil? && path.nil?
40
+ not_blank(id, :id) if path.nil?
40
41
  path = "#{end_point}/:id".sub ':id', ERB::Util.url_encode(id) if path.nil?
41
42
  request_with_body path, method, {}
42
43
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module FinAppsCore
3
- VERSION = '2.0.8'
3
+ VERSION = '2.0.9'
4
4
  end
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.8
4
+ version: 2.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erich Quintero