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 +4 -4
- data/lib/dynaccount.rb +6 -4
- data/lib/dynaccount/version.rb +1 -1
- metadata +3 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc3ce0394d4e43b168869de0f91de34c822cbceb
|
4
|
+
data.tar.gz: 4eebf520445b637226d4dc59d89bcfa6c0117f94
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4cc21290765f3c42bfaba9cc6ba4746eaf56632e7e1b5bee6e6e33840e38403ca295e1f723def479838d91839788df93d753e2cad04f0118d46b3ab81a349f07
|
7
|
+
data.tar.gz: 548a2d2657040c893fd76986c8d201589a7960bc5559169e5175f5bd75912c9c2e9af9c6f378e721a96790c9e94155a840aa8b9b77fc9cbf2368a19492b9a515
|
data/lib/dynaccount.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
require 'json'
|
2
2
|
require 'faraday'
|
3
|
-
require 'net/http
|
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
|
84
|
-
|
85
|
-
|
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|
|
data/lib/dynaccount/version.rb
CHANGED
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.
|
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:
|
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.
|
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
|