dino_utils 0.1.18 → 0.1.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/dino_utils.gemspec +1 -0
- data/lib/dino_utils/version.rb +1 -1
- data/lib/tn/http.rb +6 -6
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f75989d009ca4f7eec8d38c7347b1b97f434281
|
4
|
+
data.tar.gz: e99d712ebea49f4f507bf8475500d3dfb1a6b7c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf2a27ff46334e3b294497ffa5f00984e8701399318e234dc6a231ee621dcaf05f01a20784c4d2bcd8d38c22f1477ff0e4dbb3c02c888f006d5924e6b265a541
|
7
|
+
data.tar.gz: 2462de76e69c901c21d76aa5a81cb4f3b22bddd29315342804aae456ad1e8d2b56203005af003d4b966658cbdabcd4bec6be172c277246a152e97f0c0e1dc8ef
|
data/dino_utils.gemspec
CHANGED
data/lib/dino_utils/version.rb
CHANGED
data/lib/tn/http.rb
CHANGED
@@ -17,24 +17,24 @@ module TN
|
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
20
|
-
def self.default_connection(*arguments)
|
20
|
+
def self.default_connection(*arguments, adapter: nil)
|
21
21
|
Faraday.new(*arguments) do |conn|
|
22
22
|
conn.use TN::HTTP::WrapError
|
23
23
|
conn.use Faraday::Response::RaiseError
|
24
24
|
yield conn if block_given?
|
25
|
-
conn.adapter Faraday.default_adapter
|
25
|
+
conn.adapter(adapter || Faraday.default_adapter)
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
29
|
-
def self.form_connection(*arguments)
|
30
|
-
default_connection(*arguments) do |conn|
|
29
|
+
def self.form_connection(*arguments, adapter: nil)
|
30
|
+
default_connection(*arguments, adapter: adapter) do |conn|
|
31
31
|
conn.request :url_encoded
|
32
32
|
yield conn if block_given?
|
33
33
|
end
|
34
34
|
end
|
35
35
|
|
36
|
-
def self.default_json_connection(*arguments)
|
37
|
-
default_connection(*arguments) do |conn|
|
36
|
+
def self.default_json_connection(*arguments, adapter: nil)
|
37
|
+
default_connection(*arguments, adapter: adapter) do |conn|
|
38
38
|
conn.response :mashify
|
39
39
|
conn.response :json
|
40
40
|
yield conn if block_given?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dino_utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joe Van Dyk
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-07-
|
11
|
+
date: 2016-07-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -108,6 +108,20 @@ dependencies:
|
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: net-http-persistent
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
111
125
|
- !ruby/object:Gem::Dependency
|
112
126
|
name: pg
|
113
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -183,7 +197,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
183
197
|
version: '0'
|
184
198
|
requirements: []
|
185
199
|
rubyforge_project:
|
186
|
-
rubygems_version: 2.5.1
|
200
|
+
rubygems_version: 2.4.5.1
|
187
201
|
signing_key:
|
188
202
|
specification_version: 4
|
189
203
|
summary: Dino stuff
|