zenaton 0.2.1 → 0.2.2

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: 8a6590eba29150d752565e62505dbbf6ec2a6a0a66f3867e853d76dd102e0991
4
- data.tar.gz: dc34cb351261f71e21c4ee692b11622c794a9827e53b5344ed1b1728b1cfd046
3
+ metadata.gz: 7939421fd535c9d50c3bc52a475ee7c747d817c535efb6c4f9f73e067ad43c64
4
+ data.tar.gz: d339d9dd2b93d09d35e65150b0adb02c8034095d68e60530eccc216d0bb9f24e
5
5
  SHA512:
6
- metadata.gz: 71b975257fc54acf682d52c4b5fc4be318c7bd50f5b1dd81045277021d2f3d8a9eaf53c7822157d9decee33f0f8049d57d29ad7cdc6f3e2219d45fe1fd2a8540
7
- data.tar.gz: 92fee9e3987c2e13f36f75cf68dbe6aa8995e608825732f8091a5e04ed1341e022b12b8808f0fc51c96908ea680eacfbc62f36ddda1483962a3eac948dd517c0
6
+ metadata.gz: a95ef6370c230b7abc53c04238d0655f653555b08cc51135c13015cc8c5717d2a59faf01cee4f35781bf2ecb7b53baf9312530c4f05a133ec2f29169debd3a25
7
+ data.tar.gz: 784fec1e1808ecc5d6444580c278cf6538365b34a2865423b3b9a144d2b27bdbc602f2c5af6f769f19d0a71b0a9881f4a19afaaed04640f15fbec77e20578835
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- zenaton (0.2.1)
4
+ zenaton (0.2.2)
5
5
  activesupport
6
6
  httparty
7
7
  tzinfo-data
@@ -75,7 +75,7 @@ module Zenaton
75
75
  end
76
76
 
77
77
  def encode_to_store(object)
78
- id = @decoded.index(object)
78
+ id = @decoded.index { |decoded| decoded.object_id == object.object_id }
79
79
  return store_id(id) if id
80
80
  store_and_encode(object)
81
81
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Zenaton
4
4
  # This gem's current version
5
- VERSION = '0.2.1'
5
+ VERSION = '0.2.2'
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zenaton
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zenaton