json_web_token 0.3.4 → 0.3.5

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
  SHA1:
3
- metadata.gz: 89a9f3eed2e51591eed4092556d4ab1befdbe647
4
- data.tar.gz: 6af5c59fe857f87ab9b2bfb7a879195eb2e3cea9
3
+ metadata.gz: f396141a26068547f7261b812f90c320273ce320
4
+ data.tar.gz: 403d0e3e9ada297333dd66cd3c9123866b71df89
5
5
  SHA512:
6
- metadata.gz: 5f8b9ecda94eff99d27e6896f7da24f73a105856b0c6481918a11be8fd73b84a46515fb75a8143a41c1bfad9cb9b45d86bfb1e74c6e577b731b317be57402713
7
- data.tar.gz: 3e6d03eb56a3fdb571466e66a9870f73de4c4e9bd90cc63ebff1aedee282bcfb805d29c6e2e34f1643c5ca7ae4a4d1d475512b3911af14f6b949e21c93d7b155
6
+ metadata.gz: 005ba3563e908e798d8cecde894f09333786ad4466e242c1b39cdb30dff84a9ea30938dc0a3a0732e3a8214e069df9e19404c740c35830bbd78be60e6392fba9
7
+ data.tar.gz: 4566a03c1fa304edf1eb52cfc37666d33eef58caa52a4abda7abf441941400d1acabb800bd9cb89622fff19b510775543f48759e04006cdeea7d257f94bb73cf
@@ -1,6 +1,6 @@
1
1
  language: ruby
2
+ cache: bundler
2
3
  rvm:
3
- - 2.1.10
4
- - 2.2.6
5
- - 2.3.3
6
- - 2.4.0
4
+ - 2.2.7
5
+ - 2.3.4
6
+ - 2.4.1
@@ -1,5 +1,14 @@
1
1
  ## Changelog
2
2
 
3
+ ### v0.3.5 (2017-06-17)
4
+
5
+ * Bug fixes
6
+ * Replace ECDSA curve secp256k1 in spec with prime256v1 (aka secp256r1)
7
+
8
+ * Enhancements
9
+ * Remove travis CI for ruby < v2.2
10
+ * Update gem dependency versions
11
+
3
12
  ### v0.3.4 (2017-03-02)
4
13
 
5
14
  * Enhancements
data/README.md CHANGED
@@ -131,7 +131,7 @@ ES512 | ECDSA using P-521 and SHA-512
131
131
  none | No digital signature or MAC performed (unsecured)
132
132
 
133
133
  ### Supported Ruby Versions
134
- Ruby 2.1 and up
134
+ Ruby 2.2 and up
135
135
 
136
136
  ### Limitations
137
137
  Future implementation may include these features:
@@ -21,15 +21,15 @@ Gem::Specification.new do |s|
21
21
  s.require_paths = ['lib']
22
22
 
23
23
  s.platform = Gem::Platform::RUBY
24
- s.required_ruby_version = '>= 2.0.0'
24
+ s.required_ruby_version = '>= 2.2.0'
25
25
 
26
- s.add_runtime_dependency 'json', '~> 2.0'
26
+ s.add_runtime_dependency 'json', '~> 2.1'
27
27
 
28
- s.add_development_dependency 'bundler', '~> 1.13'
29
- s.add_development_dependency 'rake', '~> 10.0'
30
- s.add_development_dependency 'rspec', '~> 3.0'
28
+ s.add_development_dependency 'bundler', '~> 1.15'
29
+ s.add_development_dependency 'rake', '~> 12.0'
30
+ s.add_development_dependency 'rspec', '~> 3.6'
31
31
  s.add_development_dependency 'pry-byebug', '~> 3.4'
32
- s.add_development_dependency 'simplecov', '~> 0.12'
32
+ s.add_development_dependency 'simplecov', '~> 0.14'
33
33
  s.add_development_dependency 'yard', '~> 0.9'
34
34
  s.add_development_dependency 'wwtd', '~> 1.3'
35
35
  end
@@ -3,7 +3,7 @@ require 'json_web_token/format/asn1'
3
3
 
4
4
  module JsonWebToken
5
5
  module Algorithm
6
- # Sign or verify a JSON Web Signature (JWS) structure using EDCSA
6
+ # Sign or verify a JSON Web Signature (JWS) structure using ECDSA
7
7
  # @see http://tools.ietf.org/html/rfc7518#section-3.4
8
8
  module Ecdsa
9
9
 
@@ -11,7 +11,7 @@ module JsonWebToken
11
11
  extend JsonWebToken::Format::Asn1
12
12
 
13
13
  MAC_BYTE_COUNT = {
14
- '256' => 64, # secp256k1
14
+ '256' => 64, # prime256v1 aka: secp256r1
15
15
  '384' => 96, # secp384r1
16
16
  '512' => 132 # secp521r1 note difference (not 128) due to using 521-bit integers
17
17
  }
@@ -1,3 +1,3 @@
1
1
  module JsonWebToken
2
- VERSION = "0.3.4"
2
+ VERSION = "0.3.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json_web_token
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gary Fleshman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-03 00:00:00.000000000 Z
11
+ date: 2017-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -16,56 +16,56 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2.0'
19
+ version: '2.1'
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: '2.0'
26
+ version: '2.1'
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: '1.13'
33
+ version: '1.15'
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: '1.13'
40
+ version: '1.15'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '10.0'
47
+ version: '12.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
- version: '10.0'
54
+ version: '12.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '3.0'
61
+ version: '3.6'
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: '3.0'
68
+ version: '3.6'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: pry-byebug
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '0.12'
89
+ version: '0.14'
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.12'
96
+ version: '0.14'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: yard
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -165,7 +165,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
165
165
  requirements:
166
166
  - - ">="
167
167
  - !ruby/object:Gem::Version
168
- version: 2.0.0
168
+ version: 2.2.0
169
169
  required_rubygems_version: !ruby/object:Gem::Requirement
170
170
  requirements:
171
171
  - - ">="
@@ -173,7 +173,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
173
173
  version: '0'
174
174
  requirements: []
175
175
  rubyforge_project:
176
- rubygems_version: 2.6.8
176
+ rubygems_version: 2.6.12
177
177
  signing_key:
178
178
  specification_version: 4
179
179
  summary: JSON Web Token (JWT) for Ruby