gizzmo 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/gizzmo.gemspec +2 -2
  3. data/lib/gizzmo.rb +7 -0
  4. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.3.1
data/gizzmo.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{gizzmo}
8
- s.version = "0.3.0"
8
+ s.version = "0.3.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Kyle Maxwell"]
12
- s.date = %q{2010-07-09}
12
+ s.date = %q{2010-07-13}
13
13
  s.default_executable = %q{gizzmo}
14
14
  s.description = %q{Gizzmo is a command-line client for managing gizzard clusters.}
15
15
  s.email = %q{kmaxwell@twitter.com}
data/lib/gizzmo.rb CHANGED
@@ -16,6 +16,8 @@ subcommand_options = OpenStruct.new
16
16
  # Leftover arguments
17
17
  argv = nil
18
18
 
19
+ GIZZMO_VERSION = File.read(File.dirname(__FILE__) + "/../VERSION") rescue "unable to read version file"
20
+
19
21
  begin
20
22
  YAML.load_file(File.join(ENV["HOME"], ".gizzmorc")).each do |k, v|
21
23
  global_options.send("#{k}=", v)
@@ -137,6 +139,11 @@ global = OptionParser.new do |opts|
137
139
  opts.on("-f", "--force", "Don't display confirmation dialogs") do |force|
138
140
  global_options.force = force
139
141
  end
142
+
143
+ opts.on_tail("-v", "--version", "Show version") do
144
+ puts GIZZMO_VERSION
145
+ exit
146
+ end
140
147
  end
141
148
 
142
149
  # Print banner if no args
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 0
9
- version: 0.3.0
8
+ - 1
9
+ version: 0.3.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Kyle Maxwell
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-07-09 00:00:00 -07:00
17
+ date: 2010-07-13 00:00:00 -07:00
18
18
  default_executable: gizzmo
19
19
  dependencies: []
20
20