jl4rb 0.2.5 → 0.2.7

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
  SHA256:
3
- metadata.gz: b8b8aade7e2cc0fc2991e6352b94f47a56c7683f818373036afe32b83bb52e28
4
- data.tar.gz: 781b45f9522acb27f4422e7f6f1cc6879dda966b7f5fee0cd505d21891fd0e2a
3
+ metadata.gz: 39f1e776734ecde25df8d6e3ee1b91bc1ec602f80ea71c50f234fbb1797b7e3d
4
+ data.tar.gz: f8615146a175bb910d3979945ac61d4e52cee03728489a80a19a3575df08e623
5
5
  SHA512:
6
- metadata.gz: daabc722567025b44d986a6f033b1de3ccd31dc16059b889b987eb6fa272d752a6b258eccbb5ce484110e06c2692522c7a7a6c68950da7590eed0bc49dd349e2
7
- data.tar.gz: a4e322987a2d7f31c9bbb29353aecd0d5acdcda4ceaf11c7170b2aee892f3ec8e39d0265d93ffe345bd047d7c4cc754d3125cdfe43d71b880e401f8bf524314f
6
+ metadata.gz: 86ebed5c572ca81c4a7359f65267de8d70aa35898cf299b448d5a29dc2be120a5e92ce3c3e077d8af585225a0e77901224a8283bed4b13422ad92eaada5d8e3f
7
+ data.tar.gz: 76a7c658e9c74ac599cad5a53bf80a9b165ce5915eeac9eda0537c243bcdfad1d8d9e63e4be618cb1e7576b82b0b94568a74ad73bf9ff64c14b078d112ce8ab1
data/Rakefile CHANGED
@@ -62,8 +62,8 @@ end
62
62
  ## clean task
63
63
  desc "Remove #{File.join(PKGDIR,PKG_NAME+'-'+PKG_VERSION+'.gem')}"
64
64
  task :clean do |t|
65
- rm File.join(PKGDIR,PKG_NAME+'-'+PKG_VERSION+'.gem') if File.exists? File.join(PKGDIR,PKG_NAME+'-'+PKG_VERSION+'.gem')
66
- rm_rf File.join(PKGDIR,PKG_NAME+'-'+PKG_VERSION) if File.exists? File.join(PKGDIR,PKG_NAME+'-'+PKG_VERSION)
65
+ rm File.join(PKGDIR,PKG_NAME+'-'+PKG_VERSION+'.gem') if File.exist? File.join(PKGDIR,PKG_NAME+'-'+PKG_VERSION+'.gem')
66
+ rm_rf File.join(PKGDIR,PKG_NAME+'-'+PKG_VERSION) if File.exist? File.join(PKGDIR,PKG_NAME+'-'+PKG_VERSION)
67
67
  end
68
68
 
69
69
 
@@ -77,13 +77,13 @@ end
77
77
  desc "Quick install #{File.join(PKGDIR,PKG_NAME+'-'+PKG_VERSION+'.gem')}"
78
78
  task :install do |t|
79
79
  `gem install #{File.join(PKGDIR,PKG_NAME+'-'+PKG_VERSION+'.gem')} --local --no-rdoc --no-ri`
80
- rm_rf File.join(PKGDIR,PKG_NAME+'-'+PKG_VERSION) if File.exists? File.join(PKGDIR,PKG_NAME+'-'+PKG_VERSION)
80
+ rm_rf File.join(PKGDIR,PKG_NAME+'-'+PKG_VERSION) if File.exist? File.join(PKGDIR,PKG_NAME+'-'+PKG_VERSION)
81
81
  end
82
82
 
83
83
  desc "Docker install #{File.join(PKGDIR,PKG_NAME+'-'+PKG_VERSION+'.gem')}"
84
84
  task :docker => :package do |t|
85
85
  `gem install #{File.join(PKGDIR,PKG_NAME+'-'+PKG_VERSION+'.gem')} --local --no-rdoc --no-ri`
