rails_kvs_driver 0.2.0 → 0.2.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: 9739938d3667ed90c199b022fc20750e7d721218
4
- data.tar.gz: 132108582e21c4d1b96a46fca297bdebcaa99c4c
3
+ metadata.gz: 69d5596c2cf269f3a9f297ade6fd437fd9be0ffb
4
+ data.tar.gz: 23a9223ceec011aeed0af3ddf55444824b441cc1
5
5
  SHA512:
6
- metadata.gz: cf393acdf5228ceab39e2a73aa50ecaebabe089e9fed92f81685e59d75e9d1fd56a279b8f2f85c5070968df5c73894f33f0bfa427508f06a781dd1fd29df2fd2
7
- data.tar.gz: a0b3a886926497d72bddf2467a7afbc02502e3b56b6a0ef2a65c6f0c33674a1e5058da3a060a86242a46d65c5d180166d9331b67998ca4fcd044f8a199827f0e
6
+ metadata.gz: 1ad5af5de6403f7f1e5801b3b48ec83bcc3e5605f8e9d465441769cc1acfb2dabc41add1c684264ed07060b4522fc018ca0ad30ea8d8fb3be5cee34d94a013a2
7
+ data.tar.gz: 24295617a232b5c8cb650a5d6613f552bbd86bbe3e14cb2363dcf867a2a5d37086a366788d88d29d59ebd8484c12e59720d5d08eae66302b646e62dbcf6872ad
@@ -29,7 +29,7 @@ module RailsKvsDriver
29
29
  def []=(key, member_sets)
30
30
  delete(key) if has_key?(key)
31
31
  sorted_set = SortedSet.new(@driver_instance,key)
32
- member_sets.each {|member_set| sorted_set[member_set[0]] = member_set}
32
+ member_sets.each {|member_set| sorted_set[member_set[0]] = member_set[1]}
33
33
  end
34
34
 
35
35
  # delete sorted_set.
@@ -1,3 +1,3 @@
1
1
  module RailsKvsDriver
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
@@ -7,14 +7,14 @@ describe RailsKvsDriver::Base do
7
7
  expect{RailsKvsDriver::Base.connect('dummy')}.to raise_error(NoMethodError)
8
8
  end
9
9
 
10
- it 'raise NoMethodError when does not override []' do
11
- expect(MockDriver.method_defined?('[]')).to be_true
12
- expect{MockDriver.new(nil,nil)[nil]}.to raise_error(NoMethodError)
10
+ it 'raise NoMethodError when does not override get' do
11
+ expect(MockDriver.method_defined?('get')).to be_true
12
+ expect{MockDriver.new(nil,nil).get(nil)}.to raise_error(NoMethodError)
13
13
  end
14
14
 
15
- it 'raise NoMethodError when does not override []=' do
16
- expect(MockDriver.method_defined?('[]=')).to be_true
17
- expect{MockDriver.new(nil,nil)[nil]=nil}.to raise_error(NoMethodError)
15
+ it 'raise NoMethodError when does not override set' do
16
+ expect(MockDriver.method_defined?('set')).to be_true
17
+ expect{MockDriver.new(nil,nil).set(nil,nil)}.to raise_error(NoMethodError)
18
18
  end
19
19
 
20
20
  it 'raise NoMethodError when does not override keys' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_kvs_driver
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - alfa-jpn