rinruby-edge 2.1.0.edge.1
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 +7 -0
- data/.appveyor.yml +68 -0
- data/.gitignore +6 -0
- data/.travis.yml +23 -0
- data/Gemfile +10 -0
- data/History.txt +66 -0
- data/LICENSE.txt +646 -0
- data/Manifest.txt +11 -0
- data/README.md +9 -0
- data/README_ORIG.md +75 -0
- data/Rakefile +18 -0
- data/lib/rinruby/version.rb +3 -0
- data/lib/rinruby.rb +1028 -0
- data/lib/rinruby_without_r_constant.rb +24 -0
- data/rinruby.gemspec +22 -0
- data/spec/rinruby_spec.rb +441 -0
- data/spec/rinruby_without_r_constant_spec.rb +9 -0
- data/spec/spec.opts +2 -0
- data/spec/spec_helper.rb +35 -0
- metadata +118 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 82c52f625eb83d2b1b4a74f89b1873a4fa78566c8ad6e480e3eb8447a639a4ea
|
4
|
+
data.tar.gz: 79eae2ff5a88dda3f7ca8940dd3de72217dd1b96263df77bbb3a13feed56124c
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: c8f3079e235840c4d0d5db8238430a0c90396f474533239a89a32adc84be3a73c05ee3884f95b0de2c0ab1d1723610d17e033ce1584352e55a2b1edf0767257c
|
7
|
+
data.tar.gz: 9a87b140ec6742d3e9a5abe43781f78adc1cf790fe03267c014ed0f6f0f7a09b846ca1d8f61726ba74ed41d4980ad44f5a7953411921bdb5f90f8c35259ef503
|
data/.appveyor.yml
ADDED
@@ -0,0 +1,68 @@
|
|
1
|
+
version: 1.0.{build}.{branch}
|
2
|
+
|
3
|
+
cache:
|
4
|
+
- vendor/bundle
|
5
|
+
|
6
|
+
environment:
|
7
|
+
matrix:
|
8
|
+
- jruby_version: 9.2.0.0
|
9
|
+
r_version: 3.5.1
|
10
|
+
- ruby_version: 25
|
11
|
+
r_version: 3.5.1
|
12
|
+
- ruby_version: 25
|
13
|
+
r_version: 3.2.5
|
14
|
+
- ruby_version: 24
|
15
|
+
r_version: 3.5.1
|
16
|
+
- ruby_version: 21
|
17
|
+
r_version: 3.5.1
|
18
|
+
|
19
|
+
install:
|
20
|
+
- cmd: >-
|
21
|
+
if not defined jruby_version set JRUBY_PROCESS=rem
|
22
|
+
|
23
|
+
%JRUBY_PROCESS% appveyor DownloadFile https://repo1.maven.org/maven2/org/jruby/jruby-dist/%jruby_version%/jruby-dist-%jruby_version%-bin.zip
|
24
|
+
|
25
|
+
%JRUBY_PROCESS% 7z x jruby-dist-%jruby_version%-bin.zip -y -o"C:\Ruby"
|
26
|
+
|
27
|
+
%JRUBY_PROCESS% set ruby_version="\jruby-%jruby_version%"
|
28
|
+
|
29
|
+
- set PATH=C:\Ruby%ruby_version%\bin;%PATH%
|
30
|
+
- cmd: >-
|
31
|
+
%JRUBY_PROCESS% gem update --system
|
32
|
+
|
33
|
+
%JRUBY_PROCESS% gem install bundler
|
34
|
+
|
35
|
+
bundle config --local path vendor/bundle
|
36
|
+
|
37
|
+
bundle install
|
38
|
+
|
39
|
+
- cmd: >-
|
40
|
+
SET r_installer=C:\R-%r_version%-win.exe
|
41
|
+
|
42
|
+
echo R installer is %r_installer%
|
43
|
+
|
44
|
+
SET r_archive=https://cran.r-project.org/bin/windows/base
|
45
|
+
|
46
|
+
appveyor DownloadFile %r_archive%/R-%r_version%-win.exe -FileName %r_installer% || appveyor DownloadFile %r_archive%/old/%r_version%/R-%r_version%-win.exe -FileName %r_installer%
|
47
|
+
|
48
|
+
echo Installing %r_installer% ... && %r_installer% /SILENT /DIR="C:\R-%r_version%"
|
49
|
+
|
50
|
+
build: off
|
51
|
+
|
52
|
+
before_test:
|
53
|
+
- if defined jruby_version ( jruby -v ) else ( ruby -v )
|
54
|
+
- gem -v
|
55
|
+
- bundle -v
|
56
|
+
|
57
|
+
test_script:
|
58
|
+
- if defined jruby_version ( bundle exec rspec %CD%\spec ) else ( bundle exec rspec )
|
59
|
+
|
60
|
+
after_test:
|
61
|
+
- cmd: >-
|
62
|
+
type nul > %APPVEYOR_REPO_COMMIT%.commit
|
63
|
+
|
64
|
+
7z a coverage.%APPVEYOR_REPO_BRANCH%.zip %APPVEYOR_BUILD_FOLDER%\coverage %APPVEYOR_REPO_COMMIT%.commit
|
65
|
+
|
66
|
+
artifacts:
|
67
|
+
- path: coverage.*.zip
|
68
|
+
name: Coverage measured by simplecov
|
data/.gitignore
ADDED
data/.travis.yml
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
language:
|
2
|
+
ruby
|
3
|
+
|
4
|
+
rvm:
|
5
|
+
- '2.5.1'
|
6
|
+
- '2.6.0'
|
7
|
+
- jruby-head
|
8
|
+
# - rbx-2.1.1
|
9
|
+
cache: bundler
|
10
|
+
script:
|
11
|
+
bundle exec rspec
|
12
|
+
|
13
|
+
before_install:
|
14
|
+
- sudo apt-get update -qq
|
15
|
+
- sudo apt-get install -y r-base r-base-dev
|
16
|
+
before_script:
|
17
|
+
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
18
|
+
- chmod +x ./cc-test-reporter
|
19
|
+
- ./cc-test-reporter before-build
|
20
|
+
after_script:
|
21
|
+
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
|
22
|
+
env:
|
23
|
+
TEST_TRAVIS=1
|
data/Gemfile
ADDED
data/History.txt
ADDED
@@ -0,0 +1,66 @@
|
|
1
|
+
=== 2.1.0 / 2018-08-19
|
2
|
+
|
3
|
+
638df01 Ruby 2.0.0 deprecated
|
4
|
+
86d2370 Omit to_signed_int() with signed pack for speed optimization
|
5
|
+
7c182ec Use native endian on Ruby side for speed optimization
|
6
|
+
ca8c9a1 Add corner case tests
|
7
|
+
555e7d2 Add logical value pull tests
|
8
|
+
312b9c9 Add logical value assign/pull
|
9
|
+
350ce77 Change type from String to String_Array when assign based on procedure
|
10
|
+
e2ce0e1 Optimize pull engine
|
11
|
+
c22f821 Separate numeric pull test into integer and float tests
|
12
|
+
1ba51e1 Add after{r.quit} to each example because of socket reusability
|
13
|
+
7f59977 Revive echo and interactive tests, and add comment of test cache
|
14
|
+
a034124 Fix to use a cached RinRuby instance
|
15
|
+
a8f4cf1 Update README.md
|
16
|
+
17baae9 Update matrix assignment test to use a large matrix
|
17
|
+
1a147fd Optimize assign_engine()
|
18
|
+
8418a65 Change string assignment scheme to accept array in a same session
|
19
|
+
8c6fd6a Add cleanup for socket when connection is persistent
|
20
|
+
0ddab52 Add persistent mode to reuse connection, which is now default.
|
21
|
+
aa7c90e Optimize performing singleton of pull returned value
|
22
|
+
1a29474 Move R socket manipulation procedure into socket_seession() on Ruby
|
23
|
+
e1b96ba Refactoring; move socket.close from each procedure to socket_session
|
24
|
+
de954ed Reduce namespace contamination by using ".RinRuby" environment
|
25
|
+
9519355 Move socketConnection() and close() to session()
|
26
|
+
59ffe63 Move rinruby R function assignment from global to base environment
|
27
|
+
13056c4 Change socket connection scheme for GC resistance
|
28
|
+
97cf371 Perform communication via #{RinRuby_Socket}.write and read functions
|
29
|
+
0a2b411 Remove duplication by using dummy R constant temporary
|
30
|
+
964d0ae Improve possibility to find R by using regtool on cygwin
|
31
|
+
89b7304 Add the R wrapper class without R constant
|
32
|
+
bba176b Add a safety net when Windows R is not registered in registry
|
33
|
+
67afbe1 Internationalization; workaround for "invalid byte sequence in UTF-8"
|
34
|
+
61d0817 Change registry search query because of structure change of R3.4.3
|
35
|
+
9433299 Change strategy to find R executable for cygwin-windows
|
36
|
+
2515984 Error in README.md example code
|
37
|
+
8ff82c1 Markdownify README.md
|
38
|
+
e09cc95 Rename README.txt to README.md
|
39
|
+
1b05f3e added support for bundler and gemspec
|
40
|
+
|
41
|
+
=== 2.0.3 / 2012-07-31
|
42
|
+
* Update README.txt
|
43
|
+
|
44
|
+
=== 2.0.2 / 2011-02-03
|
45
|
+
|
46
|
+
* Updated RSpec to 2.0. Should work on Windows [clbustos]
|
47
|
+
* 64-bit version is in x64 [Rob Heittman]
|
48
|
+
* Adapt to different Rterm.exe locations [Rob Heittman]
|
49
|
+
|
50
|
+
=== 2.0.1 / 2010-05-01
|
51
|
+
* Reimplemented Rinruby.new with ordered parameters, for complete backwards compatibility
|
52
|
+
|
53
|
+
=== 2.0.0 / 2010-04-26
|
54
|
+
* Changed RinRuby initialize, with option Hash instead of ordered parameters.
|
55
|
+
|
56
|
+
=== 1.2.0 / 2010-04-23
|
57
|
+
|
58
|
+
* Fixed to works on Ruby 1.9
|
59
|
+
* Pull and push of Matrixes
|
60
|
+
* Faster implementation using functions on R sended at beginning of session
|
61
|
+
* Regression tests and specifications via RSpec
|
62
|
+
|
63
|
+
=== 1.1.1 / 2008
|
64
|
+
|
65
|
+
* Last official version on RubyForge
|
66
|
+
|