narray_ffi 1.4.1 → 1.4.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 488ada256f8002dbdcafde0c7de82843e51563c4
4
- data.tar.gz: 8c9272bc226f52a8a490f1e0c33d56a67be108e1
3
+ metadata.gz: 80b4fd7dda0e6e10b3960f66ec0d6cc776fb6c50
4
+ data.tar.gz: 0a5f3b1ef3b4c1af940d990e46ac6c0c4a50b759
5
5
  SHA512:
6
- metadata.gz: deb31d5aeda3e2bc578c43ce4992fc67536112af93eaca07d048ac6286bfcd608b5d025670ecd2b3ac71a8bca79cd40f88d0b7e625adca35c3194c88af384f79
7
- data.tar.gz: 6660f0d8dc1615727f44fd682d8bb9b21651adb0ed11ff382d7ca235a94d8d0a5ce21d3ed57ba087f231ac74ccc5b7db0fdd2594a2efe81e26dcaf01372803b1
6
+ metadata.gz: c6c60b03e8c962c75babb3192d64d3a342e5a707a3e2784803a93bd34368f75ce161ce8eae4741f66dd59f8c33bb95c9a8cec85d9f5fd4e1b641d3c8136d6d39
7
+ data.tar.gz: 7b0ad25fa858d174de3c5727ff8a843934489bb46023e98314a85475719c6309ea4fb0cbb4ff6ccd99757763c9f0bf668ca28d5384f6419dd958b53b3eee3927
@@ -13,12 +13,14 @@ unless have_header("narray.h")
13
13
  begin
14
14
  require "rubygems"
15
15
  if spec = Gem::Specification.find_all_by_name("narray").last then
16
- spec.require_paths.each { |path|
17
- $CPPFLAGS = "-I" << spec.full_gem_path << "/" << path << "/ " << $CPPFLAGS
18
- if /cygwin|mingw/ =~ RUBY_PLATFORM then
19
- $LDFLAGS = "-L" << spec.full_gem_path << "/" << path << "/ " << $LDFLAGS
20
- end
21
- }
16
+ path = spec.require_path
17
+ if path == "." then
18
+ path = spec.full_gem_path
19
+ end
20
+ $CPPFLAGS = "-I" << path << "/ " << $CPPFLAGS
21
+ if /cygwin|mingw/ =~ RUBY_PLATFORM then
22
+ $LDFLAGS = "-L" << path << "/" << $LDFLAGS
23
+ end
22
24
  end
23
25
  rescue LoadError
24
26
  end
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.4.1"
3
+ s.version = "1.4.2"
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/"
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.1
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brice Videau
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-17 00:00:00.000000000 Z
11
+ date: 2017-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: narray