dynaccount 0.9.5 → 0.9.6

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: '08aed386009e4e574c4f8bdc03a68bde489bd9b6'
4
- data.tar.gz: f4b89bfc6b7f225863000eedb86430bc19819b77
3
+ metadata.gz: dc3ce0394d4e43b168869de0f91de34c822cbceb
4
+ data.tar.gz: 4eebf520445b637226d4dc59d89bcfa6c0117f94
5
5
  SHA512:
6
- metadata.gz: 5f549b129e9e042212f35d2a47a91a47c12f42a1317b94aad2af00cc27a120cdf8e7b768cc6943a7af11986e5500a38e30cae1821a8049915ed23d3bb5c24963
7
- data.tar.gz: ce901eeaeab9044c670575dccf5c8983de81ff05e49ced1302f908a07839f1fc0b967a624e79bc529080a2bd2811a1e09cabd44fafce6b464dbc89e3a763792f
6
+ metadata.gz: 4cc21290765f3c42bfaba9cc6ba4746eaf56632e7e1b5bee6e6e33840e38403ca295e1f723def479838d91839788df93d753e2cad04f0118d46b3ab81a349f07
7
+ data.tar.gz: 548a2d2657040c893fd76986c8d201589a7960bc5559169e5175f5bd75912c9c2e9af9c6f378e721a96790c9e94155a840aa8b9b77fc9cbf2368a19492b9a515
@@ -1,6 +1,6 @@
1
1
  require 'json'
2
2
  require 'faraday'
3
- require 'net/http/persistent'
3
+ require 'net/http'
4
4
  require 'logger'
5
5
 
6
6
  require 'dynaccount/dynaccount_object'
@@ -80,9 +80,11 @@ module Dynaccount
80
80
 
81
81
  def request(url, params = {}, _method = :post)
82
82
  @api_connection ||= Faraday.new(url: "https://#{@base_url}") do |faraday|
83
- faraday.request :url_encoded
84
- faraday.response :logger, ::Logger.new(STDOUT), bodies: (debug || false)
85
- faraday.adapter :net_http_persistent
83
+ faraday.request :url_encoded
84
+ logger = Logger.new STDOUT
85
+ logger.level = debug ? Logger::DEBUG : Logger::INFO
86
+ faraday.response :logger, logger, bodies: (debug || false)
87
+ faraday.adapter Faraday.default_adapter
86
88
  end
87
89
 
88
90
  @api_connection.post do |req|
@@ -1,3 +1,3 @@
1
1
  module Dynaccount
2
- VERSION = '0.9.5'.freeze
2
+ VERSION = '0.9.6'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dynaccount
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.5
4
+ version: 0.9.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Frederik Spang
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-08 00:00:00.000000000 Z
11
+ date: 2018-07-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -44,20 +44,6 @@ dependencies:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
46
  version: '0.10'
47
- - !ruby/object:Gem::Dependency
48
- name: net-http-persistent
49
- requirement: !ruby/object:Gem::Requirement
50
- requirements:
51
- - - "<"
52
- - !ruby/object:Gem::Version
53
- version: '3'
54
- type: :runtime
55
- prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- requirements:
58
- - - "<"
59
- - !ruby/object:Gem::Version
60
- version: '3'
61
47
  description: The dynaccount gem is an module-based integration for Dynaccount, with
62
48
  the classic ActiveRecord structure, find, all etc.
63
49
  email:
@@ -158,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
158
144
  version: '0'
159
145
  requirements: []
160
146
  rubyforge_project:
161
- rubygems_version: 2.5.2
147
+ rubygems_version: 2.6.14
162
148
  signing_key:
163
149
  specification_version: 4
164
150
  summary: The dynaccount gem is an module-based integration for Dynaccount