R4rb 1.0.0 → 1.1.0

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 +5 -5
  2. data/R4rb.gemspec +1 -1
  3. data/ext/R4rb/R4rb.c +6 -1
  4. metadata +14 -16
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 1813c260a2bb6b3c20ddb178ab5b8ac5ff840c5e
4
- data.tar.gz: 34c1e19b403d81d8cc8bb697c60b7a7263b3bdc0
2
+ SHA256:
3
+ metadata.gz: c91842f538e4ba2118bc1b284774ff00d3c09ce2561faec8c0734ced68d6b4ae
4
+ data.tar.gz: 3d7bddd32a1ec1d3dd1bcabce5ad398a3440036aa8744b4a0c4204d601083517
5
5
  SHA512:
6
- metadata.gz: 799cfb1b41abe6d6dde3bac3e92eacd646b0be432c13b1d316780d6bfd9c803c6901b5cd3e0a69d7e90506ef7b6c7e2397f5324800641c84605add57019c38e9
7
- data.tar.gz: ba654f94c2c4eb24b74054a52becbbf0d07c45db005522cb5f8891d39c91d862c7efc1abbc6cda6e0bc2e6c102d1897635eebffe6e8224ee4320366b2448913f
6
+ metadata.gz: 3896a52935a0d5b932e4e458eb07187af2839c0a1edbfab9534d0a9d6adc0e47f5f51e00dbd7ec7a29b16c932abf0968e9bc6876c6835de3e13299eab760fde1
7
+ data.tar.gz: dbe537547e1134f8d5c0166fa7bf250749d15d66b98f0170a85cbad660c8aa6fb151f7cb143e3bee41cbb4a220efd1e603890e713a8e2cdbdd5b101f57cbcba4
data/R4rb.gemspec CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
  require 'rubygems/package_task'
3
3
 
4
4
  pkg_NAME='R4rb'
5
- pkg_VERSION='1.0.0'
5
+ pkg_VERSION='1.1.0'
6
6
  pkg_FILES=FileList[
7
7
  'Rakefile','R4rb.gemspec',
8
8
  'ext/R4rb/*.c',
data/ext/R4rb/R4rb.c CHANGED
@@ -7,6 +7,7 @@
7
7
  #include <string.h>
8
8
 
9
9
  #include "ruby.h"
10
+ #include "ruby/version.h"
10
11
  #include <R.h>
11
12
  #include <Rinternals.h>
12
13
  #include <Rdefines.h>
@@ -209,7 +210,7 @@ SEXP util_eval1string(VALUE cmd)
209
210
 
210
211
  int util_isVector(SEXP ans)
211
212
  {
212
- return (!isNewList(ans) & isVector(ans));
213
+ return ((!isNewList(ans)) & isVector(ans));
213
214
  }
214
215
 
215
216
  int util_isVariable(VALUE self)
@@ -321,7 +322,11 @@ SEXP util_VALUE2SEXP(VALUE arr)
321
322
  for(i=0;i<n;i++) {
322
323
  REAL(ans)[i]=NUM2DBL(rb_ary_entry(arr,i));
323
324
  }
325
+ #if RUBY_API_VERSION_CODE >= 20400
326
+ } else if(class==rb_cInteger) {
327
+ #else
324
328
  } else if(class==rb_cFixnum || class==rb_cBignum) {
329
+ #endif
325
330
  PROTECT(ans=allocVector(INTSXP,n));
326
331
  for(i=0;i<n;i++) {
327
332
  INTEGER(ans)[i]=NUM2INT(rb_ary_entry(arr,i));
metadata CHANGED
@@ -1,28 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: R4rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - CQLS
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-21 00:00:00.000000000 Z
11
+ date: 2021-06-15 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: |2
14
- R is embedded in ruby with some communication support .
13
+ description: " R is embedded in ruby with some communication support .\n"
15
14
  email: rdrouilh@gmail.com
16
15
  executables: []
17
16
  extensions:
18
17
  - ext/R4rb/extconf.rb
19
18
  extra_rdoc_files: []
20
19
  files:
21
- - Rakefile
22
20
  - R4rb.gemspec
21
+ - Rakefile
22
+ - ext/R4rb/MANIFEST
23
23
  - ext/R4rb/R4rb.c
24
24
  - ext/R4rb/extconf.rb
25
- - ext/R4rb/MANIFEST
26
25
  - lib/R2rb.rb
27
26
  - lib/R4rb.rb
28
27
  - lib/R4rb/R2rb_eval.rb
@@ -33,6 +32,9 @@ files:
33
32
  - lib/R4rb/init.rb
34
33
  - lib/R4rb/robj.rb
35
34
  - lib/Rserve.rb
35
+ - script/README
36
+ - script/Rserv
37
+ - script/install_Rserv
36
38
  - test/R4rbRserve.rb
37
39
  - test/compR4rbRserve.rb
38
40
  - test/test.rb
@@ -43,32 +45,28 @@ files:
43
45
  - test/testRVect.rb
44
46
  - test/testRserve.rb
45
47
  - test/test_error.rb
46
- - script/README
47
- - script/Rserv
48
- - script/install_Rserv
49
48
  homepage: http://cqls.upmf-grenoble.fr
50
49
  licenses: []
51
50
  metadata: {}
52
- post_install_message:
51
+ post_install_message:
53
52
  rdoc_options: []
54
53
  require_paths:
55
54
  - lib
56
55
  - ext/R4rb
57
56
  required_ruby_version: !ruby/object:Gem::Requirement
58
57
  requirements:
59
- - - '>='
58
+ - - ">="
60
59
  - !ruby/object:Gem::Version
61
60
  version: '0'
62
61
  required_rubygems_version: !ruby/object:Gem::Requirement
63
62
  requirements:
64
- - - '>='
63
+ - - ">="
65
64
  - !ruby/object:Gem::Version
66
65
  version: '0'
67
66
  requirements:
68
67
  - none
69
- rubyforge_project:
70
- rubygems_version: 2.0.14
71
- signing_key:
68
+ rubygems_version: 3.2.15
69
+ signing_key:
72
70
  specification_version: 4
73
71
  summary: R for ruby
74
72
  test_files: []