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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1bd6891ae551f486aecfa6de00f54b1318bd0383c7a19db1d590a371181f1db2
4
- data.tar.gz: f1855497a20c4f4713bf58ae2d79480973342ef86fe71d641102888cfbac41db
3
+ metadata.gz: 445d49f22461e8ad189d361639f786cea6723f1e7126a8510e0089879e6c9272
4
+ data.tar.gz: '03580907964370e9611b4aff79526bf2f0ef2aa59e4c8728d8770d3e4448af45'
5
5
  SHA512:
6
- metadata.gz: d0ec13c04d6175004eca4dfb51e9f19f620fa022c09c1322b883fcf6e47b49473972a0a82bf27ed8c7c583fdd7d67fb8afe3c57020ffed555edf8b7f1e0464b5
7
- data.tar.gz: ad1c861ab14616785139c30025097e4665d4d2f172914b30b617d67bc7ef758e5fc94f7b62f906df8dfa76c245256858fd4ec0cd00c19529793f6b5cffd33395
6
+ metadata.gz: a6d5ab98751e620b5f0f46b4283e127a9e7151e4d615d60bb194186d28cf24a36c426fe0612df17d7d40eee26f30e0a53904034694003d5184a83a669e5d67d7
7
+ data.tar.gz: d2d841bdb59c585d0bd52aa90b94b6d69d64ac309a1753431c954172b0996455290cef3411d2811ea59216a3184cea9de736d5eb92ad95fdec109b2696428b0d
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- has_jwt_token (0.2.0)
4
+ has_jwt_token (0.2.1)
5
5
  bcrypt
6
6
  jwt
7
7
  rails (>= 5.0, < 7.0)
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/[USERNAME]/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).
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/[USERNAME]/has_jwt_token/blob/master/CODE_OF_CONDUCT.md).
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).
@@ -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.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HasJwtToken
4
- VERSION = '0.2.0'
4
+ VERSION = '0.2.1'
5
5
  end
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.0
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-10-28 00:00:00.000000000 Z
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: