scrypt 3.0.7 → 3.0.8

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: 02015d055d4e00cd4e57ce89476cf4e835b06c0685c947377c907d2e5871a38b
4
- data.tar.gz: 9d5bc60803a22812345e74f90c76d8cad441fa1d209d24bce25f8fd67214bf85
3
+ metadata.gz: 8179f4b0bf8f79e8476cc36f386e1fa349efa0db814a7f40a7f67b521a3a80b2
4
+ data.tar.gz: 99dd37077aa2003bf966336aee1f395cc655fcf61aac44ed12f049e36e66b62a
5
5
  SHA512:
6
- metadata.gz: 3b2813326ccda844f5443d5f2649689e2b5e3ea3e00f39cfd405a9780c4ca309751d1dac50d4a69f9bc216ce9673dc727eab230d4a75c57ab6a1dbeb1bd02296
7
- data.tar.gz: 839465c3985852284bad6d279c56b38b7b30fc1c669e1b51c4a7e344acdbabdb05a519876383a9aec0026e246952b302d3b08c1381bf0225ff7890243c99b5b2
6
+ metadata.gz: 94b935e06c8d3e342b5de545cc18a8d4e04ed589d22c9006b90049e39970f1063939b660da88be43f293d67156ec394b238955bb68477bc3aefb0d70b74f8bdd
7
+ data.tar.gz: e13414929c7bb835c456e7e4ad3db8f4dedf8092cf0e3fd7413fd423c39591b9b80575d9baeea35ced8d70cb9c82718d9b3fd6429d2c4452d7a87025013d960b
checksums.yaml.gz.sig CHANGED
Binary file
data/Rakefile CHANGED
@@ -42,7 +42,7 @@ namespace 'ffi-compiler' do
42
42
  t.cflags << '-Wall -std=c99'
43
43
  t.cflags << '-msse -msse2' if t.platform.arch.include? '86'
44
44
  t.cflags << '-D_GNU_SOURCE=1' if RbConfig::CONFIG['host_os'].downcase =~ /mingw/
45
- t.cflags << '-D_POSIX_C_SOURCE=199309L' if RbConfig::CONFIG['host_os'].downcase =~ /linux/
45
+ t.cflags << '-D_POSIX_C_SOURCE=200809L' if RbConfig::CONFIG['host_os'].downcase =~ /linux/
46
46
 
47
47
  if 1.size == 4 && target_cpu =~ /i386|x86_32/ && t.platform.mac?
48
48
  t.cflags << '-arch i386'
data/ext/scrypt/Rakefile CHANGED
@@ -6,7 +6,7 @@ FFI::Compiler::CompileTask.new('scrypt_ext') do |t|
6
6
  t.cflags << '-Wall -std=c99'
7
7
  t.cflags << '-msse -msse2' if t.platform.arch.include? '86'
8
8
  t.cflags << '-D_GNU_SOURCE=1' if RbConfig::CONFIG['host_os'].downcase =~ /mingw/
9
- t.cflags << '-D_POSIX_C_SOURCE=199309L' if RbConfig::CONFIG['host_os'].downcase =~ /linux/
9
+ t.cflags << '-D_POSIX_C_SOURCE=200809L' if RbConfig::CONFIG['host_os'].downcase =~ /linux/
10
10
 
11
11
  if 1.size == 4 && target_cpu =~ /i386|x86_32/ && t.platform.mac?
12
12
  t.cflags << '-arch i386'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SCrypt
4
- VERSION = '3.0.7'
4
+ VERSION = "3.0.8"
5
5
  end
data/scrypt.gemspec CHANGED
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
16
16
  'steve@advancedcontrol.com.au',
17
17
  'rene.vanpaassen@gmail.com',
18
18
  'io+scrypt@jsg.io']
19
- s.cert_chain = ['certs/stakach.pem']
19
+ s.cert_chain = ['certs/pbhogan.pem']
20
20
  s.license = 'BSD-3-Clause'
21
21
 
22
22
  s.signing_key = File.expand_path('~/.ssh/gem-private_key.pem') if $0 =~ /gem\z/
@@ -30,9 +30,12 @@ Gem::Specification.new do |s|
30
30
  alternative functions such as PBKDF2 or bcrypt.
31
31
  DESC
32
32
 
33
+ s.required_ruby_version = '>= 2.3.0'
34
+
33
35
  s.add_dependency 'ffi-compiler', '>= 1.0', '< 2.0'
36
+ s.add_dependency 'rake', '>= 9', '< 14'
34
37
  s.add_development_dependency 'awesome_print', '>= 1', '< 2'
35
- s.add_development_dependency 'rake', '>= 9', '< 13'
38
+ s.add_development_dependency 'rake', '>= 9', '< 14'
36
39
  s.add_development_dependency 'rdoc', '>= 4', '< 5'