86
- rm_rf File.join(PKGDIR,PKG_NAME+'-'+PKG_VERSION) if File.exists? File.join(PKGDIR,PKG_NAME+'-'+PKG_VERSION)
86
+ rm_rf File.join(PKGDIR,PKG_NAME+'-'+PKG_VERSION) if File.exist? File.join(PKGDIR,PKG_NAME+'-'+PKG_VERSION)
87
87
  end
88
88
 
89
89
 
data/ext/jl4rb/extconf.rb CHANGED
@@ -5,17 +5,17 @@ $prefix_include,$prefix_lib=[],[]
5
5
  $prefix= File.dirname(`julia -e 'print(Sys.BINDIR)'`)
6
6
 
7
7
  [$prefix+"/include/julia",$prefix+"/usr/include",$prefix+"/src",$prefix+"/src/support"].each do |incl|
8
- $prefix_include << incl if File.exists? incl
8
+ $prefix_include << incl if File.exist? incl
9
9
  end
10
10
 
11
11
  ([$prefix+"/lib/julia",$prefix+"/usr/lib",$prefix+"/lib"]+(RUBY_PLATFORM=~/(?:mingw|msys)/ ? [$prefix+"/bin"] : [])).each do |lib|
12
- $prefix_lib << lib if File.exists? lib
12
+ $prefix_lib << lib if File.exist? lib
13
13
  end
14
14
 
15
15
  def jl4rb_makefile(incs,libs)
16
16
 
17
17
  jl_share=`julia -e 'print(joinpath(Sys.BINDIR, Base.DATAROOTDIR, "julia"))'`
18
- $CFLAGS =`julia #{jl_share}/julia-config.jl --cflags`.strip + " -fdeclspec"
18
+ $CFLAGS =`julia #{jl_share}/julia-config.jl --cflags`.strip + (RUBY_VERSION.split(".")[0] > "2" ? " -fdeclspec" : "")
19
19
  $LDFLAGS =`julia #{jl_share}/julia-config.jl --ldflags`.strip
20
20
  $LIBS = `julia #{jl_share}/julia-config.jl --ldlibs`.strip
21
21
 
data/jl4rb.gemspec CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
  require 'rubygems/package_task'
3
3
 
4
4
  PKG_NAME='jl4rb'
5
- PKG_VERSION='0.2.5'
5
+ PKG_VERSION='0.2.7'
6
6
  PKG_FILES=FileList[
7
7
  'Rakefile','jl4rb.gemspec',
8
8
  'ext/jl4rb/*.c',
@@ -29,5 +29,4 @@ EOF
29
29
  s.author = "CQLS"
30
30
  s.email= "rdrouilh@gmail.com"
31
31
  s.homepage = "http://cqls.upmf-grenoble.fr"
32
- s.rubyforge_project = nil
33
32
  end
data/lib/jl4rb.rb CHANGED
@@ -1,5 +1,5 @@
1
- require 'jl4rb.bundle' if File.exists? File.join(File.dirname(__FILE__),'jl4rb.bundle')
2
- require 'jl4rb.so' if File.exists? File.join(File.dirname(__FILE__),'jl4rb.so')
1
+ require 'jl4rb.bundle' if File.exist? File.join(File.dirname(__FILE__),'jl4rb.bundle')
2
+ require 'jl4rb.so' if File.exist? File.join(File.dirname(__FILE__),'jl4rb.so')
3
3
 
4
4
  p [:dl, "jl4rb.DLL loaded" ]
5
5
  # loading ruby files
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jl4rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - CQLS
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-27 00:00:00.000000000 Z
11
+ date: 2023-01-25 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: 'R is embedded in ruby with some communication support .
14
14
 
@@ -52,7 +52,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
52
52
  version: '0'
53
53
  requirements:
54
54
  - none
55
- rubygems_version: 3.3.7
55
+ rubygems_version: 3.4.5
56
56
  signing_key:
57
57
  specification_version: 4
58
58
  summary: Julia for ruby