thor 0.13.0 → 0.13.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.
data/bin/thor CHANGED
@@ -1,8 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # -*- mode: ruby -*-
3
3
 
4
- require 'thor'
5
4
  require 'thor/runner'
6
-
7
5
  $thor_runner = true
8
6
  Thor::Runner.start
@@ -1,12 +1,15 @@
1
- require 'fileutils'
1
+ require 'thor'
2
+ require 'thor/group'
2
3
  require 'thor/core_ext/file_binary_read'
4
+
5
+ require 'fileutils'
3
6
  require 'open-uri'
4
7
  require 'yaml'
5
8
  require 'digest/md5'
6
9
  require 'pathname'
7
10
 
8
11
  class Thor::Runner < Thor #:nodoc:
9
- map "-T" => :list, "-i" => :install, "-u" => :update
12
+ map "-T" => :list, "-i" => :install, "-u" => :update, "-v" => :version
10
13
 
11
14
  # Override Thor#help so it can give information about any class and any method.
12
15
  #
@@ -96,6 +99,12 @@ class Thor::Runner < Thor #:nodoc:
96
99
  thor_yaml[as][:filename] # Indicate success
97
100
  end
98
101
 
102
+ desc "version", "Show Thor version"
103
+ def version
104
+ require 'thor/version'
105
+ say "Thor #{Thor::VERSION}"
106
+ end
107
+
99
108
  desc "uninstall NAME", "Uninstall a named Thor module"
100
109
  def uninstall(name)
101
110
  raise Error, "Can't find module '#{name}'" unless thor_yaml[name]
@@ -1,3 +1,3 @@
1
1
  class Thor
2
- VERSION = "0.13.0".freeze
2
+ VERSION = "0.13.1".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.13.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yehuda Katz
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2010-02-03 00:00:00 +01:00
13
+ date: 2010-02-11 00:00:00 +01:00
14
14
  default_executable:
15
15
  dependencies: []
16
16