jwt_easy 0.2.2 → 1.0.0

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
- SHA1:
3
- metadata.gz: ed1be8e8e9d4d999727cee1c426126d9bed3323e
4
- data.tar.gz: fc7a5696b046a531ec1d546a1e6e0917daa76f93
2
+ SHA256:
3
+ metadata.gz: c4f6b94908070f82a61eaad8c5f221c84d2f67265d2fc6326e324314e43f18fb
4
+ data.tar.gz: f682a7b3c823ca89629249976019a6cf3ab58f2f44215ad5501326a29cff4c4a
5
5
  SHA512:
6
- metadata.gz: c08c7e1b2e799ec2e612fddc888a3325ce7f9efbb0d8b2311c99774b6d5f30c286173de2e93b250cc61c485979bfc39dd3f5f6f79886256a4d6dd38d4cc69d58
7
- data.tar.gz: d3f92e52559271628e8caf45d58e4503ed9ad96cef80f710ee7008fd041e3bc26dda0fcc717e415ab3aba1bb857de766e9b10ede641bfe3fac9e724fe93c19ab
6
+ metadata.gz: 94947f9b5284892925e229506435e87d832348e7cdf9ca159b3b01eea4e8d620411dd68937ccca29c5de9823c0b647c641d152c1d8a76173baeab5e27c07eb8d
7
+ data.tar.gz: 2f238514bc25649ca2de4ed8965f74de6fb82b31d2e3bb22cf00cc3ffe973a5491f4ccd060051e8c6faec1e364abeb4e52a9a75d4e3d197a0dc0a6fb93de1436
data/.rubocop.yml CHANGED
@@ -1,13 +1,14 @@
1
1
  AllCops:
2
- TargetRubyVersion: 2.4
2
+ TargetRubyVersion: 2.5
3
+ NewCops: enable
3
4
 
4
- Documentation:
5
- Enabled: false
5
+ Layout/LineLength:
6
+ Max: 100
6
7
 
7
8
  Metrics/BlockLength:
8
9
  Exclude:
9
10
  - 'spec/**/*'
10
11
  - '*.gemspec'
11
12
 
12
- Metrics/LineLength:
13
- Max: 100
13
+ Style/Documentation:
14
+ Enabled: false
data/Gemfile CHANGED
@@ -2,7 +2,6 @@
2
2
 
3
3
  source 'https://rubygems.org'
4
4
 
5
- # Specify your gem's dependencies in jwt_easy.gemspec
6
5
  gemspec
7
6
 
8
- ruby '2.4.0'
7
+ ruby '2.5.0'
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # JWTEasy
2
2
 
