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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dda04c11eafc58372e17a09a56aa0e59649daeaf
4
- data.tar.gz: 860aac69f2bcb486052094b5d43dc2756014ee64
3
+ metadata.gz: 798720b30e439be2c313ffabd3e23ff7d86bf0ed
4
+ data.tar.gz: 6396962f04578daea7ce7577e3a034111cc403a9
5
5
  SHA512:
6
- metadata.gz: 9492f07c6120b6328f258f2f9872e2bdc113b3504e7eb0b090961beb5611f1e95487a4c32af80e05d5c7c59df1047722b84c475f69e4924183b890177c05f871
7
- data.tar.gz: 1d3cb1338180a42932f347d67a7a4a7e38d332fd33abd4f0fa645243b503aa0f95f68bbf949ace956151987c3742e8d3a974aaa3c797bdb1f66b0da9a8e750a3
6
+ metadata.gz: 42f9374c9e9e7e2621f693041e5131eabcef7b5c51281f6fc1984b51321f1eb3a364f8c9c74a74994b7d05cc630ec4d8cdf862762ccae8b24aed08a537d22046
7
+ data.tar.gz: 837f8881895d668522ffa69e07e528036e9a1c5dac27b1e92f9d22751f0116735329dc01518a7cb34f4a172400ee7fb6157d8162e4c2f57514dd986f07b34446
@@ -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
@@ -1,3 +1,3 @@
1
1
  class Refine
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
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.0
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-05-16 00:00:00.000000000 Z
14
+ date: 2018-07-19 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: addressable