irby 1.0.1 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +12 -8
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/lib/irby.rb +4 -1
- metadata +2 -2
data/README.md
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
IRBy
|
2
2
|
======
|
3
3
|
|
4
|
-
The IRBy
|
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
|
-
|
17
|
-
|
18
|
-
|
19
|
-
end
|
20
|
-
end
|
19
|
+
irb # start irb session
|
20
|
+
|
21
|
+
Call irb of an object.
|
21
22
|
|
22
|
-
|
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.0
|
data/lib/irby.rb
CHANGED
@@ -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
|
-
|
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
|
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
|
|