37
40
  s.add_development_dependency 'rspec', '>= 3', '< 4'
38
41
 
@@ -42,8 +45,6 @@ Gem::Specification.new do |s|
42
45
  s.add_development_dependency 'rubocop-performance', '>= 1.5.0', '< 1.6.0'
43
46
  end
44
47
 
45
- s.rubyforge_project = 'scrypt'
46
-
47
48
  s.extensions = ['ext/scrypt/Rakefile']
48
49
 
49
50
  s.files = %w[Rakefile scrypt.gemspec README.md COPYING] + Dir.glob('{lib,spec,autotest}/**/*')
@@ -49,13 +49,13 @@ describe 'Generating SCrypt hashes' do
49
49
  end
50
50
 
51
51
  it 'should raise an InvalidSalt error if the salt is invalid' do
52
- expect(-> { SCrypt::Engine.hash_secret(@password, 'nino') }).to raise_error(SCrypt::Errors::InvalidSalt)
52
+ expect { SCrypt::Engine.hash_secret(@password, 'nino') }.to raise_error(SCrypt::Errors::InvalidSalt)
53
53
  end
54
54
 
55
55
  it 'should raise an InvalidSecret error if the secret is invalid' do
56
- expect(-> { SCrypt::Engine.hash_secret(MyInvalidSecret.new, @salt) }).to raise_error(SCrypt::Errors::InvalidSecret)
57
- expect(-> { SCrypt::Engine.hash_secret(nil, @salt) }).to_not raise_error
58
- expect(-> { SCrypt::Engine.hash_secret(false, @salt) }).to_not raise_error
56
+ expect { SCrypt::Engine.hash_secret(MyInvalidSecret.new, @salt) }.to raise_error(SCrypt::Errors::InvalidSecret)
57
+ expect { SCrypt::Engine.hash_secret(nil, @salt) }.to_not raise_error
58
+ expect { SCrypt::Engine.hash_secret(false, @salt) }.to_not raise_error
59
59
  end
60
60
 
61
61
  it 'should call #to_s on the secret and use the return value as the actual secret data' do
@@ -42,7 +42,7 @@ describe 'Reading a hashed password' do
42
42
  end
43
43
 
44
44
  it 'should raise an InvalidHashError when given an invalid hash' do
45
- expect(-> { SCrypt::Password.new('not a valid hash') }).to raise_error(SCrypt::Errors::InvalidHash)
45
+ expect { SCrypt::Password.new('not a valid hash') }.to raise_error(SCrypt::Errors::InvalidHash)
46
46
  end
47
47
  end
48
48
 
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,44 +1,44 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scrypt
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.7
4
+ version: 3.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick Hogan
8
8
  - Stephen von Takach
9
9
  - Rene van Paassen
10
10
  - Johanns Gregorian
11
- autorequire:
11
+ autorequire:
12
12
  bindir: bin
13
13
  cert_chain:
14
14
  - |
15
15
  -----BEGIN CERTIFICATE-----
16
- MIIEfDCCAuSgAwIBAgIBATANBgkqhkiG9w0BAQsFADBCMQ4wDAYDVQQDDAVzdGV2
17
- ZTEbMBkGCgmSJomT8ixkARkWC2FjYXByb2plY3RzMRMwEQYKCZImiZPyLGQBGRYD
18
- Y29tMB4XDTE5MTExMzIzMDMwMFoXDTIwMTExMjIzMDMwMFowQjEOMAwGA1UEAwwF
19
- c3RldmUxGzAZBgoJkiaJk/IsZAEZFgthY2Fwcm9qZWN0czETMBEGCgmSJomT8ixk
20
- ARkWA2NvbTCCAaIwDQYJKoZIhvcNAQEBBQADggGPADCCAYoCggGBALtarCg2Ux+m
21
- XjcGQ6XVxRbVwwVUxGWIBfpKXzq23WOXk0NkRooyYLuxSfkA/PFVd5OLZTMP+ULr
22
- KgM9w7+xR/Xhs/qxib/84u54H8rqHTCozYmldR5QpYTwsB4BeG0HpSbD0PGL+4N+
23
- oa50wRyvwVBAZMG4F4QYUGnQlwBpLSm4Fhm6xhKqD9DDhbS5jgIg/S3Cr4dqghUG
24
- kqsIGjKd6X9wIOIqF1IWLZkXiwN1IcKCJ9FO2iTBEo7UidJXROO5xs5D0Vr3iyiw
25
- F3tmhpq1C7KkXkv0AxAxRK3SmdpIiagRukvdNFEAcpkgX6qUg62G8KMRGc3dP9lx
26
- tBP8IonLEcpLktQakuqsV4YETQaKQb5F4WADxh1tvIPcYJUxHsw3sdHZeDywT3De
27
- LPCNTbu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0IOt++HK+roi0iiXqtc7k1lFc9wvrNmQmg5ehqnIJduH7VLE4DXeR
35
+ gFsk4zW1CsPxhNJGTUJawCcRDX3gS/dv1xa4+WaOFbG+pT0kVH1vFWBd6ylQgzOS
36
+ GoK4s/sTBfyITuo91NPV8+NpdcOrzaZUmdO3i+dox2JR01OXRSaapuRTn8CmjGPq
37
+ DvDKDJVWX/gAm+wYW871bYbzYtoPGrLO16fzYBKbwBDDHxxW2ju1CdM1PGR9fRVp
38
+ j9xWOu4Z1nHLCxQxv+h4jQqTUXr6QS0Aei4heTJEH85yXqdgsn2EKsTMC1vAbBGR
39
+ 2SIh/w6kd92reXNpKv+PzBa+yFT5pS7f+6CfMC8XdJE=
40
40
  -----END CERTIFICATE-----
