riak-client 2.4.0 → 2.4.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -26,10 +26,22 @@ describe Riak::Util::Gzip do
26
26
  source_string = "Hello World"*100
27
27
 
28
28
  gzipped_by_speed = Riak::Util::Gzip.compress(source_string, Zlib::BEST_SPEED)
29
- expect(Zlib::GzipReader.new(StringIO.new(gzipped_by_speed)).level).to eq(1)
29
+ expected_level = if RUBY_PLATFORM == 'java'
30
+ # NB HACK: on jruby, level is -1
31
+ -1
32
+ else
33
+ Zlib::BEST_SPEED
34
+ end
35
+ expect(Zlib::GzipReader.new(StringIO.new(gzipped_by_speed)).level).to eq(expected_level)
30
36
 
31
37
  gzipped_by_best_compression = Riak::Util::Gzip.compress(source_string, Zlib::BEST_COMPRESSION)
32
- expect(Zlib::GzipReader.new(StringIO.new(gzipped_by_best_compression)).level).to eq(9)
38
+ expected_level = if RUBY_PLATFORM == 'java'
39
+ # NB HACK: on jruby, level is -1
40
+ -1
41
+ else
42
+ Zlib::BEST_COMPRESSION
43
+ end
44
+ expect(Zlib::GzipReader.new(StringIO.new(gzipped_by_best_compression)).level).to eq(expected_level)
33
45
 
34
46
  expect(gzipped_by_best_compression.bytesize < gzipped_by_speed.bytesize).to be true
35
47
  end
@@ -20,8 +20,14 @@ module TestClient
20
20
  return $test_client_configuration
21
21
  end
22
22
 
23
- config_path = File.expand_path '../test_client.yml', __FILE__
24
- config = YAML.load_file(config_path).symbolize_keys
23
+ begin
24
+ config_path = File.expand_path '../test_client.yml', __FILE__
25
+ config = YAML.load_file(config_path).symbolize_keys
26
+ rescue Errno::ENOENT => ex
27
+ $stderr.puts("WARNING: could not find file: #{config_path}, exception: #{ex}")
28
+ config = {}
29
+ config[:pb_port] = 10017
30
+ end
25
31
 
26
32
  if config[:nodes]
27
33
  new_nodes = config[:nodes].map(&:symbolize_keys)
metadata CHANGED
@@ -1,127 +1,127 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: riak-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bryce Kerley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-15 00:00:00.000000000 Z
11
+ date: 2016-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rspec
14
+ name: activesupport
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '3.0'
19
+ version: '4.2'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '3.0'
26
+ version: '4.2'
27
27
  - !ruby/object:Gem::Dependency
28
- name: rake
28
+ name: instrumentable
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '10.1'
33
+ version: '1.1'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '10.1'
40
+ version: '1.1'
41
41
  - !ruby/object:Gem::Dependency
42
- name: yard
42
+ name: kramdown
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0.8'
47
+ version: '1.4'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0.8'
54
+ version: '1.4'
55
55
  - !ruby/object:Gem::Dependency
56
- name: kramdown
56
+ name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '1.4'
61
+ version: '10.1'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '1.4'
68
+ version: '10.1'
69
69
  - !ruby/object:Gem::Dependency
70
- name: simplecov
70
+ name: rspec
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '0.10'
75
+ version: '3.0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '0.10'
82
+ version: '3.0'
83
83
  - !ruby/object:Gem::Dependency
84
- name: instrumentable
84
+ name: rubocop
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '1.1'
89
+ version: 0.40.0
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '1.1'
96
+ version: 0.40.0
97
97
  - !ruby/object:Gem::Dependency
98
- name: rubocop
98
+ name: simplecov
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '0.40'
103
+ version: '0.10'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '0.40'
110
+ version: '0.10'
111
111
  - !ruby/object:Gem::Dependency
112
- name: i18n
112
+ name: yard
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: '0.6'
118
- type: :runtime
117
+ version: '0.8'
118
+ type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: '0.6'
124
+ version: '0.8'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: beefcake
127
127
  requirement: !ruby/object:Gem::Requirement
@@ -137,19 +137,33 @@ dependencies:
137
137
  - !ruby/object:Gem::Version
138
138
  version: '1.1'
139
139
  - !ruby/object:Gem::Dependency
140
- name: multi_json
140
+ name: cert_validator
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
143
  - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: '1.0'
145
+ version: 0.0.1
146
146
  type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - "~>"
151
151
  - !ruby/object:Gem::Version
152
- version: '1.0'
152
+ version: 0.0.1
153
+ - !ruby/object:Gem::Dependency
154
+ name: i18n
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: '0.6'
160
+ type: :runtime
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: '0.6'
153
167
  - !ruby/object:Gem::Dependency
154
168
  name: innertube
155
169
  requirement: !ruby/object:Gem::Requirement
@@ -165,19 +179,19 @@ dependencies:
165
179
  - !ruby/object:Gem::Version
166
180
  version: '1.0'
167
181
  - !ruby/object:Gem::Dependency
168
- name: cert_validator
182
+ name: multi_json
169
183
  requirement: !ruby/object:Gem::Requirement
170
184
  requirements:
171
185
  - - "~>"
172
186
  - !ruby/object:Gem::Version
173
- version: 0.0.1
187
+ version: '1.0'
174
188
  type: :runtime
175
189
  prerelease: false
176
190
  version_requirements: !ruby/object:Gem::Requirement
177
191
  requirements:
178
192
  - - "~>"
179
193
  - !ruby/object:Gem::Version
180
- version: 0.0.1
194
+ version: '1.0'
181
195
  description: riak-client is a rich client for Riak, the distributed database by Basho.
182
196
  It supports the full HTTP and Protocol Buffers interfaces including storage operations,
183
197
  bucket configuration, link-walking, secondary indexes and map-reduce.
@@ -301,6 +315,7 @@ files:
301
315
  - lib/riak/time_series/submission.rb
302
316
  - lib/riak/util/escape.rb
303
317
  - lib/riak/util/gzip.rb
318
+ - lib/riak/util/string.rb
304
319
  - lib/riak/util/tcp_socket_extensions.rb
305
320
  - lib/riak/util/translation.rb
306
321
  - lib/riak/version.rb
@@ -409,7 +424,6 @@ files:
409
424
  - spec/support/search_config.rb
410
425
  - spec/support/search_corpus_setup.rb
411
426
  - spec/support/test_client.rb
412
- - spec/support/test_client.yml
413
427
  - spec/support/test_client.yml.example
414
428
  - spec/support/unified_backend_examples.rb
415
429
  - spec/support/version_filter.rb
@@ -434,7 +448,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
434
448
  version: '0'
435
449
  requirements: []
436
450
  rubyforge_project:
437
- rubygems_version: 2.6.4
451
+ rubygems_version: 2.6.6
438
452
  signing_key:
439
453
  specification_version: 4
440
454
  summary: riak-client is a rich client for Riak, the distributed database by Basho.
@@ -542,7 +556,6 @@ test_files:
542
556
  - spec/support/search_config.rb
543
557
  - spec/support/search_corpus_setup.rb
544
558
  - spec/support/test_client.rb
545
- - spec/support/test_client.yml
546
559
  - spec/support/test_client.yml.example
547
560
  - spec/support/unified_backend_examples.rb
548
561
  - spec/support/version_filter.rb