narray_ffi 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ext/narray_ffi_c/extconf.rb +9 -1
- data/ext/narray_ffi_c/narray_ffi.c +1 -3
- data/narray_ffi.gemspec +2 -2
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 91e9c0c0fbb8c6a7d5b918b30451fe19f89776e7
|
4
|
+
data.tar.gz: 258ddf292f202caa98be3db49adbc936bce1890d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f502e01b2f228e0c0d85f9f97cb72a2b31d16366c068256c63f91d5ed06af46581f416563648dacb0043eb7180f1265be6f4441b9745b25ad717db8bfab408ec
|
7
|
+
data.tar.gz: 5ed89ef0b2a8fca613b1b491c3d8da7d0a6dbdd7f5a0d5dfbab010ecb6baf9f024be6d04675d3683752350a9f1c4ee18343d074ad4919a145efc1369714877af
|
data/ext/narray_ffi_c/extconf.rb
CHANGED
@@ -8,12 +8,20 @@ else
|
|
8
8
|
end
|
9
9
|
|
10
10
|
dir_config("narray", conf["archdir"])
|
11
|
+
|
12
|
+
if /cygwin|mingw/ =~ RUBY_PLATFORM then
|
13
|
+
$LDFLAGS = "libnarray.a " << $LDFLAGS
|
14
|
+
end
|
15
|
+
|
11
16
|
unless have_header("narray.h")
|
12
17
|
begin
|
13
18
|
require "rubygems"
|
14
|
-
if spec = Gem::Specification.find_all_by_name("narray").last
|
19
|
+
if spec = Gem::Specification.find_all_by_name("narray").last then
|
15
20
|
spec.require_paths.each { |path|
|
16
21
|
$CPPFLAGS = "-I" << spec.full_gem_path << "/" << path << "/ " << $CPPFLAGS
|
22
|
+
if /cygwin|mingw/ =~ RUBY_PLATFORM then
|
23
|
+
$LDFLAGS = "-L" << spec.full_gem_path << "/" << path << "/ " << $LDFLAGS
|
24
|
+
end
|
17
25
|
}
|
18
26
|
end
|
19
27
|
rescue LoadError
|
@@ -21,7 +21,6 @@ static VALUE
|
|
21
21
|
VALUE mod;
|
22
22
|
VALUE klass;
|
23
23
|
VALUE ret;
|
24
|
-
VALUE address;
|
25
24
|
long length;
|
26
25
|
|
27
26
|
GetNArray(self,ary);
|
@@ -107,7 +106,6 @@ static void
|
|
107
106
|
static void
|
108
107
|
na_mark_ref_empty(struct NARRAY *ary)
|
109
108
|
{
|
110
|
-
struct NARRAY *a2;
|
111
109
|
|
112
110
|
rb_gc_mark( ary->ref );
|
113
111
|
|
@@ -182,7 +180,7 @@ static VALUE
|
|
182
180
|
if ( rb_funcall(argv[0], rb_intern("kind_of?"), 1, klass_p) == Qtrue ){
|
183
181
|
return na_pointer_to_na(argc-1,argv+1,argv[0]);
|
184
182
|
}
|
185
|
-
rb_funcall2(klass, rb_intern("to_na_old"), argc, argv);
|
183
|
+
return rb_funcall2(klass, rb_intern("to_na_old"), argc, argv);
|
186
184
|
}
|
187
185
|
|
188
186
|
void Init_narray_ffi_c() {
|
data/narray_ffi.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'narray_ffi'
|
3
|
-
s.version = "1.
|
3
|
+
s.version = "1.3.0"
|
4
4
|
s.author = "Brice Videau"
|
5
5
|
s.email = "brice.videau@imag.fr"
|
6
6
|
s.homepage = "https://forge.imag.fr/projects/opencl-ruby/"
|
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
|
|
9
9
|
s.files = %w( narray_ffi.gemspec LICENSE lib/narray_ffi.rb ext/narray_ffi_c/narray_ffi.c ext/narray_ffi_c/extconf.rb)
|
10
10
|
s.extensions << 'ext/narray_ffi_c/extconf.rb'
|
11
11
|
s.has_rdoc = false
|
12
|
-
s.license = 'BSD'
|
12
|
+
s.license = 'BSD-2-Clause'
|
13
13
|
s.required_ruby_version = '>= 1.8.7'
|
14
14
|
s.add_dependency 'narray', '~> 0.6', '>=0.6.0.8'
|
15
15
|
s.add_dependency 'ffi', '~> 1.9', '>=1.9.3'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: narray_ffi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brice Videau
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-05-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: narray
|
@@ -64,7 +64,7 @@ files:
|
|
64
64
|
- narray_ffi.gemspec
|
65
65
|
homepage: https://forge.imag.fr/projects/opencl-ruby/
|
66
66
|
licenses:
|
67
|
-
- BSD
|
67
|
+
- BSD-2-Clause
|
68
68
|
metadata: {}
|
69
69
|
post_install_message:
|
70
70
|
rdoc_options: []
|
@@ -82,8 +82,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
82
|
version: '0'
|
83
83
|
requirements: []
|
84
84
|
rubyforge_project:
|
85
|
-
rubygems_version: 2.
|
85
|
+
rubygems_version: 2.5.1
|
86
86
|
signing_key:
|
87
87
|
specification_version: 4
|
88
88
|
summary: Ruby narray_ffi
|
89
89
|
test_files: []
|
90
|
+
has_rdoc: false
|