scrypt 3.0.0 → 3.0.1

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: cfb68eca4a9da928746e910f6102bfcc5aa6930e
4
- data.tar.gz: a8a5b75ac77e99bdc4600f5d33006855ee1abd8b
3
+ metadata.gz: fe756474da0dad21e0a4b83ce50f9690f684f411
4
+ data.tar.gz: d627fbd2339acb7f5985b8cd349de4768c4f59ec
5
5
  SHA512:
6
- metadata.gz: e8bf255e9a3ade2a4b6386d0cda4cf25d6026cef9aaf554634a22c3e1b04bdfcd7320df33f6a50c6660363123e43cfff579ce7b82220757a0ed55010e9f83af7
7
- data.tar.gz: 4a6d07b2914c43fe9f98f7c8ade8dda6296f4e62e517f15c21ca175046df1cef451de373ed8fbef042d35ffed013606c3b9315ab3c0365cdcb2651311f2e696f
6
+ metadata.gz: cdbd4a482f0a98ee68b6062654907ce5f0e23faa8ba68bd11368d7a4784078a547eae8d168e9c03b066fa2b4817d2d6942d32718b85f95a188d68b4a1d733307
7
+ data.tar.gz: 2ed2b029b66f67efc71f76970f9d20043f74b8fe54a11dff44c8fe759b6c7839f782f35c434b310159edab775d4aba5b544fd1f1d9067a5e69801da4a48bb706
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
@@ -1 +1 @@
1
- \��=��*1
1
+ m�j���,��@��87�=���)��B���hv2ةʅ�>��o�����Fc��爌،�Yj#����䁈c!��-�}sEs���¨�p�AY^��[-�|+'9[��קZ��`c_qBP�G�Bh�G�ϋ8_ѳܞ��Y\��u(Ü��;"���n�4�����j`iX���@�U)W��x�4�����j)�+�z�F�&�R�|&�J���H�V�in``�=�<J͖��2v��,���9sIx��� ��\@����w�
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- scrypt [![Build Status](https://secure.travis-ci.org/pbhogan/scrypt.png)](http://travis-ci.org/pbhogan/scrypt)
1
+ scrypt [![Build Status](https://secure.travis-ci.org/pbhogan/scrypt.svg)](http://travis-ci.org/pbhogan/scrypt)
2
2
  ======
3
3
 
4
4
  The scrypt key derivation function is designed to be far more secure against hardware brute-force attacks than alternative functions such as PBKDF2 or bcrypt.
data/Rakefile CHANGED
@@ -29,6 +29,8 @@ namespace "ffi-compiler" do
29
29
  t.cflags << "-D_GNU_SOURCE=1" if RbConfig::CONFIG["host_os"].downcase =~ /mingw/
30
30
  t.cflags << "-arch x86_64 -arch i386" if t.platform.mac?
31
31
  t.ldflags << "-arch x86_64 -arch i386" if t.platform.mac?
32
+
33
+ t.add_define 'WINDOWS_OS' if FFI::Platform.windows?
32
34
  end
33
35
  end
34
36
  task :compile_ffi => ["ffi-compiler:default"]
data/ext/scrypt/Rakefile CHANGED
@@ -7,4 +7,6 @@ FFI::Compiler::CompileTask.new('scrypt_ext') do |t|
7
7
  t.cflags << "-arch x86_64 -arch i386" if t.platform.mac?
8
8
  t.ldflags << "-arch x86_64 -arch i386" if t.platform.mac?
9
9
  t.export '../../lib/scrypt/scrypt_ext.rb'
10
+
11
+ t.add_define 'WINDOWS_OS' if FFI::Platform.windows?
10
12
  end
@@ -29,8 +29,12 @@
29
29
  /* #include "bsdtar_platform.h" */
30
30
 
31
31
  #include <sys/types.h>
32
- #include <sys/mman.h>
33
-
32
+ #if !defined(WINDOWS_OS)
33
+ #include <sys/mman.h>
34
+ #ifndef HAVE_MMAP
35
+ #define HAVE_MMAP 1
36
+ #endif
37
+ #endif
34
38
  #include <errno.h>
35
39
  #include <stdint.h>
36
40
  #include <stdlib.h>
@@ -1,3 +1,3 @@
1
1
  module SCrypt
2
- VERSION = "3.0.0"
2
+ VERSION = "3.0.1"
3
3
  end
data/scrypt.gemspec CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
19
19
  alternative functions such as PBKDF2 or bcrypt.
20
20
  EOF
21
21
 
22
- s.add_dependency 'ffi-compiler', '>= 0.0.2'
22
+ s.add_dependency 'ffi-compiler', '>= 1.0.0'
23
23
  s.add_dependency 'rake'
24
24
  s.add_development_dependency "rspec"
25
25
  s.add_development_dependency "rdoc"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scrypt
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick Hogan
@@ -33,7 +33,7 @@ cert_chain:
33
33
  wpN2wi2CVPoj+c4bOYxgvF17WNGDWYdVEXXCRzoqGbA2kLbTH1o9BxI6NBzmfwyH
34
34
  LY7uYxN8Hy8S4Oto/gB1eREHqYwwXt3TmlJ6kAVGbO5y9xblPncdnfwNLCUnPfxN
35
35
  -----END CERTIFICATE-----
36
- date: 2016-06-26 00:00:00.000000000 Z
36
+ date: 2016-07-07 00:00:00.000000000 Z
37
37
  dependencies:
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: ffi-compiler
@@ -41,14 +41,14 @@ dependencies:
41
41
  requirements:
42
42
  - - ">="
43
43
  - !ruby/object:Gem::Version
44
- version: 0.0.2
44
+ version: 1.0.0
45
45
  type: :runtime
46
46
  prerelease: false
47
47
  version_requirements: !ruby/object:Gem::Requirement
48
48
  requirements:
49
49
  - - ">="
50
50
  - !ruby/object:Gem::Version
51
- version: 0.0.2
51
+ version: 1.0.0
52
52
  - !ruby/object:Gem::Dependency
53
53
  name: rake
54
54
  requirement: !ruby/object:Gem::Requirement
metadata.gz.sig CHANGED
Binary file