3
- JWTEasy is a simple wrapper for the [JWT](https://github.com/jwt/ruby-jwt) gem (version 1.x) that hopes to make generating and consuming various types of JSON web tokens a little easier.
3
+ JWTEasy is a simple wrapper for the [JWT](https://github.com/jwt/ruby-jwt) gem (see versions below) that hopes to make generating and consuming various types of JSON web tokens a little easier.
4
4
 
5
5
  > **Note:** Currently only supports plain, EXP and NBF tokens with HMAC HS256 encryption.
6
6
 
@@ -55,6 +55,15 @@ Or install it yourself as:
55
55
 
56
56
  $ gem install jwt_easy
57
57
 
58
+ ## Versions
59
+
60
+ This gem's version numbers don't track that of the JWT gem, if you require support for a specific JWT gem version, you need to specify the correct version for this gem.
61
+
62
+ | jwt_easy | jwt | Ruby |
63
+ |----------|-------|----------|
64
+ | < 1.0.0 | 1.5.x | >= 2.4.x |
65
+ | 1.0.0 | 2.7.x | >= 2.5.x |
66
+
58
67
  ## Development
59
68
 
60
69
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -63,4 +72,4 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
63
72
 
64
73
  ## Contributing
65
74
 
66
- Bug reports and pull requests are welcome on GitHub at https://github.com/lshepstone/jwt-easy.
75
+ Bug reports and pull requests are welcome on GitHub at https://github.com/collcoll/jwt-easy.
data/jwt_easy.gemspec CHANGED
@@ -1,7 +1,6 @@
1
- # coding: utf-8
2
1
  # frozen_string_literal: true
3
2
 
4
- lib = File.expand_path('../lib', __FILE__)
3
+ lib = File.expand_path('lib', __dir__)
5
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
6
5
  require 'jwt_easy/version'
7
6
 
@@ -23,12 +22,15 @@ Gem::Specification.new do |spec|
23
22
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
24
23
  spec.require_paths = ['lib']
25
24
 
26
- spec.add_dependency 'jwt', '~> 1.5'
25
+ spec.required_ruby_version = '>= 2.5'
27
26
 
28
- spec.add_development_dependency 'bundler', '~> 2.1'
29
- spec.add_development_dependency 'pry', '~> 0'
30
- spec.add_development_dependency 'rake', '~> 10.0'
31
- spec.add_development_dependency 'rspec', '~> 3.0'
32
- spec.add_development_dependency 'rubocop', '~> 0.49.0'
33
- spec.add_development_dependency 'timecop', '~> 0'
27
+ spec.add_dependency 'jwt', '~> 2.7'
28
+
29
+ spec.add_development_dependency 'bundler'
30
+ spec.add_development_dependency 'pry'
31
+ spec.add_development_dependency 'rake'
32
+ spec.add_development_dependency 'rspec'
33
+ spec.add_development_dependency 'rubocop'
34
+ spec.add_development_dependency 'timecop'
35
+ spec.metadata['rubygems_mfa_required'] = 'true'
34
36
  end
@@ -58,7 +58,7 @@ module JWTEasy
58
58
  end
59
59
 
60
60
  def respond_to_missing?(method, _include_private = false)
61
- data.is_a?(Hash) && data.key?(method.to_s) || super
61
+ (data.is_a?(Hash) && data.key?(method.to_s)) || super
62
62
  end
63
63
  end
64
64
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JWTEasy
4
- VERSION = '0.2.2'
4
+ VERSION = '1.0.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jwt_easy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Collaboration Collective
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-02-10 00:00:00.000000000 Z
11
+ date: 2023-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt
@@ -16,96 +16,96 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.5'
19
+ version: '2.7'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.5'
26
+ version: '2.7'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '2.1'
33
+ version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '2.1'
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: pry
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: '10.0'
61
+ version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: '10.0'
68
+ version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: '3.0'
75
+ version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
- version: '3.0'
82
+ version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rubocop
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
- version: 0.49.0
89
+ version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - "~>"
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
- version: 0.49.0
96
+ version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: timecop
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - "~>"
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - "~>"
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  description: Library for generating and consuming JSON web tokens easily.
@@ -118,7 +118,6 @@ files:
118
118
  - ".gitignore"
119
119
  - ".rspec"
120
120
  - ".rubocop.yml"
121
- - ".travis.yml"
122
121
  - Gemfile
123
122
  - README.md
124
123
  - Rakefile
@@ -137,7 +136,8 @@ files:
137
136
  homepage: https://github.com/collcoll/jwt-easy
138
137
  licenses:
139
138
  - MIT
140
- metadata: {}
139
+ metadata:
140
+ rubygems_mfa_required: 'true'
141
141
  post_install_message:
142
142
  rdoc_options: []
143
143
  require_paths:
@@ -146,15 +146,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
146
146
  requirements:
147
147
  - - ">="
148
148
  - !ruby/object:Gem::Version
149
- version: '0'
149
+ version: '2.5'
150
150
  required_rubygems_version: !ruby/object:Gem::Requirement
151
151
  requirements:
152
152
  - - ">="
153
153
  - !ruby/object:Gem::Version
154
154
  version: '0'
155
155
  requirements: []
156
- rubyforge_project:
157
- rubygems_version: 2.6.8
156
+ rubygems_version: 3.0.3.1
158
157
  signing_key:
159
158
  specification_version: 4
160
159
  summary: jwt_easy
data/.travis.yml DELETED
@@ -1,5 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- rvm:
4
- - 2.4.0
5
- before_install: gem install bundler -v 1.13.7