belvo 0.19.2 → 0.19.3

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: efea687616660ff8f3d179ac0069cf8264ec2a0777d73e592b7510894a30cd4b
4
- data.tar.gz: ce5e1215ba5278fb40e2192e77d9e1f4e6675e17436255d0b0e2f0d14cde97eb
3
+ metadata.gz: 455f08aad36bb45f904a6c06fd63b46a91f320d20add273c8362e64d61d9e2a9
4
+ data.tar.gz: 674222f146ca510d11aee096a80c92b6b492ac37c1b56d9995d8524fc326c066
5
5
  SHA512:
6
- metadata.gz: 827e7bc7c884745ccd3e6821edc3384e1585fd1033cef0e3efef0505898de894642c6d30b288cb2bdc4e131a6661cb35561a61cee5a9c0750e08e09e396d1e94
7
- data.tar.gz: 37495bcce07c083dc5a0631b1a78e71a615e60abb9883b8c551d98a4a1c9b5304582f8d8da9f15b5e801e80210f6736872b2ac7d2bd0e8bb7b4d48e67a4dbac5
6
+ metadata.gz: 1020a9ca2b693f828453c35b960909a287948c441846873ad046d6dd74007f95682d929f1bca7c030bee692ffece52fa9d9a7d83e5e8b71dc353f23736eadda2
7
+ data.tar.gz: eb1609e92f2b796b7a57aefdd9ef6dc64b89400efebc9f250bde379ffe4ee4dee59ed4c1fe9d8bbb22d92e6a8a6e79d0ed35a85107a878bddd08e2d00616b221
data/Gemfile CHANGED
@@ -1,4 +1,3 @@
1
- # rubocop:disable all
2
1
  # frozen_string_literal: true
3
2
 
4
3
  source 'https://rubygems.org'
@@ -6,14 +5,4 @@ source 'https://rubygems.org'
6
5
  # Specify your gem's dependencies in belvo.gemspec
7
6
  gemspec
8
7
 
9
- gem 'coveralls_reborn', require: false
10
- gem 'faraday'
11
- gem 'faraday_middleware'
12
- gem 'rake', '~> 12.0'
13
- gem 'rspec', '~> 3.0'
14
- gem 'rubocop', '~> 0.81.0', require: false
15
- gem 'rubocop-rspec', require: false
16
- gem 'typhoeus'
17
8
  gem 'danger', '8.2.1'
18
- gem 'webmock'
19
- # rubocop:enable all
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- belvo (0.19.2)
4
+ belvo (0.19.3)
5
5
  faraday
6
6
  faraday_middleware
7
7
  typhoeus
@@ -41,16 +41,16 @@ GEM
41
41
  terminal-table (~> 1)
42
42
  diff-lcs (1.4.4)
43
43
  docile (1.4.0)
44
- ethon (0.12.0)
45
- ffi (>= 1.3.0)
44
+ ethon (0.14.0)
45
+ ffi (>= 1.15.0)
46
46
  faraday (1.1.0)
47
47
  multipart-post (>= 1.2, < 3)
48
48
  ruby2_keywords
49
49
  faraday-http-cache (2.2.0)
50
50
  faraday (>= 0.8)
51
- faraday_middleware (1.0.0)
51
+ faraday_middleware (1.1.0)
52
52
  faraday (~> 1.0)
53
- ffi (1.13.1)
53
+ ffi (1.15.3)
54
54
  git (1.8.1)
55
55
  rchardet (~> 1.8)
56
56
  hashdiff (1.0.1)
@@ -131,13 +131,10 @@ DEPENDENCIES
131
131
  belvo!
132
132
  coveralls_reborn
133
133
  danger (= 8.2.1)
134
- faraday
135
- faraday_middleware
136
134
  rake (~> 12.0)
137
135
  rspec (~> 3.0)
138
136
  rubocop (~> 0.81.0)
139
137
  rubocop-rspec
140
- typhoeus
141
138
  webmock
142
139
 
143
140
  BUNDLED WITH
data/lib/belvo/http.rb CHANGED
@@ -41,7 +41,7 @@ module Belvo
41
41
  raise RequestError.new(
42
42
  'Request error',
43
43
  response.status,
44
- response.body.to_s
44
+ response.body
45
45
  )
46
46
  end
47
47
  response
@@ -52,7 +52,7 @@ module Belvo
52
52
  # to Belvo API else False.
53
53
  def authenticate
54
54
  @session.basic_auth(@key_id, @key_password)
55
- response = @session.get('')
55
+ response = @session.get('api/')
56
56
  response.success?
57
57
  end
58
58
 
@@ -113,7 +113,7 @@ module Belvo
113
113
  params = {} if params.nil?
114
114
 
115
115
  resource_path = format('%<path>s%<id>s/', path: path, id: id)
116
- response = get(resource_path, params)
116
+ response = get(resource_path, **params)
117
117
 
118
118
  raise_for_status response
119
119
  response.body
data/lib/belvo/version.rb CHANGED
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Belvo
4
4
  # belvo-ruby current version
5
- VERSION = '0.19.2'
5
+ VERSION = '0.19.3'
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: belvo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.2
4
+ version: 0.19.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Belvo Finance S.L.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-12-01 00:00:00.000000000 Z
11
+ date: 2022-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday