redijson_models 0.8.0 → 0.8.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
  SHA256:
3
- metadata.gz: 54c5606a725d17734a92db476abae3e38450c2ed5abe28bf49036b2a29b633e2
4
- data.tar.gz: 53881342fc655b9ce36703d7480914aec2a4aeb353d6b539b4610801bfbb97a8
3
+ metadata.gz: 30357bca904d68eeda27241f13af2944be8b77dad3ec7e80dcad48d66969cdbf
4
+ data.tar.gz: e0693e800d8ac4f3fd6821d5af3491c8b7b6d4cd346e2cff555a76c08feceaab
5
5
  SHA512:
6
- metadata.gz: ca8662a4d00d8ccbe55a37154b9070357f045f4bd4123541ce58f1d5e008af070b59effc63b10c00dfc6c4a2639392769557e6035c49fbdecfaa80b1ff31f08c
7
- data.tar.gz: 2a9b3bf6ee2a276601bb8a66799e6fb48372f1c0f25bdb27e5e31340eeac29af7e90ed25746a24f37c4b3d94d6a9298524bca3f7276bf39bd7846fb575c59af3
6
+ metadata.gz: 746c2b403029daef1ed4b4dc157b05b365ead7234fd349061cc34c3deec0228638102238b3ba83add93988b9a0a7b5e87d55bb521b5bc0e54ce9bed8852e6995
7
+ data.tar.gz: d36d18d784dcbee0a58f5c44fb9caf50cf1690dca095649a29821e2009970e21def066e8cb4c420e3d734cde7eb6b21e98cdda139ea0bddf2022ea93b12afa50
@@ -96,8 +96,9 @@ module RediJsonModels
96
96
  klass = self.class
97
97
  id = klass.send :incr
98
98
  attrs = attributes
99
- attrs.merge! id: id
99
+ attrs.merge! "id" => id
100
100
  RJ["#{self.class.resource}:#{id}"] = attrs
101
+ self.id = id
101
102
  self
102
103
  end
103
104
 
@@ -1,3 +1,3 @@
1
1
  module RediJsonModels
2
- VERSION = "0.8.0"
2
+ VERSION = "0.8.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redijson_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - makevoid