iruby 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e79459d062bed93bf70efb95bb09bdf780556e8e
4
- data.tar.gz: ada613829e0bf0aff3d6d575d138261c613538a9
3
+ metadata.gz: ff59d2e7e7ce93a64c171bd569905ee8b2814e84
4
+ data.tar.gz: 519c13474b7a079933cb6210a213f05f6b9952dc
5
5
  SHA512:
6
- metadata.gz: 42d46f07037e41c8d91a3914dedbb5b45972d930c9daaad1c21113a7122733596f2298e4b3cdb7c6cd1197a61a89056b90e791d0789426521fbe39f118491583
7
- data.tar.gz: 552f0e8673b4f511c146333799d6850934b7fd26c792bb7c0ab45e40710b26dc4fba99a210547b1cf2a147087c905f065f4126db9ceed348670cfb117e6f8e15
6
+ metadata.gz: 4e8344b7b691f5d54f4c020b2f7df8d4f55346a81a70c188034ac6ddffed50d980d646166e6a1e991163569f0b823f2a65c4d241d034944788d0db453b5d39ac
7
+ data.tar.gz: 05eaf4106a476acca9e8b29320f2f56062f7f99a1b89c1f91fc540a8286d3e76c611806e23e47b6ff2b525ba33a4627e172b26f1c89d9562861f9cd0c66d5cd8
data/.travis.yml CHANGED
@@ -11,3 +11,6 @@ before_install:
11
11
  - "sudo pip install 'ipython[notebook]'"
12
12
 
13
13
  script: bundle exec rake
14
+
15
+ notifications:
16
+ irc: "chat.freenode.net#sciruby"
data/CHANGES CHANGED
@@ -1,3 +1,7 @@
1
+ 0.2.1
2
+
3
+ * Copy Ruby logo to kernel specification
4
+
1
5
  0.2.0
2
6
 
3
7
  * Dropped IPython2 support
data/Gemfile CHANGED
@@ -4,7 +4,6 @@ gemspec
4
4
  group :pry do
5
5
  gem 'pry'
6
6
  gem 'pry-doc'
7
- gem 'pry-theme'
8
7
  gem 'awesome_print'
9
8
  end
10
9
 
data/README.rdoc CHANGED
@@ -1,14 +1,14 @@
1
- <b>The current master branch and gem version >= 0.2 are compatible with IPython3. If you require IPython2 support, please install an older gem version < 0.2 or use the branch ipython2</b>
1
+ <b>The current master branch and gem version >= 0.2 are compatible with IPython3/Jupyter. If you require IPython2 support, please install an older gem version < 0.2 or use the branch ipython2</b>
2
2
 
3
3
  = IRuby
4
4
 
5
- This is a Ruby kernel for IPython and is part of SciRuby[http://sciruby.com/].
5
+ This is a Ruby kernel for IPython/Jupyter and is part of SciRuby[http://sciruby.com/].
6
6
 
7
7
  link:screenshot.png
8
8
 
9
9
  === Quick start
10
10
 
11
- At first install IPython. I recommend an installation using virtualenv.
11
+ At first install IPython/Jupyter. I recommend an installation using virtualenv.
12
12
 
13
13
  apt-get install python3-dev virtualenv libzmq3-dev
14
14
  virtualenv -p python3 venv
@@ -28,7 +28,7 @@ Take a look at the Example[http://nbviewer.ipython.org/urls/raw.github.com/SciRu
28
28
 
29
29
  === Required dependencies
30
30
 
31
- * IPython >= 3.0.0
31
+ * IPython/Jupyter >= 3.0.0
32
32
  * libzmq >= 3.2
33
33
  * Ruby >= 2.0.0
34
34
 
data/bin/iruby CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- $:.unshift File.dirname(__FILE__) + '/../lib'
3
+ $:.unshift File.expand_path(__dir__ + '/../lib')
4
4
  require 'iruby/command'
5
5
  IRuby::Command.new(ARGV).run
data/lib/iruby/command.rb CHANGED
@@ -1,3 +1,5 @@
1
+ require 'fileutils'
2
+
1
3
  module IRuby
2
4
  class Command
3
5
  def initialize(args)
@@ -8,7 +10,8 @@ module IRuby
8
10
  ipython_dir = $1 if arg =~ /\A--ipython-dir=(.*)\Z/
9
11
  end
10
12
  ipython_dir = File.expand_path(ipython_dir)
11
- @kernel_file = File.join(ipython_dir, 'kernels', 'ruby', 'kernel.json')
13
+ @kernel_dir = File.join(ipython_dir, 'kernels', 'ruby')
14
+ @kernel_file = File.join(@kernel_dir, 'kernel.json')
12
15
  end
13
16
 
14
17
  def run
@@ -38,8 +41,8 @@ module IRuby
38
41
  def print_help
39
42
  puts %{
40
43
  Usage:
41
- iruby register Register IRuby kernel into #{@kernel_file}.
42
- iruby unregister Remove #{@kernel_file}.
44
+ iruby register Register IRuby kernel in #{@kernel_file}.
45
+ iruby unregister Unregister IRuby kernel.
43
46
  iruby console Launch the IRuby terminal-based console.
44
47
  iruby notebook Launch the IRuby HTML notebook server.
45
48
  ... Same as IPython.
@@ -97,18 +100,20 @@ Try `ipython help` for more information.
97
100
  end
98
101
 
99
102
  def register_kernel
100
- require 'fileutils'
101
- FileUtils.mkpath(File.dirname(@kernel_file))
103
+ FileUtils.mkpath(@kernel_dir)
102
104
  File.write(@kernel_file, %{{
103
105
  "argv": [ "#{File.expand_path $0}", "kernel", "{connection_file}" ],
104
106
  "display_name": "Ruby",
105
107
  "language": "ruby"
106
108
  }
107
109
  })
110
+ Dir[File.join(__dir__, 'logo', 'logo-*.png')].each do |file|
111
+ FileUtils.copy(File.expand_path(file), File.join(@kernel_dir, File.basename(file))) rescue nil
112
+ end
108
113
  end
109
114
 
110
115
  def unregister_kernel
111
- File.unlink(@kernel_file)
116
+ FileUtils.rm_rf(@kernel_dir)
112
117
  end
113
118
  end
114
119
  end
Binary file
Binary file
data/lib/iruby/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module IRuby
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
Binary file
Binary file
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.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Mendler
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-05-25 00:00:00.000000000 Z
12
+ date: 2015-05-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -125,6 +125,8 @@ files:
125
125
  - lib/iruby/formatter.rb
126
126
  - lib/iruby/kernel.rb
127
127
  - lib/iruby/logger.rb
128
+ - lib/iruby/logo/logo-32x32.png
129
+ - lib/iruby/logo/logo-64x64.png
128
130
  - lib/iruby/ostream.rb
129
131
  - lib/iruby/session.rb
130
132
  - lib/iruby/utils.rb
@@ -132,6 +134,8 @@ files:
132
134
  - logo/favicon.ico
133
135
  - logo/iruby.png
134
136
  - logo/iruby.svg
137
+ - logo/logo-32x32.png
138
+ - logo/logo-64x64.png
135
139
  - logo/ruby.svg
136
140
  - screenshot.png
137
141
  - test/integration_test.rb
@@ -145,7 +149,6 @@ post_install_message: |+
145
149
  Consider installing the optional dependencies to get additional functionality:
146
150
  * pry
147
151
  * pry-doc
148
- * pry-theme
149
152
  * awesome_print
150
153
  * gnuplot
151
154
  * rubyvis