irby 1.0.1 → 1.1.0

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.
Files changed (5) hide show
  1. data/README.md +12 -8
  2. data/Rakefile +1 -1
  3. data/VERSION +1 -1
  4. data/lib/irby.rb +4 -1
  5. metadata +2 -2
data/README.md CHANGED
@@ -1,7 +1,8 @@
1
1
  IRBy
2
2
  ======
3
3
 
4
- The IRBy allows you to start irb super quickly.
4
+ The IRBy defines Object#irb.
5
+ It allows you to start irb super quickly.
5
6
 
6
7
  Installation
7
8
  ------------
@@ -11,20 +12,23 @@ Installation
11
12
  Usage
12
13
  ------------
13
14
 
15
+ Call irb on current context.
16
+
14
17
  require 'irby'
15
18
 
16
- class Foo
17
- def bar
18
- irb
19
- end
20
- end
19
+ irb # start irb session
20
+
21
+ Call irb of an object.
21
22
 
22
- Foo.new.bar
23
+ require 'irby'
24
+
25
+ "test".irb #=> start irb session
23
26
 
24
27
  Note
25
28
  ------------
26
29
 
27
- Inspired by http://d.hatena.ne.jp/ursm/20090625/1245951503
30
+ Inspired by [http://d.hatena.ne.jp/ursm/20090625/1245951503](http://d.hatena.ne.jp/ursm/20090625/1245951503)
31
+
28
32
 
29
33
  Copyright
30
34
  ------------
data/Rakefile CHANGED
@@ -6,7 +6,7 @@ begin
6
6
  Jeweler::Tasks.new do |gem|
7
7
  gem.name = "irby"
8
8
  gem.summary = %Q{IRBy is a super quick irb}
9
- gem.description = %Q{The IRBy allows you to start irb super quickly.}
9
+ gem.description = %Q{The IRBy defines Object#irb. It allows you to start irb super quickly.}
10
10
  gem.email = "jugyo.org@gmail.com"
11
11
  gem.homepage = "http://github.com/jugyo/irby"
12
12
  gem.authors = ["jugyo"]
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.1
1
+ 1.1.0
@@ -3,7 +3,10 @@ require 'irb'
3
3
  module IRB
4
4
  def self.start_session(binding)
5
5
  unless @__irb_initialized
6
+ args = ARGV.dup
7
+ ARGV.clear
6
8
  IRB.setup(nil)
9
+ ARGV.replace(args)
7
10
  @__irb_initialized = true
8
11
  end
9
12
 
@@ -20,7 +23,7 @@ module IRB
20
23
  end
21
24
  end
22
25
 
23
- module Kernel
26
+ class Object
24
27
  def irb
25
28
  IRB.start_session(binding)
26
29
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: irby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - jugyo
@@ -13,7 +13,7 @@ date: 2010-01-14 00:00:00 +09:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
16
- description: The IRBy allows you to start irb super quickly.
16
+ description: The IRBy defines Object#irb. It allows you to start irb super quickly.
17
17
  email: jugyo.org@gmail.com
18
18
  executables: []
19
19