rangeclient 0.0.16 → 0.0.17
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.
- checksums.yaml +4 -4
- data/lib/rangeclient.rb +4 -4
- metadata +10 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f6e9152546fa4236bdfcad376773f98316d9f2ee
|
4
|
+
data.tar.gz: 35aac7e41f6ac4b9927d5d2d7450d5ef2efed539
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1bde508cbb2dfa46fdc2bc7fc06c1ae673f80f633589d3117bdc1fa4bba62718676c211a5e10b6e06769bf7fdd758c2912b144ec172b31fb61d050cae73d734a
|
7
|
+
data.tar.gz: 85e21ef4d705e8cee38a8e9edea4f39eab4aea197a8016f6ff51ae6727cd64e57fee954cb672e0041c325e552e50cd384857f9aa316e6f9d68d0e25f326d63c8
|
data/lib/rangeclient.rb
CHANGED
@@ -7,7 +7,7 @@ require 'uri'
|
|
7
7
|
class Range::Client
|
8
8
|
attr_accessor :host, :port, :timeout, :rangeexception
|
9
9
|
|
10
|
-
class QueryException <
|
10
|
+
class QueryException < StandardError
|
11
11
|
end
|
12
12
|
|
13
13
|
# used to split hostnames into component parts for compression
|
@@ -85,7 +85,7 @@ class Range::Client
|
|
85
85
|
if r=~ /,/
|
86
86
|
r = "{#{r}}"
|
87
87
|
end
|
88
|
-
result << "#{r}.#{domain}"
|
88
|
+
result << "#{r}.#{domain}"
|
89
89
|
end
|
90
90
|
return result.join ","
|
91
91
|
end
|
@@ -135,7 +135,7 @@ class Range::Client
|
|
135
135
|
count += 1
|
136
136
|
next
|
137
137
|
end
|
138
|
-
|
138
|
+
|
139
139
|
if prev_n
|
140
140
|
if count > 0
|
141
141
|
result << _get_group(prev_prefix, prev_digits, count, prev_suffix)
|
@@ -181,7 +181,7 @@ class Range::Client
|
|
181
181
|
prefix = "" if prefix.nil?
|
182
182
|
group = sprintf("%s%0*d..%s",
|
183
183
|
prefix,
|
184
|
-
digits.to_s.length,
|
184
|
+
digits.to_s.length,
|
185
185
|
digits.to_i, # sometimes has leading zeroes
|
186
186
|
_ignore_common_prefix(digits, (digits.to_i + count).to_s)
|
187
187
|
)
|
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.
|
4
|
+
version: 0.0.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Evan Miller
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-09-16 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Use with range from https://github.com/square/libcrange
|
14
14
|
email:
|
@@ -22,37 +22,36 @@ extensions: []
|
|
22
22
|
extra_rdoc_files:
|
23
23
|
- LICENSE.md
|
24
24
|
files:
|
25
|
-
-
|
26
|
-
-
|
25
|
+
- lib/range/fake_client.rb
|
26
|
+
- lib/rangeclient.rb
|
27
27
|
- bin/er
|
28
28
|
- bin/range-compress
|
29
29
|
- bin/range_diff
|
30
30
|
- bin/range_split
|
31
|
-
-
|
32
|
-
-
|
31
|
+
- README.md
|
32
|
+
- LICENSE.md
|
33
33
|
homepage: https://github.com/square/rangeclient
|
34
34
|
licenses: []
|
35
35
|
metadata: {}
|
36
36
|
post_install_message:
|
37
37
|
rdoc_options:
|
38
|
-
-
|
38
|
+
- --charset=UTF-8
|
39
39
|
require_paths:
|
40
40
|
- lib
|
41
41
|
required_ruby_version: !ruby/object:Gem::Requirement
|
42
42
|
requirements:
|
43
|
-
- -
|
43
|
+
- - '>='
|
44
44
|
- !ruby/object:Gem::Version
|
45
45
|
version: '0'
|
46
46
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
47
47
|
requirements:
|
48
|
-
- -
|
48
|
+
- - '>='
|
49
49
|
- !ruby/object:Gem::Version
|
50
50
|
version: 1.3.6
|
51
51
|
requirements: []
|
52
52
|
rubyforge_project:
|
53
|
-
rubygems_version: 2.
|
53
|
+
rubygems_version: 2.0.14.1
|
54
54
|
signing_key:
|
55
55
|
specification_version: 4
|
56
56
|
summary: Simple range client for ruby.
|
57
57
|
test_files: []
|
58
|
-
has_rdoc:
|