rangeclient 0.0.12 → 0.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rangeclient.rb +4 -1
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 28d3040c8f99b86ce411d4476ca9e4b39ecdb189
4
- data.tar.gz: 27f05acdb32f147c1a8dabf5e648c1343e75c0af
3
+ metadata.gz: 503f1635886f880287248e397e08077b6e7d0ba7
4
+ data.tar.gz: 3b7db88d4f4d587d527f58ee2a109bb9fc038f3e
5
5
  SHA512:
6
- metadata.gz: 6e8c4ec8cdc73c77629661c695b8b69c0efe03a766c3e9dfb3ca6931c7cb4d8318257d43dc98f3da6dfdd0c0a7d107ef0ca1b74724304abed521164ac5eb7b2d
7
- data.tar.gz: 07279999c5489ceb2cefd83a2ac91e92160bd4cfee734c1a7d8f7ae67bd6ebdd63d8cb0f867a88e531cba8d025bdbbb89dd9bb980430ab92ea38f480c955d15c
6
+ metadata.gz: 56a0e1415ec87df22cc452c31a09eb78943d91098dd2f01bea46fb48e9dabbdabcae18a1a713bdc5bb51eae2ecc4987fd29cd82efd8c5f1f2a0bde9ea212ab04
7
+ data.tar.gz: 79bd700c82a5c3dfbd7b8ba5a44bc51d5d4efb2f2512ee3ab8b00ae894363672ff9adf18e28eb87d35222fae608b000a463a77b6bd4f01482bffd6bfe434832c
data/lib/rangeclient.rb CHANGED
@@ -23,14 +23,17 @@ class Range::Client
23
23
  @port = ENV['RANGE_PORT'] if ENV.has_key?('RANGE_PORT')
24
24
  @port = options[:port] if options.member?(:port)
25
25
 
26
+ @ssl = ENV['RANGE_SSL'] || options[:ssl]
27
+
26
28
  @timeout = 60
27
29
  @timeout = options[:timeout] if options.member?(:timeout)
28
30
  end
29
-
31
+
30
32
  def expand(arg)
31
33
  escaped_arg = URI.escape arg
32
34
  http = Net::HTTP.new(@host, @port)
33
35
  http.read_timeout = @timeout
36
+ http.use_ssl = @ssl
34
37
  req = Net::HTTP::Get.new('/range/list?' + escaped_arg)
35
38
  resp = http.request(req)
36
39
  @rangeexception = resp['rangeexception']
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rangeclient
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evan Miller
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-22 00:00:00.000000000 Z
11
+ date: 2014-11-11 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Use with range from https://github.com/square/libcrange
14
14
  email:
@@ -30,7 +30,7 @@ files:
30
30
  - bin/range_split
31
31
  - README.md
32
32
  - LICENSE.md
33
- homepage: https://github.com/square/prodeng/tree/master/ruby_rangeclient
33
+ homepage: https://github.com/square/rangeclient
34
34
  licenses: []
35
35
  metadata: {}
36
36
  post_install_message: