Permalink
Browse files

Make sequel command line tool use Sequel.version instead of gem version

  • Loading branch information...
1 parent 2ce435a commit d7400778c42f1e6d6bd13ac204db1b899bcc3a61 @jeremyevans committed Feb 3, 2009
Showing with 1 addition and 7 deletions.
  1. +1 −7 bin/sequel
View
@@ -55,13 +55,7 @@ opts = OptionParser.new do |opts|
end
opts.on_tail("-v", "--version", "Show version") do
- class << Gem; attr_accessor :loaded_specs; end
- begin
- specs = Gem.loaded_specs['sequel']
- puts "sequel #{specs.version} (#{specs.date.strftime '%Y-%m-%d'})"
- rescue
- puts "No gem version found"
- end
+ puts "sequel #{Sequel.version}"
exit
end
end

0 comments on commit d740077

Please sign in to comment.