update 0.0.1 → 0.0.2

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 +12 -0
  2. data/lib/update/version.rb +1 -1
  3. data/lib/update.rb +1 -11
  4. metadata +8 -6
data/bin/update ADDED
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env ruby
2
+ require 'update'
3
+
4
+ opts = Slop.parse(:help => true, :banner => "Update script for running commands.rb.") do
5
+ on :v, :version, 'Print version information'
6
+ end
7
+
8
+ unless opts.version?
9
+ Update.run
10
+ else
11
+ puts VERSION
12
+ end
@@ -1,3 +1,3 @@
1
1
  module Update
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/lib/update.rb CHANGED
@@ -3,10 +3,6 @@ require "update/red-green"
3
3
  require "update/commands"
4
4
  require "slop"
5
5
 
6
- opts = Slop.parse(:help => true, :banner => "Update script for running commands.rb.") do
7
- on :v, :version, 'Print version information'
8
- end
9
-
10
6
  module Update
11
7
  extend RedGreen
12
8
 
@@ -41,10 +37,4 @@ module Update
41
37
  end
42
38
  end
43
39
  end
44
- end
45
-
46
- unless opts.version?
47
- Update.run
48
- else
49
- puts VERSION
50
- end
40
+ end
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.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-01-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: slop
16
- requirement: &70320929471200 !ruby/object:Gem::Requirement
16
+ requirement: &70305767192260 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70320929471200
24
+ version_requirements: *70305767192260
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: slop
27
- requirement: &70320929470720 !ruby/object:Gem::Requirement
27
+ requirement: &70305767191740 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,11 +32,12 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70320929470720
35
+ version_requirements: *70305767191740
36
36
  description: update script for updating yer things
37
37
  email:
38
38
  - shannonskipper@gmail.com
39
- executables: []
39
+ executables:
40
+ - update
40
41
  extensions: []
41
42
  extra_rdoc_files: []
42
43
  files:
@@ -44,6 +45,7 @@ files:
44
45
  - Gemfile
45
46
  - README
46
47
  - Rakefile
48
+ - bin/update
47
49
  - lib/update.rb
48
50
  - lib/update/commands.rb
49
51
  - lib/update/red-green.rb