riak-client 2.2.1 → 2.2.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 90e4c5dd56ba3d2a7ea13534ba0d15f0bd7b2119
4
- data.tar.gz: e1c2afdbb12543c942f7d58bf15d9f5c07f40f03
3
+ metadata.gz: f90dfc4b139c8163f6ece74ae945836171b027ce
4
+ data.tar.gz: b50c5fca9297a65ed3a3317029cdbc0b04634225
5
5
  SHA512:
6
- metadata.gz: ab4b31f98818b08370d58a6379ce9a607ab9aabdbc09efddf1cc40a2f45af7d45252add5dbdfb4f562c5ad9d21bf40ad4a1f3506c4ba5ba4ed2eaa98a244c356
7
- data.tar.gz: f6241dbd209b254d53024eca1db750789aaa6ec031ea53483b34dbb315317d0bf94d80570edd6cf92dba841092c9d6a90ffc3a3f12b3cfeeb3e8c1ae64e9e44e
6
+ metadata.gz: 327cac82dd8a9e4ba701c250d7306f9bd57bb56dd5588a6fc67bceb8dc5a2355c1d601e627d439000c94852d25215d11abe5845ee1231a9a98070b02befc7612
7
+ data.tar.gz: af4e75b2f268d4d21654e19579f64c47cc368b19596359f4fca528af21a5a66aca94824e073c63e41794940bc99168b200abd506b822df77d63de75ab34c17a5
data/README.markdown CHANGED
@@ -182,7 +182,7 @@ bucket = bucket_type.bucket 'pizzas'
182
182
 
183
183
  # Create an index and add it to a typed bucket. Setting the index on the bucket
184
184
  # may fail until the index creation has propagated.
185
- index = Riak::Search::Index.new 'pizzas'
185
+ index = Riak::Search::Index.new client, 'pizzas'
186
186
  index.exist? #=> false
187
187
  index.create!
188
188
  client.set_bucket_props bucket, {search_index: 'pizzas'}, 'yokozuna'
data/RELEASE_NOTES.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Riak Ruby Client Release Notes
2
2
 
3
+ ## 2.2.2 Release - 2015-11-24
4
+
5
+ Version 2.2.2 is a bugfix release.
6
+
7
+ * Corrected Hidekazu Tanaka's name in the 2.2.1 release notes.
8
+ * Deleting maps inside map CRDTs works, thanks to Kazuhiro Suzuki.
9
+ * Fix `Riak::Search::Index` documentation in the readme, thanks to Zshawn Syed.
10
+ * Tighten up the i18n gem requirement, thanks to Sean Kelly.
11
+
3
12
  ## 2.2.1 Release - 2015-06-19
4
13
 
5
14
  Version 2.2.1 is a bugfix release, and includes additional testing of character
@@ -8,9 +17,9 @@ encodings.
8
17
  Bug fixes:
9
18
 
10
19
  * Support bucket-typed buckets when creating secondary-index input phases
11
- for map-reduce, thanks to Takeshi Akima.
20
+ for map-reduce, thanks to Hidekazu Tanaka.
12
21
  * Support Riak Search 2 / Yokozuna results as input phases for map-reduce,
13
- thanks again to Takeshi Akima.
22
+ thanks again to Hidekazu Tanaka.
14
23
  * `BucketTyped::Bucket#get_index` now includes the bucket type name in the
15
24
  2i request.
16
25
  * `Bucket#==` now performs an encoding-independent comparison on bucket names.
@@ -199,7 +199,7 @@ module Riak
199
199
  type: MapField::MapFieldType::MAP
200
200
  ),
201
201
  map_op: MapOp.new(
202
- removes: inner_op.name)
202
+ removes: inner_serialize_delete(inner_op))
203
203
  )
204
204
  end
205
205
  inner_serialized = inner_serialize inner_op
data/lib/riak/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Riak
2
- VERSION = "2.2.1"
2
+ VERSION = "2.2.2"
3
3
  end
data/riak-client.gemspec CHANGED
@@ -23,7 +23,7 @@ Gem::Specification.new do |gem|
23
23
  gem.add_development_dependency "instrumentable", "~> 1.1.0"
24
24
  gem.add_development_dependency "rubocop", "~> 0.28.0"
25
25
 
26
- gem.add_runtime_dependency "i18n", ">=0.4.0"
26
+ gem.add_runtime_dependency "i18n", ">=0.6.8"
27
27
  gem.add_runtime_dependency "beefcake", "~> 1.1"
28
28
  gem.add_runtime_dependency "multi_json", "~>1.0"
29
29
  gem.add_runtime_dependency "innertube", "~>1.0.2"
@@ -219,6 +219,18 @@ describe "CRDTs", integration: true, test_client: true do
219
219
  expect(subject.maps['road'].counters['speedbumps'].value).to eq 4
220
220
  expect(subject.maps['road'].sets['signs'].include? 'yield').to be
221
221
  end
222
+
223
+ it 'deletes nested inner-map' do
224
+ bag_map = subject.maps['bag']
225
+ inner_map = bag_map.maps['123']
226
+ inner_map.registers['name'] = 'f1'
227
+
228
+ expect(subject.maps['bag'].maps['123'].registers['name']).to eq 'f1'
229
+
230
+ expect{ bag_map.maps.delete('123') }.to_not raise_error
231
+ expect(bag_map.maps.include? '123').to_not be
232
+ expect(bag_map.maps['123'].registers['name']).to_not be
233
+ end
222
234
  end
223
235
 
224
236
  describe 'containing a register' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: riak-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1
4
+ version: 2.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bryce Kerley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-20 00:00:00.000000000 Z
11
+ date: 2015-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -114,14 +114,14 @@ dependencies:
114
114
  requirements:
115
115
  - - ">="
116
116
  - !ruby/object:Gem::Version
117
- version: 0.4.0
117
+ version: 0.6.8
118
118
  type: :runtime
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.4.0
124
+ version: 0.6.8
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: beefcake
127
127
  requirement: !ruby/object:Gem::Requirement
@@ -410,7 +410,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
410
410
  version: '0'
411
411
  requirements: []
412
412
  rubyforge_project:
413
- rubygems_version: 2.4.5
413
+ rubygems_version: 2.4.6
414
414
  signing_key:
415
415
  specification_version: 4
416
416
  summary: riak-client is a rich client for Riak, the distributed database by Basho.