has_jwt_token 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +5 -2
- data/has_jwt_token.gemspec +2 -3
- data/lib/has_jwt_token/version.rb +1 -1
- metadata +5 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 445d49f22461e8ad189d361639f786cea6723f1e7126a8510e0089879e6c9272
|
4
|
+
data.tar.gz: '03580907964370e9611b4aff79526bf2f0ef2aa59e4c8728d8770d3e4448af45'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6d5ab98751e620b5f0f46b4283e127a9e7151e4d615d60bb194186d28cf24a36c426fe0612df17d7d40eee26f30e0a53904034694003d5184a83a669e5d67d7
|
7
|
+
data.tar.gz: d2d841bdb59c585d0bd52aa90b94b6d69d64ac309a1753431c954172b0996455290cef3411d2811ea59216a3184cea9de736d5eb92ad95fdec109b2696428b0d
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -37,6 +37,9 @@ class User
|
|
37
37
|
jwt.payload :custom_plain_value, 321
|
38
38
|
jwt.secret 'secret'
|
39
39
|
|
40
|
+
jwt.header :header_field, :header_value
|
41
|
+
jwt.header :header_field2, -> { 123 }
|
42
|
+
|
40
43
|
jwt.expiration_time -> { Time.now.to_i + 60 }
|
41
44
|
jwt.not_before_time -> { Time.now.to_i }
|
42
45
|
jwt.issued_at -> { Time.now.to_i }
|
@@ -65,7 +68,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
65
68
|
|
66
69
|
## Contributing
|
67
70
|
|
68
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
71
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/pucinsk/has_jwt_token. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/has_jwt_token/blob/master/CODE_OF_CONDUCT.md).
|
69
72
|
|
70
73
|
|
71
74
|
## License
|
@@ -74,4 +77,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
|
|
74
77
|
|
75
78
|
## Code of Conduct
|
76
79
|
|
77
|
-
Everyone interacting in the HasJwtToken project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/
|
80
|
+
Everyone interacting in the HasJwtToken project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/pucinsk/has_jwt_token/blob/master/CODE_OF_CONDUCT.md).
|
data/has_jwt_token.gemspec
CHANGED
@@ -13,13 +13,12 @@ Gem::Specification.new do |spec|
|
|
13
13
|
'for models which are kean to use `has_secure_password`'\
|
14
14
|
'in Rails app. It allows find resource by some identificator'\
|
15
15
|
'and password of by JWT token itself.'
|
16
|
-
spec.homepage = 'https://github.com/pucinsk'
|
16
|
+
spec.homepage = 'https://github.com/pucinsk/has_jwt_token'
|
17
17
|
spec.license = 'MIT'
|
18
18
|
spec.required_ruby_version = Gem::Requirement.new('>= 2.7.0')
|
19
19
|
|
20
20
|
spec.metadata['homepage_uri'] = spec.homepage
|
21
|
-
spec.metadata['source_code_uri'] = 'https://github.com/pucinsk'
|
22
|
-
spec.metadata['changelog_uri'] = 'https://github.com/pucinsk'
|
21
|
+
spec.metadata['source_code_uri'] = 'https://github.com/pucinsk/has_jwt_token'
|
23
22
|
|
24
23
|
# Specify which files should be added to the gem when it is released.
|
25
24
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: has_jwt_token
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jokūbas Pučinskas
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bcrypt
|
@@ -173,13 +173,12 @@ files:
|
|
173
173
|
- lib/has_jwt_token/jwt_tokenable.rb
|
174
174
|
- lib/has_jwt_token/model.rb
|
175
175
|
- lib/has_jwt_token/version.rb
|
176
|
-
homepage: https://github.com/pucinsk
|
176
|
+
homepage: https://github.com/pucinsk/has_jwt_token
|
177
177
|
licenses:
|
178
178
|
- MIT
|
179
179
|
metadata:
|
180
|
-
homepage_uri: https://github.com/pucinsk
|
181
|
-
source_code_uri: https://github.com/pucinsk
|
182
|
-
changelog_uri: https://github.com/pucinsk
|
180
|
+
homepage_uri: https://github.com/pucinsk/has_jwt_token
|
181
|
+
source_code_uri: https://github.com/pucinsk/has_jwt_token
|
183
182
|
post_install_message:
|
184
183
|
rdoc_options: []
|
185
184
|
require_paths:
|