Permalink
Browse files

Using GLI 1.2.5's version directive

Also, using GLI's exit code while I'm at it.
  • Loading branch information...
1 parent 71d00c5 commit fbca969b678e1651f76086ced3925ea391b14d32 @davetron5000 committed Jan 4, 2011
Showing with 3 additions and 9 deletions.
  1. +2 −8 bin/showoff
  2. +1 −1 showoff.gemspec
View
@@ -7,13 +7,7 @@ require 'gli'
include GLI
-desc 'Show ShowOff version'
-long_desc 'This command shows the currently installed version of ShowOff'
-command [:version] do |c|
- c.action do |global_options,options,args|
- puts "ShowOff Version " + ShowOff::Version
- end
-end
+version ShowOff::Version
desc 'Create new showoff presentation'
arg_name 'dir_name'
@@ -139,4 +133,4 @@ on_error do |exception|
true
end
-GLI.run(ARGV)
+exit GLI.run(ARGV)
View
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
s.add_dependency "bluecloth"
s.add_dependency "nokogiri"
s.add_dependency "json"
- s.add_dependency ("gli",">= 1.1.1")
+ s.add_dependency ("gli",">= 1.2.5")
s.description = <<-desc
ShowOff is a Sinatra web app that reads simple configuration files for a
presentation. It is sort of like a Keynote web app engine. I am using it

1 comment on commit fbca969

schacon commented on fbca969 Jan 4, 2011

sweet

Please sign in to comment.