legacy-fernet 1.6.3 → 1.6.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 72509aaab8acbdf9c0127a61d2f380c432875384
4
+ data.tar.gz: b3d3807e4977be3482256f257c3b8f35e09cde78
5
+ SHA512:
6
+ metadata.gz: 92061fc594ebb4d3698a44b07d4dc16ed836057d7286f5a67f1153dc9e335c5184222918751ad91ebae9d27bd7389bdc3577f62b54d34a9db2e8d5edc51c5d19
7
+ data.tar.gz: 87c747160408254c5719e978b890f9f507c5249f1fa232d655867f4f3091c93ab262692cf308625fa2efaf05209103a733dd93b14fd203a1f1ca3af1ecdb5e3a
data/Gemfile CHANGED
@@ -1,4 +1,7 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- # Specify your gem's dependencies in fernet.gemspec
4
3
  gemspec
4
+
5
+ gem "oj", "~> 2.18"
6
+ gem "rake", "~> 11.0"
7
+ gem "rspec", "~> 2.11"
@@ -1,15 +1,16 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- legacy-fernet (1.6.2)
5
- multi_json
4
+ legacy-fernet (1.6.4)
5
+ multi_json (~> 1.0)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
10
  diff-lcs (1.1.3)
11
- multi_json (1.7.9)
12
- oj (2.1.4)
11
+ multi_json (1.12.1)
12
+ oj (2.18.1)
13
+ rake (11.3.0)
13
14
  rspec (2.11.0)
14
15
  rspec-core (~> 2.11.0)
15
16
  rspec-expectations (~> 2.11.0)
@@ -25,5 +26,9 @@ PLATFORMS
25
26
 
26
27
  DEPENDENCIES
27
28
  legacy-fernet!
28
- oj
29
- rspec
29
+ oj (~> 2.18)
30
+ rake (~> 11.0)
31
+ rspec (~> 2.11)
32
+
33
+ BUNDLED WITH
34
+ 1.13.7
data/Rakefile CHANGED
@@ -1,2 +1,7 @@
1
1
  #!/usr/bin/env rake
2
2
  require "bundler/gem_tasks"
3
+ require "rspec/core/rake_task"
4
+
5
+ RSpec::Core::RakeTask.new(:spec)
6
+
7
+ task :default => :spec
@@ -15,8 +15,5 @@ Gem::Specification.new do |gem|
15
15
  gem.require_paths = ["lib"]
16
16
  gem.version = Fernet::Legacy::VERSION
17
17
 
18
- gem.add_dependency "multi_json"
19
-
20
- gem.add_development_dependency "rspec"
21
- gem.add_development_dependency "oj"
18
+ gem.add_dependency "multi_json", "~> 1.0"
22
19
  end
@@ -46,7 +46,7 @@ module Fernet::Legacy
46
46
  cipher.encrypt
47
47
  iv = cipher.random_iv
48
48
  cipher.iv = iv
49
- cipher.key = encryption_key
49
+ cipher.key = encryption_key[0, 16]
50
50
  @data = cipher.update(MultiJson.dump(data)) + cipher.final
51
51
  iv
52
52
  end
@@ -75,7 +75,7 @@ module Fernet::Legacy
75
75
  decipher = OpenSSL::Cipher.new('AES-128-CBC')
76
76
  decipher.decrypt
77
77
  decipher.iv = iv
78
- decipher.key = encryption_key
78
+ decipher.key = encryption_key[0, 16]
79
79
  decipher.update(Base64.urlsafe_decode64(encrypted_data)) + decipher.final
80
80
  end
81
81
 
@@ -1,5 +1,5 @@
1
1
  module Fernet
2
2
  module Legacy
3
- VERSION = "1.6.3"
3
+ VERSION = "1.6.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,64 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: legacy-fernet
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.3
5
- prerelease:
4
+ version: 1.6.4
6
5
  platform: ruby
7
6
  authors:
8
7
  - Harold Giménez
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-08-19 00:00:00.000000000 Z
11
+ date: 2017-02-22 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: multi_json
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
- version: '0'
19
+ version: '1.0'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - "~>"
28
25
  - !ruby/object:Gem::Version
29
- version: '0'
30
- - !ruby/object:Gem::Dependency
31
- name: rspec
32
- requirement: !ruby/object:Gem::Requirement
33
- none: false
34
- requirements:
35
- - - ! '>='
36
- - !ruby/object:Gem::Version
37
- version: '0'
38
- type: :development
39
- prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ! '>='
44
- - !ruby/object:Gem::Version
45
- version: '0'
46
- - !ruby/object:Gem::Dependency
47
- name: oj
48
- requirement: !ruby/object:Gem::Requirement
49
- none: false
50
- requirements:
51
- - - ! '>='
52
- - !ruby/object:Gem::Version
53
- version: '0'
54
- type: :development
55
- prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - ! '>='
60
- - !ruby/object:Gem::Version
61
- version: '0'
26
+ version: '1.0'
62
27
  description: Delicious HMAC Digest(if) authentication and encryption
63
28
  email:
64
29
  - harold.gimenez@gmail.com
@@ -83,27 +48,26 @@ files:
83
48
  - spec/spec_helper.rb
84
49
  homepage: ''
85
50
  licenses: []
51
+ metadata: {}
86
52
  post_install_message:
87
53
  rdoc_options: []
88
54
  require_paths:
89
55
  - lib
90
56
  required_ruby_version: !ruby/object:Gem::Requirement
91
- none: false
92
57
  requirements:
93
- - - ! '>='
58
+ - - ">="
94
59
  - !ruby/object:Gem::Version
95
60
  version: '0'
96
61
  required_rubygems_version: !ruby/object:Gem::Requirement
97
- none: false
98
62
  requirements:
99
- - - ! '>='
63
+ - - ">="
100
64
  - !ruby/object:Gem::Version
101
65
  version: '0'
102
66
  requirements: []
103
67
  rubyforge_project:
104
- rubygems_version: 1.8.23
68
+ rubygems_version: 2.6.10
105
69
  signing_key:
106
- specification_version: 3
70
+ specification_version: 4
107
71
  summary: Easily generate and verify AES encrypted HMAC based authentication tokens
108
72
  test_files:
109
73
  - spec/fernet_spec.rb