ruby_magic_link 1.0.2 → 1.0.4

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: 075a0953e8ccc652b7babc20a6f3928d8b7d712bad6c9b94a3a88d5018df25d1
4
+ data.tar.gz: 683e1ed5843be5a61a95fc040904ae40649989fe0ba56664e3006b304a9e0ad3
5
5
  SHA512:
6
- metadata.gz: 4a371c23f1f5dda6c2f155249a4bdc9a54d1abb0abee56f3c680539533f377d1ec8ea7f2bccb29e63cf935adc60e08e76bd90160043190651118d90c4c18ee6a
7
- data.tar.gz: 643eca2c3d8ffd8c03fc66525899edd2cc9331bfc3813072d225cfcb4e4a4d2888893b382477f336a1a7fea6ad283ab0be81a161dfcc4e9bcfb468a806e26ce5
6
+ metadata.gz: 743efcb5fe4b63932deffa78894da6c842c76a22d69342e828dabc92d68c42bcba11eb9e4b838389cb95d69b35d71ddcdf27aaca5962db6eea6e686df4a86ea7
7
+ data.tar.gz: 8d48da62867b419fd8f681a67ff5ee39a9bcdac305127fc5c860e2d2483e8e341e5d957f1c09c95655851ae77986e2f23865298215123efdd4fbcb562b27bf7f
@@ -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.4'
5
5
  end
metadata CHANGED
@@ -1,16 +1,19 @@
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.4
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-03-02 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: Magic links for ruby web applications
13
+ description: |2
14
+ Ruby Magic Link is a Ruby gem that provides functionality for generating encrypted tokens and magic links.
15
+ It offers a simple and secure way to create tokens that can be used for various purposes, such as authentication,
16
+ password reset, and email verification.
14
17
  email: korepanovigor87@gmail.com
15
18
  executables: []
16
19
  extensions: []
@@ -27,7 +30,8 @@ files:
27
30
  homepage: https://github.com/igorkorepanov/ruby_magic_link
28
31
  licenses:
29
32
  - MIT
30
- metadata: {}
33
+ metadata:
34
+ rubygems_mfa_required: 'true'
31
35
  post_install_message:
32
36
  rdoc_options: []
33
37
  require_paths:
@@ -46,5 +50,5 @@ requirements: []
46
50
  rubygems_version: 3.2.22
47
51
  signing_key:
48
52
  specification_version: 4
49
- summary: Magic links for ruby web applications
53
+ summary: Gem for generating encrypted tokens and magic links
50
54
  test_files: []