acts_as_having_string_id 0.1.0 → 0.1.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: 3ebaa9731f8d0e4405bfc9a05a7a9b9ff0dd9e31
4
- data.tar.gz: ca0d9fce70599e3b82bdaf3c7321a669669e4dfd
3
+ metadata.gz: f43c892374317d146c876e67c401c593b8952d67
4
+ data.tar.gz: f1cc6403a64f7acbd3d277258dec4c586a3ef5d0
5
5
  SHA512:
6
- metadata.gz: e625c3f0785cda0b1b1a913992fef3ead5751546fb8590bfdea81ad8247ce133b9f4f414339629b72a3019f2a1feca900533ee54768eb01c479274708cc12678
7
- data.tar.gz: 20a95e36d732d027d009cc11cbbc66c35588d58d7ca7fc4ea874339c1a3d61f75512705b4182baf17045a457f8733010101e72dce9ed20cc9fc4dcf9ba17ee2c
6
+ metadata.gz: 08203d900592ad6e794160dd783cc045d6eef36f01bfcf661a74907c6377543f28b971ce7653f8692e4e473bc063fc8311593439984bde026fb2133dce70d7a0
7
+ data.tar.gz: ec12e978b89176162d108a785117de213da31ce975cbe3635fdc51e7500cb62f15ea37bd8722d07cc381e70206eee3bc5f8898bc86468381b8223e461695887a
data/README.md CHANGED
@@ -81,7 +81,6 @@ Then, for exposing your string ID, use the `id_string` method. For example, if y
81
81
  And that's just about it!
82
82
 
83
83
  ## TODO
84
- * Publish on rubygems
85
84
  * Since the `MyModel.find("7EajpSfdWIf")` functionality depends on the argument now being a string, `MyModel.find("5")` will no longer mean `MyModel.find(5)`, but rather `MyModel.find(4387534)` or something. Is that a problem?
86
85
  * It's a potential security problem that we don't force strings from controllers (integer id coming from JSON postdata will make it find by original id)
87
86
  * Although TEA handles (and outputs) 64-bit ids, we currently limit the input to 32-bit
@@ -1,3 +1,3 @@
1
1
  module ActsAsHavingStringId
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
@@ -15,7 +15,7 @@ module ActsAsHavingStringId
15
15
  end
16
16
 
17
17
  def _tea
18
- pass_phrase = self.class.name + Rails.application.secrets.string_id_key
18
+ pass_phrase = name + Rails.application.secrets.string_id_key
19
19
  @_tea ||= ActsAsHavingStringId::TEA.new(pass_phrase)
20
20
  end
21
21
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_having_string_id
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Magnus Hult