iruby 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ubuntu.yml +62 -0
- data/CHANGES +24 -0
- data/Gemfile +0 -2
- data/LICENSE +1 -1
- data/README.md +66 -62
- data/Rakefile +10 -10
- data/ci/Dockerfile.main.erb +1 -3
- data/iruby.gemspec +13 -19
- data/lib/iruby.rb +2 -6
- data/lib/iruby/backend.rb +19 -5
- data/lib/iruby/display.rb +57 -41
- data/lib/iruby/formatter.rb +3 -3
- data/lib/iruby/input.rb +6 -6
- data/lib/iruby/input/autoload.rb +1 -1
- data/lib/iruby/input/builder.rb +4 -4
- data/lib/iruby/input/button.rb +2 -2
- data/lib/iruby/input/cancel.rb +1 -1
- data/lib/iruby/input/checkbox.rb +3 -3
- data/lib/iruby/input/date.rb +3 -3
- data/lib/iruby/input/field.rb +2 -2
- data/lib/iruby/input/file.rb +3 -3
- data/lib/iruby/input/form.rb +6 -6
- data/lib/iruby/input/label.rb +4 -4
- data/lib/iruby/input/multiple.rb +10 -10
- data/lib/iruby/input/popup.rb +2 -2
- data/lib/iruby/input/radio.rb +6 -6
- data/lib/iruby/input/select.rb +8 -8
- data/lib/iruby/input/textarea.rb +1 -1
- data/lib/iruby/input/widget.rb +2 -2
- data/lib/iruby/jupyter.rb +1 -0
- data/lib/iruby/kernel.rb +18 -13
- data/lib/iruby/ostream.rb +22 -10
- data/lib/iruby/session_adapter.rb +1 -3
- data/lib/iruby/session_adapter/pyzmq_adapter.rb +11 -10
- data/lib/iruby/utils.rb +4 -0
- data/lib/iruby/version.rb +1 -1
- data/run-test.sh +1 -1
- data/test/helper.rb +90 -0
- data/test/integration_test.rb +1 -2
- data/test/iruby/backend_test.rb +37 -0
- data/test/iruby/command_test.rb +0 -1
- data/test/iruby/jupyter_test.rb +0 -1
- data/test/iruby/mime_test.rb +32 -0
- data/test/iruby/multi_logger_test.rb +0 -1
- data/test/iruby/session_adapter/cztop_adapter_test.rb +1 -1
- data/test/iruby/session_adapter/ffirzmq_adapter_test.rb +1 -1
- data/test/iruby/session_adapter/session_adapter_test_base.rb +1 -3
- data/test/iruby/session_adapter_test.rb +42 -67
- data/test/iruby/session_test.rb +9 -15
- data/test/run-test.rb +18 -0
- metadata +68 -64
- data/.travis.yml +0 -41
- data/CONTRIBUTORS +0 -19
- data/lib/iruby/session/rbczmq.rb +0 -72
- data/lib/iruby/session_adapter/rbczmq_adapter.rb +0 -33
- data/test/iruby/session_adapter/rbczmq_adapter_test.rb +0 -37
- data/test/test_helper.rb +0 -48
data/test/integration_test.rb
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
require 'test_helper'
|
2
1
|
require 'pty'
|
3
2
|
require 'expect'
|
4
3
|
|
@@ -33,7 +32,7 @@ class IRubyTest::IntegrationTest < IRubyTest::TestBase
|
|
33
32
|
end
|
34
33
|
|
35
34
|
def test_interaction
|
36
|
-
|
35
|
+
omit("This test too much unstable")
|
37
36
|
|
38
37
|
write '"Hello, world!"'
|
39
38
|
expect '"Hello, world!"'
|
@@ -0,0 +1,37 @@
|
|
1
|
+
module IRubyTest
|
2
|
+
class PlainBackendTest < IRubyTest::TestBase
|
3
|
+
def setup
|
4
|
+
@plainbackend = IRuby::PlainBackend.new
|
5
|
+
end
|
6
|
+
|
7
|
+
def test_eval_one_plus_two
|
8
|
+
assert_equal 3, @plainbackend.eval('1+2', false)
|
9
|
+
end
|
10
|
+
|
11
|
+
def test_complete_req
|
12
|
+
assert_includes @plainbackend.complete('req'), 'require'
|
13
|
+
end
|
14
|
+
|
15
|
+
def test_complete_2_dot
|
16
|
+
assert_includes @plainbackend.complete('2.'), '2.even?'
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
class PryBackendTest < IRubyTest::TestBase
|
21
|
+
def setup
|
22
|
+
@prybackend = IRuby::PryBackend.new
|
23
|
+
end
|
24
|
+
|
25
|
+
def test_eval_one_plus_two
|
26
|
+
assert_equal 3, @prybackend.eval('1+2', false)
|
27
|
+
end
|
28
|
+
|
29
|
+
def test_complete_req
|
30
|
+
assert_includes @prybackend.complete('req'), 'require'
|
31
|
+
end
|
32
|
+
|
33
|
+
def test_complete_2_dot
|
34
|
+
assert_includes @prybackend.complete('2.'), '2.even?'
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
data/test/iruby/command_test.rb
CHANGED
data/test/iruby/jupyter_test.rb
CHANGED
@@ -0,0 +1,32 @@
|
|
1
|
+
class IRubyTest::MimeTest < IRubyTest::TestBase
|
2
|
+
sub_test_case("IRuby::Display") do
|
3
|
+
def test_display_with_mime_type
|
4
|
+
html = "<b>Bold Text</b>"
|
5
|
+
|
6
|
+
obj = Object.new
|
7
|
+
obj.define_singleton_method(:to_s) { html }
|
8
|
+
|
9
|
+
res = IRuby::Display.display(obj, mime: "text/html")
|
10
|
+
assert_equal({ plain: obj.inspect, html: html },
|
11
|
+
{ plain: res["text/plain"], html: res["text/html"] })
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
sub_test_case("Rendering a file") do
|
16
|
+
def setup
|
17
|
+
@html = "<b>Bold Text</b>"
|
18
|
+
Dir.mktmpdir do |tmpdir|
|
19
|
+
@file = File.join(tmpdir, "test.html")
|
20
|
+
File.write(@file, @html)
|
21
|
+
yield
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
def test_display
|
26
|
+
File.open(@file, "rb") do |f|
|
27
|
+
res = IRuby::Display.display(f)
|
28
|
+
assert_equal(@html, res["text/html"])
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -1,5 +1,3 @@
|
|
1
|
-
require 'test_helper'
|
2
|
-
|
3
1
|
module IRubyTest
|
4
2
|
class SessionAdapterTestBase < TestBase
|
5
3
|
# https://jupyter-client.readthedocs.io/en/stable/kernels.html#connection-files
|
@@ -22,7 +20,7 @@ module IRubyTest
|
|
22
20
|
@session_adapter = adapter_class.new(@config)
|
23
21
|
|
24
22
|
unless adapter_class.available?
|
25
|
-
|
23
|
+
omit("#{@session_adapter.name} is unavailable")
|
26
24
|
end
|
27
25
|
end
|
28
26
|
end
|
@@ -1,5 +1,3 @@
|
|
1
|
-
require 'test_helper'
|
2
|
-
|
3
1
|
module IRubyTest
|
4
2
|
class SessionAdapterTest < TestBase
|
5
3
|
def test_available_p_return_false_when_load_error
|
@@ -12,76 +10,49 @@ module IRubyTest
|
|
12
10
|
refute subclass.available?
|
13
11
|
end
|
14
12
|
|
15
|
-
def test_select_adapter_class_with_rbczmq
|
16
|
-
IRuby::SessionAdapter::RbczmqAdapter.stub :available?, true do
|
17
|
-
IRuby::SessionAdapter::CztopAdapter.stub :available?, false do
|
18
|
-
IRuby::SessionAdapter::FfirzmqAdapter.stub :available?, false do
|
19
|
-
IRuby::SessionAdapter::PyzmqAdapter.stub :available?, false do
|
20
|
-
cls = IRuby::SessionAdapter.select_adapter_class
|
21
|
-
assert_equal IRuby::SessionAdapter::RbczmqAdapter, cls
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
27
|
-
|
28
13
|
def test_select_adapter_class_with_cztop
|
29
|
-
|
30
|
-
IRuby::SessionAdapter::
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
end
|
37
|
-
end
|
14
|
+
assert_rr do
|
15
|
+
stub(IRuby::SessionAdapter::CztopAdapter).available? { true }
|
16
|
+
stub(IRuby::SessionAdapter::FfirzmqAdapter).available? { false }
|
17
|
+
stub(IRuby::SessionAdapter::PyzmqAdapter).available? { false }
|
18
|
+
|
19
|
+
cls = IRuby::SessionAdapter.select_adapter_class
|
20
|
+
assert_equal IRuby::SessionAdapter::CztopAdapter, cls
|
38
21
|
end
|
39
22
|
end
|
40
23
|
|
41
24
|
def test_select_adapter_class_with_ffirzmq
|
42
|
-
|
43
|
-
IRuby::SessionAdapter::
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
end
|
50
|
-
end
|
25
|
+
assert_rr do
|
26
|
+
stub(IRuby::SessionAdapter::FfirzmqAdapter).available? { true }
|
27
|
+
stub(IRuby::SessionAdapter::CztopAdapter).available? { false }
|
28
|
+
stub(IRuby::SessionAdapter::PyzmqAdapter).available? { false }
|
29
|
+
|
30
|
+
cls = IRuby::SessionAdapter.select_adapter_class
|
31
|
+
assert_equal IRuby::SessionAdapter::FfirzmqAdapter, cls
|
51
32
|
end
|
52
33
|
end
|
53
34
|
|
54
35
|
def test_select_adapter_class_with_pyzmq
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
assert_equal IRuby::SessionAdapter::PyzmqAdapter, cls
|
61
|
-
end
|
62
|
-
end
|
63
|
-
end
|
64
|
-
end
|
65
|
-
end
|
66
|
-
def test_select_adapter_class_with_env
|
67
|
-
with_env('IRUBY_SESSION_ADAPTER' => 'rbczmq') do
|
68
|
-
IRuby::SessionAdapter::RbczmqAdapter.stub :available?, true do
|
69
|
-
assert_equal IRuby::SessionAdapter::RbczmqAdapter, IRuby::SessionAdapter.select_adapter_class
|
70
|
-
end
|
36
|
+
omit("pyzmq adapter is disabled")
|
37
|
+
assert_rr do
|
38
|
+
stub(IRuby::SessionAdapter::PyzmqAdapter).available? { true }
|
39
|
+
stub(IRuby::SessionAdapter::FfirzmqAdapter).available? { false }
|
40
|
+
stub(IRuby::SessionAdapter::CztopAdapter).available? { false }
|
71
41
|
|
72
|
-
IRuby::SessionAdapter
|
73
|
-
|
74
|
-
IRuby::SessionAdapter.select_adapter_class
|
75
|
-
end
|
76
|
-
end
|
42
|
+
cls = IRuby::SessionAdapter.select_adapter_class
|
43
|
+
assert_equal IRuby::SessionAdapter::PyzmqAdapter, cls
|
77
44
|
end
|
45
|
+
end
|
78
46
|
|
47
|
+
def test_select_adapter_class_with_env
|
79
48
|
with_env('IRUBY_SESSION_ADAPTER' => 'cztop') do
|
80
|
-
|
49
|
+
assert_rr do
|
50
|
+
stub(IRuby::SessionAdapter::CztopAdapter).available? { true }
|
81
51
|
assert_equal IRuby::SessionAdapter::CztopAdapter, IRuby::SessionAdapter.select_adapter_class
|
82
52
|
end
|
83
53
|
|
84
|
-
|
54
|
+
assert_rr do
|
55
|
+
stub(IRuby::SessionAdapter::CztopAdapter).available? { false }
|
85
56
|
assert_raises IRuby::SessionAdapterNotFound do
|
86
57
|
IRuby::SessionAdapter.select_adapter_class
|
87
58
|
end
|
@@ -89,11 +60,13 @@ module IRubyTest
|
|
89
60
|
end
|
90
61
|
|
91
62
|
with_env('IRUBY_SESSION_ADAPTER' => 'ffi-rzmq') do
|
92
|
-
|
63
|
+
assert_rr do
|
64
|
+
stub(IRuby::SessionAdapter::FfirzmqAdapter).available? { true }
|
93
65
|
assert_equal IRuby::SessionAdapter::FfirzmqAdapter, IRuby::SessionAdapter.select_adapter_class
|
94
66
|
end
|
95
67
|
|
96
|
-
|
68
|
+
assert_rr do
|
69
|
+
stub(IRuby::SessionAdapter::FfirzmqAdapter).available? { false }
|
97
70
|
assert_raises IRuby::SessionAdapterNotFound do
|
98
71
|
IRuby::SessionAdapter.select_adapter_class
|
99
72
|
end
|
@@ -101,15 +74,17 @@ module IRubyTest
|
|
101
74
|
end
|
102
75
|
|
103
76
|
with_env('IRUBY_SESSION_ADAPTER' => 'pyzmq') do
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
77
|
+
# pyzmq adapter is disabled
|
78
|
+
#
|
79
|
+
# IRuby::SessionAdapter::PyzmqAdapter.stub :available?, true do
|
80
|
+
# assert_equal IRuby::SessionAdapter::PyzmqAdapter, IRuby::SessionAdapter.select_adapter_class
|
81
|
+
# end
|
82
|
+
#
|
83
|
+
# IRuby::SessionAdapter::PyzmqAdapter.stub :available?, false do
|
84
|
+
# assert_raises IRuby::SessionAdapterNotFound do
|
85
|
+
# IRuby::SessionAdapter.select_adapter_class
|
86
|
+
# end
|
87
|
+
# end
|
113
88
|
end
|
114
89
|
end
|
115
90
|
end
|
data/test/iruby/session_test.rb
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
require 'test_helper'
|
2
|
-
|
3
1
|
module IRubyTest
|
4
2
|
class SessionAdapterSelectionTest < TestBase
|
5
3
|
def setup
|
@@ -22,14 +20,13 @@ module IRubyTest
|
|
22
20
|
adapter_class = case adapter_name
|
23
21
|
when 'cztop'
|
24
22
|
IRuby::SessionAdapter::CztopAdapter
|
25
|
-
when 'rbczmq'
|
26
|
-
IRuby::SessionAdapter::RbczmqAdapter
|
27
23
|
when 'ffi-rzmq'
|
28
24
|
IRuby::SessionAdapter::FfirzmqAdapter
|
29
25
|
when 'pyzmq'
|
30
|
-
|
26
|
+
omit("pyzmq adapter is disabled")
|
27
|
+
# IRuby::SessionAdapter::PyzmqAdapter
|
31
28
|
else
|
32
|
-
flunk "Unknown session adapter: #{adapter_name}"
|
29
|
+
flunk "Unknown session adapter: #{adapter_name.inspect}"
|
33
30
|
end
|
34
31
|
|
35
32
|
session = IRuby::Session.new(@session_config, adapter_name)
|
@@ -37,15 +34,12 @@ module IRubyTest
|
|
37
34
|
end
|
38
35
|
|
39
36
|
def test_without_any_session_adapter
|
40
|
-
|
41
|
-
IRuby::SessionAdapter::
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
end
|
47
|
-
end
|
48
|
-
end
|
37
|
+
assert_rr do
|
38
|
+
stub(IRuby::SessionAdapter::CztopAdapter).available? { false }
|
39
|
+
stub(IRuby::SessionAdapter::FfirzmqAdapter).available? { false }
|
40
|
+
stub(IRuby::SessionAdapter::PyzmqAdapter).available? { false }
|
41
|
+
assert_raises IRuby::SessionAdapterNotFound do
|
42
|
+
IRuby::Session.new(@session_config)
|
49
43
|
end
|
50
44
|
end
|
51
45
|
end
|
data/test/run-test.rb
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
$VERBOSE = true
|
4
|
+
|
5
|
+
require "pathname"
|
6
|
+
|
7
|
+
base_dir = Pathname.new(__dir__).parent.expand_path
|
8
|
+
|
9
|
+
lib_dir = base_dir + "lib"
|
10
|
+
test_dir = base_dir + "test"
|
11
|
+
|
12
|
+
$LOAD_PATH.unshift(lib_dir.to_s)
|
13
|
+
|
14
|
+
require_relative "helper"
|
15
|
+
|
16
|
+
ENV["TEST_UNIT_MAX_DIFF_TARGET_STRING_SIZE"] ||= "10000"
|
17
|
+
|
18
|
+
exit Test::Unit::AutoRunner.run(true, test_dir)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Mendler
|
@@ -9,36 +9,36 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2021-03-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
15
|
+
name: bond
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - "
|
18
|
+
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '0'
|
21
|
-
type: :
|
20
|
+
version: '0.5'
|
21
|
+
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- - "
|
25
|
+
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: '0'
|
27
|
+
version: '0.5'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
|
-
name:
|
29
|
+
name: data_uri
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- - "
|
32
|
+
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: '0'
|
35
|
-
type: :
|
34
|
+
version: '0.1'
|
35
|
+
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- - "
|
39
|
+
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: '0'
|
41
|
+
version: '0.1'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: ffi-rzmq
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
@@ -46,7 +46,7 @@ dependencies:
|
|
46
46
|
- - ">="
|
47
47
|
- !ruby/object:Gem::Version
|
48
48
|
version: '0'
|
49
|
-
type: :
|
49
|
+
type: :runtime
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
@@ -54,77 +54,90 @@ dependencies:
|
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: '0'
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
|
-
name:
|
57
|
+
name: mime-types
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
60
|
- - ">="
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version:
|
63
|
-
type: :
|
62
|
+
version: 3.3.1
|
63
|
+
type: :runtime
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
67
|
- - ">="
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version:
|
69
|
+
version: 3.3.1
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
|
-
name:
|
71
|
+
name: multi_json
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
74
|
- - "~>"
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version: '
|
76
|
+
version: '1.11'
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
81
|
- - "~>"
|
82
82
|
- !ruby/object:Gem::Version
|
83
|
-
version: '
|
83
|
+
version: '1.11'
|
84
84
|
- !ruby/object:Gem::Dependency
|
85
|
-
name:
|
85
|
+
name: pycall
|
86
86
|
requirement: !ruby/object:Gem::Requirement
|
87
87
|
requirements:
|
88
|
-
- - "
|
88
|
+
- - ">="
|
89
89
|
- !ruby/object:Gem::Version
|
90
|
-
version:
|
91
|
-
type: :
|
90
|
+
version: 1.2.1
|
91
|
+
type: :development
|
92
92
|
prerelease: false
|
93
93
|
version_requirements: !ruby/object:Gem::Requirement
|
94
94
|
requirements:
|
95
|
-
- - "
|
95
|
+
- - ">="
|
96
96
|
- !ruby/object:Gem::Version
|
97
|
-
version:
|
97
|
+
version: 1.2.1
|
98
98
|
- !ruby/object:Gem::Dependency
|
99
|
-
name:
|
99
|
+
name: rake
|
100
100
|
requirement: !ruby/object:Gem::Requirement
|
101
101
|
requirements:
|
102
|
-
- - "
|
102
|
+
- - ">="
|
103
103
|
- !ruby/object:Gem::Version
|
104
|
-
version: '0
|
105
|
-
type: :
|
104
|
+
version: '0'
|
105
|
+
type: :development
|
106
106
|
prerelease: false
|
107
107
|
version_requirements: !ruby/object:Gem::Requirement
|
108
108
|
requirements:
|
109
|
-
- - "
|
109
|
+
- - ">="
|
110
110
|
- !ruby/object:Gem::Version
|
111
|
-
version: '0
|
111
|
+
version: '0'
|
112
112
|
- !ruby/object:Gem::Dependency
|
113
|
-
name:
|
113
|
+
name: test-unit
|
114
114
|
requirement: !ruby/object:Gem::Requirement
|
115
115
|
requirements:
|
116
|
-
- - "
|
116
|
+
- - ">="
|
117
117
|
- !ruby/object:Gem::Version
|
118
|
-
version: '0
|
119
|
-
type: :
|
118
|
+
version: '0'
|
119
|
+
type: :development
|
120
120
|
prerelease: false
|
121
121
|
version_requirements: !ruby/object:Gem::Requirement
|
122
122
|
requirements:
|
123
|
-
- - "
|
123
|
+
- - ">="
|
124
124
|
- !ruby/object:Gem::Version
|
125
|
-
version: '0
|
126
|
-
|
127
|
-
|
125
|
+
version: '0'
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: test-unit-rr
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
requirements:
|
130
|
+
- - ">="
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: '0'
|
133
|
+
type: :development
|
134
|
+
prerelease: false
|
135
|
+
version_requirements: !ruby/object:Gem::Requirement
|
136
|
+
requirements:
|
137
|
+
- - ">="
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
version: '0'
|
140
|
+
description: A Ruby kernel for Jupyter environment. Try it at try.jupyter.org.
|
128
141
|
email:
|
129
142
|
- mail@daniel-mendler.de
|
130
143
|
executables:
|
@@ -132,10 +145,9 @@ executables:
|
|
132
145
|
extensions: []
|
133
146
|
extra_rdoc_files: []
|
134
147
|
files:
|
148
|
+
- ".github/workflows/ubuntu.yml"
|
135
149
|
- ".gitignore"
|
136
|
-
- ".travis.yml"
|
137
150
|
- CHANGES
|
138
|
-
- CONTRIBUTORS
|
139
151
|
- Gemfile
|
140
152
|
- LICENSE
|
141
153
|
- README.md
|
@@ -184,12 +196,10 @@ files:
|
|
184
196
|
- lib/iruby/session/cztop.rb
|
185
197
|
- lib/iruby/session/ffi_rzmq.rb
|
186
198
|
- lib/iruby/session/mixin.rb
|
187
|
-
- lib/iruby/session/rbczmq.rb
|
188
199
|
- lib/iruby/session_adapter.rb
|
189
200
|
- lib/iruby/session_adapter/cztop_adapter.rb
|
190
201
|
- lib/iruby/session_adapter/ffirzmq_adapter.rb
|
191
202
|
- lib/iruby/session_adapter/pyzmq_adapter.rb
|
192
|
-
- lib/iruby/session_adapter/rbczmq_adapter.rb
|
193
203
|
- lib/iruby/utils.rb
|
194
204
|
- lib/iruby/version.rb
|
195
205
|
- logo/logo-32x32.png
|
@@ -197,32 +207,24 @@ files:
|
|
197
207
|
- logo/ruby.svg
|
198
208
|
- run-test.sh
|
199
209
|
- tasks/ci.rake
|
210
|
+
- test/helper.rb
|
200
211
|
- test/integration_test.rb
|
212
|
+
- test/iruby/backend_test.rb
|
201
213
|
- test/iruby/command_test.rb
|
202
214
|
- test/iruby/jupyter_test.rb
|
215
|
+
- test/iruby/mime_test.rb
|
203
216
|
- test/iruby/multi_logger_test.rb
|
204
217
|
- test/iruby/session_adapter/cztop_adapter_test.rb
|
205
218
|
- test/iruby/session_adapter/ffirzmq_adapter_test.rb
|
206
|
-
- test/iruby/session_adapter/rbczmq_adapter_test.rb
|
207
219
|
- test/iruby/session_adapter/session_adapter_test_base.rb
|
208
220
|
- test/iruby/session_adapter_test.rb
|
209
221
|
- test/iruby/session_test.rb
|
210
|
-
- test/
|
222
|
+
- test/run-test.rb
|
211
223
|
homepage: https://github.com/SciRuby/iruby
|
212
224
|
licenses:
|
213
225
|
- MIT
|
214
226
|
metadata: {}
|
215
|
-
post_install_message:
|
216
|
-
Consider installing the optional dependencies to get additional functionality:
|
217
|
-
* pry
|
218
|
-
* pry-doc
|
219
|
-
* awesome_print
|
220
|
-
* gnuplot
|
221
|
-
* rubyvis
|
222
|
-
* nyaplot
|
223
|
-
* cztop
|
224
|
-
* rbczmq
|
225
|
-
|
227
|
+
post_install_message:
|
226
228
|
rdoc_options: []
|
227
229
|
require_paths:
|
228
230
|
- lib
|
@@ -230,26 +232,28 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
230
232
|
requirements:
|
231
233
|
- - ">="
|
232
234
|
- !ruby/object:Gem::Version
|
233
|
-
version: 2.
|
235
|
+
version: 2.3.0
|
234
236
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
235
237
|
requirements:
|
236
238
|
- - ">="
|
237
239
|
- !ruby/object:Gem::Version
|
238
240
|
version: '0'
|
239
241
|
requirements: []
|
240
|
-
rubygems_version: 3.
|
242
|
+
rubygems_version: 3.2.3
|
241
243
|
signing_key:
|
242
244
|
specification_version: 4
|
243
|
-
summary: Ruby Kernel for Jupyter
|
245
|
+
summary: Ruby Kernel for Jupyter
|
244
246
|
test_files:
|
247
|
+
- test/helper.rb
|
245
248
|
- test/integration_test.rb
|
249
|
+
- test/iruby/backend_test.rb
|
246
250
|
- test/iruby/command_test.rb
|
247
251
|
- test/iruby/jupyter_test.rb
|
252
|
+
- test/iruby/mime_test.rb
|
248
253
|
- test/iruby/multi_logger_test.rb
|
249
254
|
- test/iruby/session_adapter/cztop_adapter_test.rb
|
250
255
|
- test/iruby/session_adapter/ffirzmq_adapter_test.rb
|
251
|
-
- test/iruby/session_adapter/rbczmq_adapter_test.rb
|
252
256
|
- test/iruby/session_adapter/session_adapter_test_base.rb
|
253
257
|
- test/iruby/session_adapter_test.rb
|
254
258
|
- test/iruby/session_test.rb
|
255
|
-
- test/
|
259
|
+
- test/run-test.rb
|