Permalink
Browse files

Add an easy way to check thor version and bump to 0.13.1.

  • Loading branch information...
1 parent 5e713a0 commit d95b4dc10c36f16e41271465d6724ae587698486 @josevalim josevalim committed Feb 11, 2010
Showing with 10 additions and 4 deletions.
  1. +7 −1 lib/thor/runner.rb
  2. +1 −1 lib/thor/version.rb
  3. +2 −2 thor.gemspec
View
@@ -9,7 +9,7 @@
require 'pathname'
class Thor::Runner < Thor #:nodoc:
- map "-T" => :list, "-i" => :install, "-u" => :update
+ map "-T" => :list, "-i" => :install, "-u" => :update, "-v" => :version
# Override Thor#help so it can give information about any class and any method.
#
@@ -99,6 +99,12 @@ def install(name)
thor_yaml[as][:filename] # Indicate success
end
+ desc "version", "Show Thor version"
+ def version
+ require 'thor/version'
+ say "Thor #{Thor::VERSION}"
+ end
+
desc "uninstall NAME", "Uninstall a named Thor module"
def uninstall(name)
raise Error, "Can't find module '#{name}'" unless thor_yaml[name]
View
@@ -1,3 +1,3 @@
class Thor
- VERSION = "0.13.0".freeze
+ VERSION = "0.13.1".freeze
end
View
@@ -5,11 +5,11 @@
Gem::Specification.new do |s|
s.name = %q{thor}
- s.version = "0.13.0"
+ s.version = "0.13.1"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Yehuda Katz", "Jos\303\251 Valim"]
- s.date = %q{2010-02-03}
+ s.date = %q{2010-02-11}
s.description = %q{A scripting framework that replaces rake, sake and rubigen}
s.email = %q{ruby-thor@googlegroups.com}
s.executables = ["thor", "rake2thor"]

0 comments on commit d95b4dc

Please sign in to comment.