irb-rake-task 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/irb-rake-task.gemspec +1 -1
- data/lib/irb/rake_task.rb +4 -23
- metadata +2 -2
data/irb-rake-task.gemspec
CHANGED
data/lib/irb/rake_task.rb
CHANGED
@@ -3,27 +3,8 @@ require 'rake/tasklib'
|
|
3
3
|
require 'irb'
|
4
4
|
require 'irb/completion'
|
5
5
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
#
|
11
|
-
# default:
|
12
|
-
# :spec
|
13
|
-
attr_accessor :name
|
14
|
-
|
15
|
-
def initialize(*args)
|
16
|
-
@name = args.shift || :console
|
17
|
-
|
18
|
-
yield self if block_given?
|
19
|
-
|
20
|
-
desc("Start the console") unless ::Rake.application.last_comment
|
21
|
-
|
22
|
-
task name do
|
23
|
-
ARGV.clear
|
24
|
-
IRB.start
|
25
|
-
end
|
26
|
-
end
|
27
|
-
|
28
|
-
end
|
6
|
+
desc("Open IRB console")
|
7
|
+
task name do
|
8
|
+
ARGV.clear
|
9
|
+
IRB.start
|
29
10
|
end
|