jwt-multisig 1.0.4 → 1.0.6

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: 5edf239b75b41453236a1d170ab81b6233ab334df41805c916ebc0c89a28a1e6
4
- data.tar.gz: 3d634939c51b36d78feab51e9d71275feca0386e7f31a8927dac6085ff3c461c
3
+ metadata.gz: 9d964bfaaaa655928527573b8867a7ed7b535caaeb97ef922093d9f0bcdcf1e3
4
+ data.tar.gz: 5e709f1fa1ba46b6083fc48a6b5df9e4e00ac259cf283a5b73e59507c48d117a
5
5
  SHA512:
6
- metadata.gz: 91988aafe86882352b806addea59a6390140d2e258817507783bbf5c2addda3cdb028d821a771179568b9bbb461ac04432d1e384472f0894a45b97dc396477c2
7
- data.tar.gz: 99c553c60a72d97233de4012e06a7a1a12ffb8e5f7eef1cd5fab16c801781f31d606954d84ee27440fbe1b4c61020b9f1e3d92472120c5403818dc6d36cca069
6
+ metadata.gz: 4f1a6661ba691c780eba2d4a46d159c54359567035b53e47c357382eaab363f0fac70ed417587369dbce3b5052bddafcd6fa8589672e5939a2ac1d14f75e2813
7
+ data.tar.gz: 88b06acc104911a9754e8a4210660a3bcec8573a0f117a4256839505236850c69a22c05c82e5c52942c4719812c051e7d04f2d64aafef6b970cacd8d0f3383ab
data/.drone.yml CHANGED
@@ -6,6 +6,7 @@ steps:
6
6
  - name: Run tests
7
7
  image: ruby:2.6
8
8
  commands:
9
+ - gem install bundler:2.4.7
9
10
  - bundle install
10
11
  - bundle exec rake test
11
12
 
data/Gemfile.lock CHANGED
@@ -1,43 +1,42 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jwt-multisig (1.0.4)
4
+ jwt-multisig (1.0.6)
5
5
  activesupport (>= 4.0)
6
6
  jwt (~> 2.2)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- activesupport (6.0.3.4)
11
+ activesupport (6.1.7.2)
12
12
  concurrent-ruby (~> 1.0, >= 1.0.2)
13
- i18n (>= 0.7, < 2)
14
- minitest (~> 5.1)
15
- tzinfo (~> 1.1)
16
- zeitwerk (~> 2.2, >= 2.2.2)
17
- concurrent-ruby (1.1.7)
18
- i18n (1.8.5)
13
+ i18n (>= 1.6, < 2)
14
+ minitest (>= 5.1)
15
+ tzinfo (~> 2.0)
16
+ zeitwerk (~> 2.3)
17
+ concurrent-ruby (1.2.2)
18
+ i18n (1.12.0)
19
19
  concurrent-ruby (~> 1.0)
20
- jwt (2.2.2)
20
+ jwt (2.7.0)
21
21
  memoist (0.16.2)
22
- minitest (5.14.2)
23
- power_assert (1.2.0)
22
+ minitest (5.17.0)
23
+ power_assert (2.0.3)
24
24
  rake (12.3.3)
25
- test-unit (3.3.6)
25
+ test-unit (3.5.7)
26
26
  power_assert
27
- thread_safe (0.3.6)
28
- tzinfo (1.2.7)
29
- thread_safe (~> 0.1)
30
- zeitwerk (2.4.0)
27
+ tzinfo (2.0.6)
28
+ concurrent-ruby (~> 1.0)
29
+ zeitwerk (2.6.7)
31
30
 
32
31
  PLATFORMS
33
- ruby
32
+ x86_64-linux
34
33
 
35
34
  DEPENDENCIES
36
- bundler (~> 1.17)
35
+ bundler (~> 2.4.7)
37
36
  jwt-multisig!
38
37
  memoist (~> 0.16)
39
38
  rake (~> 12.3)
40
39
  test-unit (~> 3.1)
41
40
 
42
41
  BUNDLED WITH
43
- 1.17.3
42
+ 2.4.7
data/jwt-multisig.gemspec CHANGED
@@ -19,5 +19,5 @@ Gem::Specification.new do |s|
19
19
 
20
20
  s.add_dependency "jwt", "~> 2.2"
21
21
  s.add_dependency "activesupport", ">= 4.0"
22
- s.add_development_dependency "bundler", "~> 1.17"
22
+ s.add_development_dependency "bundler", "~> 2.4.7"
23
23
  end
@@ -3,6 +3,6 @@
3
3
 
4
4
  module JWT
5
5
  module Multisig
6
- VERSION = "1.0.4"
6
+ VERSION = "1.0.6"
7
7
  end
8
8
  end
data/lib/jwt-multisig.rb CHANGED
@@ -41,7 +41,7 @@ module JWT
41
41
  def generate_jwt(payload, private_keychain, algorithms)
42
42
  proxy_exception JWT::EncodeError do
43
43
  algorithms_mapping = algorithms.with_indifferent_access
44
- { payload: base64_encode(payload.to_json),
44
+ { payload: base64_encode(::JSON.dump(payload)),
45
45
  signatures: private_keychain.map do |id, value|
46
46
  generate_jws(payload, id, value, algorithms_mapping.fetch(id))
47
47
  end }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jwt-multisig
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - RubyKube
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-09 00:00:00.000000000 Z
11
+ date: 2023-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '1.17'
47
+ version: 2.4.7
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: '1.17'
54
+ version: 2.4.7
55
55
  description: The tool for working with JWT signed by multiple verificators as per
56
56
  RFC 7515. Based on the RubyGem «jwt» under the hood.
57
57
  email: support@rubykube.io
@@ -97,7 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
97
97
  - !ruby/object:Gem::Version
98
98
  version: '0'
99
99
  requirements: []
100
- rubygems_version: 3.0.3
100
+ rubygems_version: 3.0.3.1
101
101
  signing_key:
102
102
  specification_version: 4
103
103
  summary: The tool for working with multi-signature JWT.