refine-ruby 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/refine.rb +3 -2
- data/lib/refine/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 798720b30e439be2c313ffabd3e23ff7d86bf0ed
|
4
|
+
data.tar.gz: 6396962f04578daea7ce7577e3a034111cc403a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42f9374c9e9e7e2621f693041e5131eabcef7b5c51281f6fc1984b51321f1eb3a364f8c9c74a74994b7d05cc630ec4d8cdf862762ccae8b24aed08a537d22046
|
7
|
+
data.tar.gz: 837f8881895d668522ffa69e07e528036e9a1c5dac27b1e92f9d22751f0116735329dc01518a7cb34f4a172400ee7fb6157d8162e4c2f57514dd986f07b34446
|
data/lib/refine.rb
CHANGED
@@ -14,7 +14,8 @@ class Refine
|
|
14
14
|
JSON.parse(response.body)
|
15
15
|
end
|
16
16
|
|
17
|
-
def initialize(opts = {})
|
17
|
+
def initialize(opts = {}, &block)
|
18
|
+
@http_client_config = block
|
18
19
|
@server = opts["server"] || "http://127.0.0.1:3333"
|
19
20
|
|
20
21
|
@throws_exceptions = opts["throws_exceptions"] === false ? false : true
|
@@ -223,7 +224,7 @@ class Refine
|
|
223
224
|
end
|
224
225
|
|
225
226
|
def client
|
226
|
-
@client ||= HTTPClient.new()
|
227
|
+
@client ||= HTTPClient.new(&@http_client_config)
|
227
228
|
end
|
228
229
|
|
229
230
|
end
|
data/lib/refine/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: refine-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Caleb Buxton
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2018-
|
14
|
+
date: 2018-07-19 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: addressable
|