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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3a098cba1e6c622c1e212b0d03aee111549f3a9c
4
- data.tar.gz: 80b157ca52d217c70198f1f526960b63816f3357
3
+ metadata.gz: 1f75989d009ca4f7eec8d38c7347b1b97f434281
4
+ data.tar.gz: e99d712ebea49f4f507bf8475500d3dfb1a6b7c8
5
5
  SHA512:
6
- metadata.gz: d557b393da964db1e85b0ec52638008688865d922a3b6b0ac8ba5bcd1f6b02afe52648ea521c09180ff1f1b484fb43c9bee8ab8858b210434aebbb4dc5b416f6
7
- data.tar.gz: df245e9d3a6718053351ee871874696be01db352e2273abc9932d0f917cb338d7d12dc42c7578195773140b3396d7102d4bdae2507c2fccb860ee5f10a999abe
6
+ metadata.gz: cf2a27ff46334e3b294497ffa5f00984e8701399318e234dc6a231ee621dcaf05f01a20784c4d2bcd8d38c22f1477ff0e4dbb3c02c888f006d5924e6b265a541
7
+ data.tar.gz: 2462de76e69c901c21d76aa5a81cb4f3b22bddd29315342804aae456ad1e8d2b56203005af003d4b966658cbdabcd4bec6be172c277246a152e97f0c0e1dc8ef
data/dino_utils.gemspec CHANGED
@@ -25,5 +25,6 @@ Gem::Specification.new do |spec|
25
25
  spec.add_dependency "faraday"
26
26
  spec.add_dependency "faraday_middleware"
27
27
  spec.add_dependency "faraday-conductivity"
28
+ spec.add_dependency "net-http-persistent"
28
29
  spec.add_dependency "pg"
29
30
  end
@@ -1,3 +1,3 @@
1
1
  module DinoUtils
2
- VERSION = "0.1.18".freeze
2
+ VERSION = "0.1.19".freeze
3
3
  end
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.18
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-08 00:00:00.000000000 Z
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