ruby_magic_link 1.0.2 → 1.0.3

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: 205f84fd453224203038a00c21e6af97a9854776dc878e0cad7e05f80e3b3045
4
- data.tar.gz: 6058775a727aac913328f699f650540ae5d4bdc16c280ce1346f9ea959c2a29e
3
+ metadata.gz: 7284911f3d486464ceb21718d970f009fbd5a881a88056fd38e6285faaaa39fc
4
+ data.tar.gz: cc11dddfe2d53314106cba1e795854a6f1211e8455245940afcdc48a6287f129
5
5
  SHA512:
6
- metadata.gz: 4a371c23f1f5dda6c2f155249a4bdc9a54d1abb0abee56f3c680539533f377d1ec8ea7f2bccb29e63cf935adc60e08e76bd90160043190651118d90c4c18ee6a
7
- data.tar.gz: 643eca2c3d8ffd8c03fc66525899edd2cc9331bfc3813072d225cfcb4e4a4d2888893b382477f336a1a7fea6ad283ab0be81a161dfcc4e9bcfb468a806e26ce5
6
+ metadata.gz: aebf8ba72618445d8f944006d72b8178046918fce19a3dfe584d35fed2f8ac94d8fccf84edce51116db916c3202c40c2783b49e101d72f27d29b36c2f2f3bd73
7
+ data.tar.gz: 9c5ca58171f91e22d231b313e399b4799e613a6558168b5b80656dbc4e68884d73ab274fcbe5fea98e9922a8d45c035c3906209ed03dbb8156e14399b50ed07d
@@ -27,8 +27,8 @@ module RubyMagicLink
27
27
  RubyMagicLink::TokenObject.new(data)
28
28
  end
29
29
 
30
- def decode_token(data)
31
- raw_iv, data = Base64.urlsafe_decode64(data).split(DELIMITER, 2)
30
+ def decode_token(token)
31
+ raw_iv, data = Base64.urlsafe_decode64(token).split(DELIMITER, 2)
32
32
  JSON.parse(decrypt(data, RubyMagicLink.config.secret_key, Base64.urlsafe_decode64(raw_iv)))
33
33
  end
34
34
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubyMagicLink
4
- VERSION = '1.0.2'
4
+ VERSION = '1.0.3'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_magic_link
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Korepanov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-10 00:00:00.000000000 Z
11
+ date: 2024-02-17 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Magic links for ruby web applications
14
14
  email: korepanovigor87@gmail.com