risky 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/risky/version.rb +1 -1
  2. data/lib/risky.rb +2 -2
  3. metadata +5 -5
data/lib/risky/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Risky
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
data/lib/risky.rb CHANGED
@@ -418,7 +418,7 @@ class Risky
418
418
  self.merged = true
419
419
  else
420
420
  # Not merging
421
- self.values = self.class.cast(MultiJson.decode(riak_object.raw_data)) rescue {}
421
+ self.values = self.class.cast(MultiJson.load(riak_object.raw_data)) rescue {}
422
422
  self.class.values.each do |k, v|
423
423
  if values[k].nil?
424
424
  values[k] = (v[:default].clone rescue v[:default])
@@ -495,7 +495,7 @@ class Risky
495
495
  return false unless valid?
496
496
  end
497
497
 
498
- @riak_object.raw_data = MultiJson.encode @values
498
+ @riak_object.raw_data = MultiJson.dump @values
499
499
  @riak_object.content_type = "application/json"
500
500
 
501
501
  store_opts = {}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: risky
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,19 +9,19 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-17 00:00:00.000000000 Z
12
+ date: 2012-07-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: riak-client
16
- requirement: &6512880 !ruby/object:Gem::Requirement
16
+ requirement: &4647040 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: 1.0.0
21
+ version: 1.0.4
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *6512880
24
+ version_requirements: *4647040
25
25
  description:
26
26
  email: aphyr@aphyr.com
27
27
  executables: []