File tree 6 files changed +20
-4
lines changed
6 files changed +20
-4
lines changed Original file line number Diff line number Diff line change
1
+ 3.0.1
2
+ -----
3
+
4
+ Fixed:
5
+
6
+ * Windows support was broken in 3.0.0
7
+
8
+
1
9
3.0.0
2
10
-----
3
11
Original file line number Diff line number Diff line change @@ -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" ]
Original file line number Diff line number Diff line change @@ -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
Original file line number Diff line number Diff line change 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>
Original file line number Diff line number Diff line change 1
1
module SCrypt
2
- VERSION = "3.0.0 "
2
+ VERSION = "3.0.1 "
3
3
end
Original file line number Diff line number Diff line change @@ -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"
You can’t perform that action at this time.
0 commit comments