rails_compatible_cookies_utils 0.1.1 → 0.1.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
  SHA1:
3
- metadata.gz: 02c0be37b16ad6ca99148598f053a98c6efeb132
4
- data.tar.gz: ab9df9080a6483e7e4c92d9cf13a0388896e69e2
3
+ metadata.gz: 2ef9d51e684d6b20c802e77325b16ef49064bcea
4
+ data.tar.gz: 95770f281782f3318178b89138527eb6b771a50b
5
5
  SHA512:
6
- metadata.gz: 1cc470ef5bd4d4ba774c16dfe897d8313a5844fe56ea8b541b516e5a9a8cff8946ad1060decd60bc4ebdd86c8cce2f1e697b136eb859fe7321fe0b93b86017a7
7
- data.tar.gz: 390602c2b1697468ea26d0026ed50d2ccb6c77b25a2df6241f4ba0160f3af53e7817657fc22695d7d8984a08b7a4f2a6507c5e0c0936e7df9f67c2145c696446
6
+ metadata.gz: 0dafb39a0413eccea7f832e6ebcdead8c8721fd305436b41d20b75a8df207a5fcbffcd8c098b2d52041171bbbbe9d981f0bbb8c6a9e6e8ee99205850f11cb62c
7
+ data.tar.gz: 65ee138da9a7663e03c765f4623b2259ec0b52b2602a5f461cff05139a784ce36d1eb76161f2372efada365d52654c9c9084f66f201c7bdb8e51f7cc12fd4b5e
@@ -61,7 +61,7 @@ class RailsCompatibleCookiesUtils
61
61
  end
62
62
 
63
63
  def encrypted_secret
64
- @encrypted_secret ||= generate_key(@encrypted_salt)[0, 32]
64
+ @encrypted_secret ||= generate_key(@encrypted_salt)[0, OpenSSL::Cipher.new(@cipher).key_len]
65
65
  end
66
66
 
67
67
  def generate_key(salt)
@@ -1,3 +1,3 @@
1
1
  class RailsCompatibleCookiesUtils
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_compatible_cookies_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rodrigo Rosenfeld Rosas