41
- date: 2019-11-14 00:00:00.000000000 Z
41
+ date: 2024-06-04 00:00:00.000000000 Z
42
42
  dependencies:
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: ffi-compiler
@@ -60,6 +60,26 @@ dependencies:
60
60
  - - "<"
61
61
  - !ruby/object:Gem::Version
62
62
  version: '2.0'
63
+ - !ruby/object:Gem::Dependency
64
+ name: rake
65
+ requirement: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ version: '9'
70
+ - - "<"
71
+ - !ruby/object:Gem::Version
72
+ version: '14'
73
+ type: :runtime
74
+ prerelease: false
75
+ version_requirements: !ruby/object:Gem::Requirement
76
+ requirements:
77
+ - - ">="
78
+ - !ruby/object:Gem::Version
79
+ version: '9'
80
+ - - "<"
81
+ - !ruby/object:Gem::Version
82
+ version: '14'
63
83
  - !ruby/object:Gem::Dependency
64
84
  name: awesome_print
65
85
  requirement: !ruby/object:Gem::Requirement
@@ -89,7 +109,7 @@ dependencies:
89
109
  version: '9'
90
110
  - - "<"
91
111
  - !ruby/object:Gem::Version
92
- version: '13'
112
+ version: '14'
93
113
  type: :development
94
114
  prerelease: false
95
115
  version_requirements: !ruby/object:Gem::Requirement
@@ -99,7 +119,7 @@ dependencies:
99
119
  version: '9'
100
120
  - - "<"
101
121
  - !ruby/object:Gem::Version
102
- version: '13'
122
+ version: '14'
103
123
  - !ruby/object:Gem::Dependency
104
124
  name: rdoc
105
125
  requirement: !ruby/object:Gem::Requirement
@@ -259,7 +279,7 @@ homepage: https://github.com/pbhogan/scrypt
259
279
  licenses:
260
280
  - BSD-3-Clause
261
281
  metadata: {}
262
- post_install_message:
282
+ post_install_message:
263
283
  rdoc_options: []
264
284
  require_paths:
265
285
  - lib
@@ -267,20 +287,19 @@ required_ruby_version: !ruby/object:Gem::Requirement
267
287
  requirements:
268
288
  - - ">="
269
289
  - !ruby/object:Gem::Version
270
- version: '0'
290
+ version: 2.3.0
271
291
  required_rubygems_version: !ruby/object:Gem::Requirement
272
292
  requirements:
273
293
  - - ">="
274
294
  - !ruby/object:Gem::Version
275
295
  version: '0'
276
296
  requirements: []
277
- rubyforge_project: scrypt
278
- rubygems_version: 2.7.7
279
- signing_key:
297
+ rubygems_version: 3.5.10
298
+ signing_key:
280
299
  specification_version: 4
281
300
  summary: scrypt password hashing algorithm.
282
301
  test_files:
283
- - spec/spec_helper.rb
284
- - spec/scrypt/password_spec.rb
285
302
  - spec/scrypt/engine_spec.rb
303
+ - spec/scrypt/password_spec.rb
286
304
  - spec/scrypt/utils_spec.rb
305
+ - spec/spec_helper.rb
metadata.gz.sig CHANGED
@@ -1,3 +1,2 @@
1
- `5��5
2
- �/ l���;�#��ԻF��Mt��K�AS,�DW �d1��ڑ�-�
3
- }�'�+��F8A�D4
1
+ VKϣ`��C ?�qi�I�)i�xJ��>��=6��~ߜ�Hj�*
2
+ �'��[{_�<��;9�g`�r��Y�h�|/ǝ�Lx5�p*�Z]J�A��q���2