jl4rb 0.0.8 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/ext/jl4rb/jl4rb.c +7 -2
  3. data/jl4rb.gemspec +1 -1
  4. metadata +11 -10
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e929cf3385764af746b501d734921c074cbccf4f
4
- data.tar.gz: f5387bf0415d045b46439036d0114d14203a85ed
3
+ metadata.gz: aa762020a0d0b5213c4d62447f70eeeebb9b0739
4
+ data.tar.gz: e671f5d40a569ee2c420bbcf0bda2100ae977ff8
5
5
  SHA512:
6
- metadata.gz: 29aca66684e83a3a9af692c15291a158807fffec0fd508d743c10d8d81bb782cc598ac6c87c280728c936178c3a5a0a78ad710d1cbdd938a3dac86b8782f11ee
7
- data.tar.gz: b072b84b462859d8614a3249e9376c4d74274f68bbbf31101ddf4e620ebd85169ad33fe8c9847c11aeb8a604522bd043293e79ef5179065aee38ff7f9b02d282
6
+ metadata.gz: 9062b693634f2c18105ec3b44a92e640f1f5bf9932e36f52a8169f995d5759759cbea88e48030656c9af819af79e61b6ff433868de50b8b13ab423326ca0aea7
7
+ data.tar.gz: 5ffec378260ad258b1d64bf3d2c1b97b878e4ad0e76f31e09d0dc70cfdde88ea147973fde518a0df2bb9318ee6c072391376790ddd95aae62e4c1f59e9b119ea
@@ -20,6 +20,7 @@
20
20
  //#undef T_FLOAT
21
21
  #undef NORETURN
22
22
  #include "ruby.h"
23
+ #include "ruby/version.h"
23
24
 
24
25
  #define length(a) jl_array_size(a,0)
25
26
 
@@ -50,10 +51,10 @@ VALUE Julia_init(VALUE obj, VALUE args)
50
51
  // #endif
51
52
  //#ifdef WITH_JULIA_RELEASE
52
53
  if(strcmp(julia_home_dir,"")==0) {
53
- jl_init(NULL);
54
+ jl_init(); //(NULL);
54
55
  //JL_SET_STACK_BASE;
55
56
  } else {
56
- jl_init(julia_home_dir);
57
+ jl_init(); //(julia_home_dir);
57
58
  //JL_SET_STACK_BASE;
58
59
  }
59
60
  //#else
@@ -325,7 +326,11 @@ jl_value_t* util_VALUE_to_jl_value(VALUE arr)
325
326
  elt=jl_box_float64(NUM2DBL(rb_ary_entry(arr,i)));
326
327
  jl_arrayset(ans,elt,i);
327
328
  }
329
+ #if RUBY_API_VERSION_CODE >= 20400
330
+ } else if(class==rb_cInteger) {
331
+ #else
328
332
  } else if(class==rb_cFixnum || class==rb_cBignum) {
333
+ #endif
329
334
  //ans=jl_alloc_array_1d(jl_long_type,n);
330
335
  for(i=0;i<n;i++) {
331
336
  elt=jl_box_long(NUM2INT(rb_ary_entry(arr,i)));
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
  require 'rubygems/package_task'
3
3
 
4
4
  PKG_NAME='jl4rb'
5
- PKG_VERSION='0.0.8'
5
+ PKG_VERSION='0.0.10'
6
6
  PKG_FILES=FileList[
7
7
  'Rakefile','jl4rb.gemspec',
8
8
  'ext/jl4rb/*.c',
metadata CHANGED
@@ -1,17 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jl4rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - CQLS
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-11 00:00:00.000000000 Z
11
+ date: 2017-10-11 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: |
14
- R is embedded in ruby with some communication support .
13
+ description: 'R is embedded in ruby with some communication support .
14
+
15
+ '
15
16
  email: rdrouilh@gmail.com
16
17
  executables: []
17
18
  extensions:
@@ -19,10 +20,10 @@ extensions:
19
20
  extra_rdoc_files: []
20
21
  files:
21
22
  - Rakefile
22
- - jl4rb.gemspec
23
- - ext/jl4rb/jl4rb.c
24
- - ext/jl4rb/extconf.rb
25
23
  - ext/jl4rb/MANIFEST
24
+ - ext/jl4rb/extconf.rb
25
+ - ext/jl4rb/jl4rb.c
26
+ - jl4rb.gemspec
26
27
  - lib/jl4rb.rb
27
28
  - lib/jl4rb/jl2rb_eval.rb
28
29
  - lib/jl4rb/jl2rb_init.rb
@@ -41,18 +42,18 @@ require_paths:
41
42
  - ext/jl4rb
42
43
  required_ruby_version: !ruby/object:Gem::Requirement
43
44
  requirements:
44
- - - '>='
45
+ - - ">="
45
46
  - !ruby/object:Gem::Version
46
47
  version: '0'
47
48
  required_rubygems_version: !ruby/object:Gem::Requirement
48
49
  requirements:
49
- - - '>='
50
+ - - ">="
50
51
  - !ruby/object:Gem::Version
51
52
  version: '0'
52
53
  requirements:
53
54
  - none
54
55
  rubyforge_project:
55
- rubygems_version: 2.0.14.1
56
+ rubygems_version: 2.6.13
56
57
  signing_key:
57
58
  specification_version: 4
58
59
  summary: Julia for ruby