thor 0.19.3 → 0.19.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/thor/base.rb +3 -3
- data/lib/thor/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5fd71663b46487af27e6f0b6a0206f5140d0d196
|
4
|
+
data.tar.gz: d67e482d506417552648630f8a7bc4b1886fc06c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f15702a93adea15d623fd708962193b42bc38bf2b86dff66fe43f1078971fc38f5dedff0d6a78bd1bf9241315e83ede0c216ffedea8c452c55b57aff17d0d051
|
7
|
+
data.tar.gz: 1e7093648f0913e9c7e32c796ea795e819ca59331588885059bfcae9867172ea50144033c342d22c4d5c8ab628f135821bb9a0ab8645f7784c396482370b98c0
|
data/lib/thor/base.rb
CHANGED
@@ -208,7 +208,7 @@ class Thor
|
|
208
208
|
# ArgumentError:: Raised if you supply a required argument after a non required one.
|
209
209
|
#
|
210
210
|
def argument(name, options = {})
|
211
|
-
|
211
|
+
is_thor_reserved_word?(name, :argument)
|
212
212
|
no_commands { attr_accessor name }
|
213
213
|
|
214
214
|
required = if options.key?(:optional)
|
@@ -529,7 +529,7 @@ class Thor
|
|
529
529
|
end
|
530
530
|
|
531
531
|
# Raises an error if the word given is a Thor reserved word.
|
532
|
-
def
|
532
|
+
def is_thor_reserved_word?(word, type) #:nodoc:
|
533
533
|
return false unless THOR_RESERVED_WORDS.include?(word.to_s)
|
534
534
|
raise "#{word.inspect} is a Thor reserved word and cannot be defined as #{type}"
|
535
535
|
end
|
@@ -594,7 +594,7 @@ class Thor
|
|
594
594
|
@no_commands ||= false
|
595
595
|
return if @no_commands || !create_command(meth)
|
596
596
|
|
597
|
-
|
597
|
+
is_thor_reserved_word?(meth, :command)
|
598
598
|
Thor::Base.register_klass_file(self)
|
599
599
|
end
|
600
600
|
|
data/lib/thor/version.rb
CHANGED
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.19.
|
4
|
+
version: 0.19.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yehuda Katz
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-11-
|
12
|
+
date: 2016-11-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -91,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
91
91
|
version: 1.3.5
|
92
92
|
requirements: []
|
93
93
|
rubyforge_project:
|
94
|
-
rubygems_version: 2.5.
|
94
|
+
rubygems_version: 2.5.2
|
95
95
|
signing_key:
|
96
96
|
specification_version: 4
|
97
97
|
summary: Thor is a toolkit for building powerful command-line interfaces.
|