From b986a624b4e610aaef9e5351ed32f141e1706192 Mon Sep 17 00:00:00 2001 From: kojix2 <2xijok@gmail.com> Date: Sun, 1 Dec 2019 13:10:17 +0900 Subject: [PATCH 1/3] Add ffi-rzmq to runtime dependency in gemspec --- iruby.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iruby.gemspec b/iruby.gemspec index 69b229e..6d8c3a7 100644 --- a/iruby.gemspec +++ b/iruby.gemspec @@ -21,9 +21,9 @@ Gem::Specification.new do |s| s.add_dependency 'multi_json', '~> 1.11' s.add_dependency 'mimemagic', '~> 0.3' s.add_dependency 'data_uri', '~> 0.1' + s.add_dependency 'ffi-rzmq' s.add_development_dependency 'rake' s.add_development_dependency 'minitest' - s.add_development_dependency 'ffi-rzmq' s.add_development_dependency 'pycall', '>= 1.2.1' end From 6166ce8b778990bf13c24e2ebbf4bcd8386f7d70 Mon Sep 17 00:00:00 2001 From: kojix2 <2xijok@gmail.com> Date: Sun, 1 Dec 2019 13:13:38 +0900 Subject: [PATCH 2/3] Clearned gemspec --- iruby.gemspec | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/iruby.gemspec b/iruby.gemspec index 6d8c3a7..20b50f0 100644 --- a/iruby.gemspec +++ b/iruby.gemspec @@ -10,20 +10,20 @@ Gem::Specification.new do |s| s.homepage = 'https://github.com/SciRuby/iruby' s.license = 'MIT' - s.files = `git ls-files`.split($/) + s.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR) s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) } s.test_files = s.files.grep(%r{^test/}) - s.require_paths = %w(lib) + s.require_paths = %w[lib] s.required_ruby_version = '>= 2.3.0' s.add_dependency 'bond', '~> 0.5' - s.add_dependency 'multi_json', '~> 1.11' - s.add_dependency 'mimemagic', '~> 0.3' s.add_dependency 'data_uri', '~> 0.1' s.add_dependency 'ffi-rzmq' + s.add_dependency 'mimemagic', '~> 0.3' + s.add_dependency 'multi_json', '~> 1.11' - s.add_development_dependency 'rake' s.add_development_dependency 'minitest' s.add_development_dependency 'pycall', '>= 1.2.1' + s.add_development_dependency 'rake' end From 2394e34489b3822cab2f8d0c731cc79626873646 Mon Sep 17 00:00:00 2001 From: kojix2 <2xijok@gmail.com> Date: Sun, 1 Dec 2019 13:22:55 +0900 Subject: [PATCH 3/3] Update README --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index a99bba3..24c0ca8 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,11 @@ IRuby is a Ruby kernel for [Jupyter project](http://try.jupyter.org/). * [ffi-rzmq](https://github.com/chuckremes/ffi-rzmq) and [libzmq](https://github.com/zeromq/libzmq) * [CZTop](https://gitlab.com/paddor/cztop) and [CZMQ](https://github.com/zeromq/czmq) +If both ffi-rzmq and cztop are installed, ffi-rzmq is used. If you prefer cztop, set the following environment variable. +```sh +export IRUBY_SESSION_ADAPTER="cztop" +``` + We recommend the [Pry](https://github.com/pry/pry) backend for full functionality. ### Ubuntu