update 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/bin/update +5 -7
  2. data/lib/update/version.rb +2 -2
  3. data/lib/update.rb +4 -4
  4. metadata +37 -61
data/bin/update CHANGED
@@ -2,12 +2,10 @@
2
2
  require "update"
3
3
  require "slop"
4
4
 
5
- opts = Slop.parse(:help => true, :banner => "Update script for running commands.rb.") do
6
- on :v, :version, 'Print version information'
5
+ opts = Slop.parse(:help => true, :banner => "Usage: update [OPTIONS]") do
6
+ on :v, :version, 'Print version information' do
7
+ puts "Update version #{Update::VERSION} on Ruby #{RUBY_VERSION}"
8
+ exit
7
9
  end
8
10
 
9
- unless opts.version?
10
- Update.run
11
- else
12
- puts Update::VERSION
13
- end
11
+ Update.run
@@ -1,3 +1,3 @@
1
1
  module Update
2
- VERSION = "0.0.6"
3
- end
2
+ VERSION = "0.0.7"
3
+ end
data/lib/update.rb CHANGED
@@ -14,9 +14,9 @@ module Update
14
14
  private
15
15
 
16
16
  def run_each_command
17
- COMMANDS.each do |command, task|
18
- green task
19
- puts `#{command}`
17
+ COMMANDS.each do |command, description|
18
+ green description
19
+ puts `command`
20
20
  check_for_failures
21
21
  end
22
22
  end
@@ -32,7 +32,7 @@ module Update
32
32
  unless @failed
33
33
  green "Update process completed successfully."
34
34
  else
35
- red "Update process completed with failures.\a"
35
+ red "Update process completed with failures.\a" #chirp
36
36
  end
37
37
  end
38
38
  end
metadata CHANGED
@@ -1,60 +1,46 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: update
3
- version: !ruby/object:Gem::Version
4
- hash: 3599632081231604877
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.7
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 0
9
- - 6
10
- version: 0.0.6
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - shan
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2012-01-22 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2012-01-22 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: slop
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &70253393018300 !ruby/object:Gem::Requirement
24
17
  none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- hash: 2002549777813010636
29
- segments:
30
- - 0
31
- version: "0"
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
32
22
  type: :development
33
- version_requirements: *id001
34
- - !ruby/object:Gem::Dependency
35
- name: slop
36
23
  prerelease: false
37
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *70253393018300
25
+ - !ruby/object:Gem::Dependency
26
+ name: slop
27
+ requirement: &70253393017700 !ruby/object:Gem::Requirement
38
28
  none: false
39
- requirements:
40
- - - ">="
41
- - !ruby/object:Gem::Version
42
- hash: 2002549777813010636
43
- segments:
44
- - 0
45
- version: "0"
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
46
33
  type: :runtime
47
- version_requirements: *id002
34
+ prerelease: false
35
+ version_requirements: *70253393017700
48
36
  description: update script for updating yer things
49
- email:
37
+ email:
50
38
  - shannonskipper@gmail.com
51
- executables:
39
+ executables:
52
40
  - update
53
41
  extensions: []
54
-
55
42
  extra_rdoc_files: []
56
-
57
- files:
43
+ files:
58
44
  - .gitignore
59
45
  - Gemfile
60
46
  - README.md
@@ -65,39 +51,29 @@ files:
65
51
  - lib/update/red-green.rb
66
52
  - lib/update/version.rb
67
53
  - update.gemspec
68
- homepage: ""
54
+ homepage: ''
69
55
  licenses: []
70
-
71
56
  post_install_message:
72
57
  rdoc_options: []
73
-
74
- require_paths:
58
+ require_paths:
75
59
  - lib
76
- required_ruby_version: !ruby/object:Gem::Requirement
60
+ required_ruby_version: !ruby/object:Gem::Requirement
77
61
  none: false
78
- requirements:
79
- - - ">="
80
- - !ruby/object:Gem::Version
81
- hash: 2002549777813010636
82
- segments:
83
- - 0
84
- version: "0"
85
- required_rubygems_version: !ruby/object:Gem::Requirement
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
66
+ required_rubygems_version: !ruby/object:Gem::Requirement
86
67
  none: false
87
- requirements:
88
- - - ">="
89
- - !ruby/object:Gem::Version
90
- hash: 2002549777813010636
91
- segments:
92
- - 0
93
- version: "0"
68
+ requirements:
69
+ - - ! '>='
70
+ - !ruby/object:Gem::Version
71
+ version: '0'
94
72
  requirements: []
95
-
96
73
  rubyforge_project: update
97
74
  rubygems_version: 1.8.15
98
75
  signing_key:
99
76
  specification_version: 3
100
77
  summary: simple command line updater script in Ruby
101
78
  test_files: []
102
-
103
79
  has_rdoc: