update 0.6.1 → 0.6.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,5 +9,6 @@ module Update
9
9
  "rvm 1.9.3-head do gem cleanup -d" => "Show 1.9.3 gem cleanup dry-run...",
10
10
  "rvm rbx-head do gem update --system" => "Update Rubinius' RubyGems version...",
11
11
  "rvm rbx-head do gem update" => "Update Rubinius gems...",
12
- "rvm rbx-head do gem cleanup -d" => "Show Rubinius gem cleanup dry-run..." }
12
+ "rvm rbx-head do gem cleanup -d" => "Show Rubinius gem cleanup dry-run..."
13
+ }
13
14
  end
@@ -1,16 +1,16 @@
1
1
  module Rainbow
2
- def default text
2
+ def plain text
3
3
  rainbow "tput sgr0", text
4
4
  end
5
-
6
- def green text
7
- rainbow "tput setaf 2", text
8
- end
9
5
 
10
6
  def red text
11
7
  rainbow "tput setaf 1", text
12
8
  end
13
9
 
10
+ def green text
11
+ rainbow "tput setaf 2", text
12
+ end
13
+
14
14
  private
15
15
 
16
16
  def rainbow color, text
@@ -1,3 +1,3 @@
1
1
  module Update
2
- VERSION = "0.6.1"
2
+ VERSION = "0.6.3"
3
3
  end
data/lib/update.rb CHANGED
@@ -7,12 +7,10 @@ module Update
7
7
 
8
8
  class << self
9
9
  def run
10
- Update::COMMANDS.each do |commands|
11
- commands.each do |command, description|
12
- green description
13
- puts `#{command}`
14
- take_note_of_failures command
15
- end
10
+ Update::COMMANDS.each do |command, description|
11
+ green description
12
+ plain `#{command}`
13
+ take_note_of_failures command
16
14
  end
17
15
  report_final_status
18
16
  end
@@ -22,9 +20,8 @@ module Update
22
20
  def take_note_of_failures command
23
21
  unless $?.success?
24
22
  @failed ||= []
25
- @failed << @command
26
- @failure_report = "Command failed: '#{command}'"
27
- red @failure_report if @failure_report
23
+ @failed << command
24
+ red "Command failed: '#{command}'"
28
25
  end
29
26
  end
30
27
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: update
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-01 00:00:00.000000000 Z
12
+ date: 2012-02-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: slop
16
- requirement: &70215023500660 !ruby/object:Gem::Requirement
16
+ requirement: &70329519798360 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '2.4'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70215023500660
24
+ version_requirements: *70329519798360
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: slop
27
- requirement: &70215023499980 !ruby/object:Gem::Requirement
27
+ requirement: &70329519797840 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '2.4'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70215023499980
35
+ version_requirements: *70329519797840
36
36
  description: A Ruby Gem for running a list of update commands from command line.
37
37
  email:
38
38
  - shannonskipper@gmail.com