rake-sh 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/README.md +8 -1
  2. data/VERSION +1 -1
  3. data/lib/rake/sh.rb +3 -1
  4. data/rake-sh.gemspec +1 -1
  5. metadata +1 -1
data/README.md CHANGED
@@ -8,11 +8,18 @@ Install
8
8
 
9
9
  gem install rake-sh
10
10
 
11
- Usage
11
+ Launch
12
12
  ----
13
13
 
14
14
  rake-sh
15
15
 
16
+ or specify eager tasks:
17
+
18
+ rake-sh environment
19
+
20
+ Usage
21
+ ----
22
+
16
23
  Invoke a rake taks:
17
24
 
18
25
  rake> rake spec
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.1
1
+ 1.0.2
@@ -8,7 +8,7 @@ module Rake
8
8
  class << self
9
9
  def start(eager_tasks = [])
10
10
  rake_init
11
- eager_tasks.each { |task| invoke(task) }
11
+ eager_tasks.each { |task| ::Rake.application[task].invoke }
12
12
  setup_readline
13
13
 
14
14
  while buf = Readline.readline("rake> ", true)
@@ -51,7 +51,9 @@ module Rake
51
51
  end
52
52
 
53
53
  def invoke(name)
54
+ start = Time.now
54
55
  Process.waitpid(fork { ::Rake.application[name].invoke })
56
+ puts "\e[34m#{Time.now - start}sec\e[0m"
55
57
  end
56
58
  end
57
59
  end
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rake-sh}
8
- s.version = "1.0.1"
8
+ s.version = "1.0.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["jugyo"]
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: rake-sh
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.0.1
5
+ version: 1.0.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - jugyo