update 0.6.4 → 0.6.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,17 @@
1
+ module RedGreen
2
+ def red text
3
+ say "tput setaf 1", text
4
+ end
5
+
6
+ def green text
7
+ say "tput setaf 2", text
8
+ end
9
+
10
+ private
11
+
12
+ def say color, text
13
+ system color
14
+ puts text
15
+ system "tput sgr0" #default color
16
+ end
17
+ end
@@ -1,3 +1,3 @@
1
1
  module Update
2
- VERSION = "0.6.4"
2
+ VERSION = "0.6.5"
3
3
  end
data/lib/update.rb CHANGED
@@ -1,15 +1,15 @@
1
1
  require "update/commands"
2
- require "update/rainbow"
2
+ require "update/red-green"
3
3
  require "update/version"
4
4
 
5
5
  module Update
6
- extend Rainbow
6
+ extend RedGreen
7
7
 
8
8
  class << self
9
9
  def run
10
10
  Update::COMMANDS.each do |command, description|
11
11
  green description
12
- plain `#{command}`
12
+ puts `#{command}`
13
13
  take_note_of_failures command
14
14
  end
15
15
  report_final_status
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.4
4
+ version: 0.6.5
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-02 00:00:00.000000000 Z
12
+ date: 2012-07-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: slop
16
- requirement: &70206370667820 !ruby/object:Gem::Requirement
16
+ requirement: &70217775171300 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '3.0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70206370667820
24
+ version_requirements: *70217775171300
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: slop
27
- requirement: &70206370667060 !ruby/object:Gem::Requirement
27
+ requirement: &70217775170700 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '3.0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70206370667060
35
+ version_requirements: *70217775170700
36
36
  description: A Ruby Gem for running a list of update commands from command line.
37
37
  email:
38
38
  - shannonskipper@gmail.com
@@ -47,7 +47,7 @@ files:
47
47
  - bin/update
48
48
  - lib/update.rb
49
49
  - lib/update/commands.rb
50
- - lib/update/rainbow.rb
50
+ - lib/update/red-green.rb
51
51
  - lib/update/version.rb
52
52
  - update.gemspec
53
53
  homepage: https://github.com/havenwood/update
@@ -1,21 +0,0 @@
1
- module Rainbow
2
- def plain text
3
- rainbow "tput sgr0", text
4
- end
5
-
6
- def red text
7
- rainbow "tput setaf 1", text
8
- end
9
-
10
- def green text
11
- rainbow "tput setaf 2", text
12
- end
13
-
14
- private
15
-
16
- def rainbow color, text
17
- system color
18
- puts text
19
- system "tput sgr0" #set text color back to default
20
- end
21
- end