Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Using GLI 1.2.5's version directive

Also, using GLI's exit code while I'm at it.
  • Loading branch information...
commit fbca969b678e1651f76086ced3925ea391b14d32 1 parent 71d00c5
@davetron5000 authored
Showing with 3 additions and 9 deletions.
  1. +2 −8 bin/showoff
  2. +1 −1  showoff.gemspec
View
10 bin/showoff
@@ -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
2  showoff.gemspec
@@ -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

sweet

Please sign in to comment.
Something went wrong with that request. Please try again.