jl4rb 0.0.6 → 0.0.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
  SHA1:
3
- metadata.gz: e5aacd2c26fb35d16d65c2ee2d0157d2aab18b48
4
- data.tar.gz: 620ac50136fb24e57231814f2d494d43a6ef8577
3
+ metadata.gz: addcab827fec399c6d6ed1ddc5df4b51536746ae
4
+ data.tar.gz: 68e05cd40e6a9886ec0ec5c257eacf387ecee215
5
5
  SHA512:
6
- metadata.gz: bec8d5fcba26eaf664c8c84f70d1c505ad5dc8c06527205766c3f675b90bcfa10903f99c919b90fad9a34d546c790e12ea8bbceb2498dfa883b1e8fdf1f51698
7
- data.tar.gz: 0762631c7d61fde32c4479e634972920303d41a8b67f5ba2ab68e9fd5cde51759cc8fe6ab668145a5d3a5f611811d957eec2ed7b882dac0527e4f5376e033b09
6
+ metadata.gz: bf668882a597282434af9f2b6d4d91b12e787847cc999a5feb2befb3b4897b347eaee1d2be4b8547a2480e051ba44a19eeddf11f5f897f2edeff9225903dbd90
7
+ data.tar.gz: 71bce367966d7b13937a6fb0a339f7632667b0603300d778bd70105189d16b797e4ece3ab53467f5be5f52b6f242ac7837de1133319ebd64107decb4c9596536
data/ext/jl4rb/extconf.rb CHANGED
@@ -16,7 +16,7 @@ else
16
16
  $prefix_include << incl if File.exists? incl
17
17
  end
18
18
 
19
- ([$prefix+"/lib/julia",$prefix+"/usr/lib"]+(RUBY_PLATFORM=~/(?:mingw|msys)/ ? [$prefix+"/bin"] : [])).each do |lib|
19
+ ([$prefix+"/lib/julia",$prefix+"/usr/lib",$prefix+"/lib"]+(RUBY_PLATFORM=~/(?:mingw|msys)/ ? [$prefix+"/bin"] : [])).each do |lib|
20
20
  $prefix_lib << lib if File.exists? lib
21
21
  end
22
22
  end
data/ext/jl4rb/jl4rb.c CHANGED
@@ -129,10 +129,10 @@ VALUE jl_value_to_VALUE(jl_value_t *res) {
129
129
  return resRb;
130
130
  }
131
131
  else
132
- if(strcmp(jl_typeof_str(res),"ASCIIString")==0 || strcmp(jl_typeof_str(res),"UTF8String")==0)
132
+ if(strcmp(jl_typeof_str(res),"String")==0 || strcmp(jl_typeof_str(res),"ASCIIString")==0 || strcmp(jl_typeof_str(res),"UTF8String")==0)
133
133
  {
134
- //printf("value=%s\n",jl_bytestring_ptr(res));
135
- return rb_str_new2(jl_bytestring_ptr(res));
134
+ //printf("value=%s\n",jl_string_ptr(res));
135
+ return rb_str_new2(jl_string_ptr(res));
136
136
  }
137
137
  else
138
138
  if(strcmp(jl_typeof_str(res),"Array")==0 )
@@ -168,7 +168,7 @@ VALUE jl_value_to_VALUE(jl_value_t *res) {
168
168
  resRb=rb_str_new2("__unconverted(");
169
169
  rb_str_cat2(resRb, jl_typeof_str(res));
170
170
  rb_str_cat2(resRb, ")__\n");
171
- //printf("%s\n",jl_bytestring_ptr(jl_eval_string("\"$(ans)\"")));
171
+ //printf("%s\n",jl_string_ptr(jl_eval_string("\"$(ans)\"")));
172
172
  // jl_function_t *call=(jl_function_t*)jl_get_global(jl_base_module, jl_symbol("show"));
173
173
  // if (call) jl_call1(call,res);
174
174
  // else printf("call failed!\n");
@@ -185,7 +185,7 @@ VALUE jl_value_to_VALUE(jl_value_t *res) {
185
185
  rb_str_cat2(resRb, "(");
186
186
  rb_str_cat2(resRb,jl_typeof_str(jl_exception_occurred()));
187
187
  jl_value_t* err=jl_get_field(jl_exception_occurred(),"msg");
188
- if(err!=NULL) printf("%s: %s\n",jl_typeof_str(jl_exception_occurred()),jl_bytestring_ptr(err));
188
+ if(err!=NULL) printf("%s: %s\n",jl_typeof_str(jl_exception_occurred()),jl_string_ptr(err));
189
189
  jl_exception_clear();
190
190
  rb_str_cat2(resRb, ")");
191
191
  }
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.0.6'
5
+ PKG_VERSION='0.0.7'
6
6
  PKG_FILES=FileList[
7
7
  'Rakefile','jl4rb.gemspec',
8
8
  'ext/jl4rb/*.c',
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.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - CQLS
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-14 00:00:00.000000000 Z
11
+ date: 2017-03-09 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |
14
14
  R is embedded in ruby with some communication support .
@@ -52,7 +52,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - none
54
54
  rubyforge_project:
55
- rubygems_version: 2.0.14
55
+ rubygems_version: 2.0.14.1
56
56
  signing_key:
57
57
  specification_version: 4
58
58
  summary: Julia for ruby