jl4rb 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/jl4rb/extconf.rb +1 -1
- data/ext/jl4rb/jl4rb.c +5 -5
- data/jl4rb.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: addcab827fec399c6d6ed1ddc5df4b51536746ae
|
4
|
+
data.tar.gz: 68e05cd40e6a9886ec0ec5c257eacf387ecee215
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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",
|
135
|
-
return rb_str_new2(
|
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",
|
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()),
|
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
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.
|
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:
|
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
|