dietrb 0.1.0 → 0.1.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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
data/dietrb.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{dietrb}
8
- s.version = "0.1.0"
8
+ s.version = "0.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Eloy Duran"]
@@ -26,6 +26,7 @@ Gem::Specification.new do |s|
26
26
  "dietrb.gemspec",
27
27
  "lib/irb.rb",
28
28
  "lib/irb/context.rb",
29
+ "lib/irb/ext/macruby.rb",
29
30
  "lib/irb/source.rb",
30
31
  "spec/context_spec.rb",
31
32
  "spec/source_spec.rb",
@@ -0,0 +1,15 @@
1
+ framework 'AppKit'
2
+
3
+ module IRB
4
+ class Context
5
+ alias_method :_run, :run
6
+
7
+ def run
8
+ Thread.new do
9
+ _run
10
+ NSApplication.sharedApplication.terminate(self)
11
+ end
12
+ NSApplication.sharedApplication.run
13
+ end
14
+ end
15
+ end
data/lib/irb.rb CHANGED
@@ -1,2 +1,6 @@
1
1
  require 'irb/context'
2
- require 'irb/source'
2
+ require 'irb/source'
3
+
4
+ if defined?(RUBY_ENGINE) && RUBY_ENGINE == "macruby"
5
+ require 'irb/ext/macruby'
6
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dietrb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eloy Duran
@@ -30,6 +30,7 @@ files:
30
30
  - dietrb.gemspec
31
31
  - lib/irb.rb
32
32
  - lib/irb/context.rb
33
+ - lib/irb/ext/macruby.rb
33
34
  - lib/irb/source.rb
34
35
  - spec/context_spec.rb
35
36
  - spec/source_spec.rb