escort 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/escort/setup/dsl/command.rb +1 -2
- data/lib/escort/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
N2Q0MmJiODEzODNjNWI0NmM3Mzc0ZGFmMGQyYTU5NzFkZWU3NmZjYw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YjM4NmE2YmVjOTdkOTg4MDY1MWFmZGRmZGM5NzdiYWIwN2M3NmE2ZQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZTYxZWFiZmRmNzhlZjFhMjMyNTcxNzU3MGEzM2U4ZWYxOWZiOGJkOGMxNTli
|
10
|
+
N2Q0Yjk0ZGVlMmE5OThhOWQwMDU0YmQ2YjlmMjZlMjhlMWNmYjhlMDQ4NGJh
|
11
|
+
ZTVlYWJiMDZiMzJjYWMzMGNiNWQ0ZTZlYjFhYjg3Yjc4OTQ5M2U=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MDJlNGMwMWM1NTBkYzI3ZTI4MWM0NThhMTEzMDkyNThkZTFmNDEyMTgxYjA0
|
14
|
+
NDFkNzA3MjQ4MDU2NmM1ZmQ0ZjQxNDU3MTJhNjFhZmI2NjAwOGVmYjAzZTBm
|
15
|
+
ODYzNjVkMDM2NTM2NGJiY2I2NTlhYjRkMTAzMDA3OGM0ZDdhZTc=
|
@@ -22,7 +22,6 @@ module Escort
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def command(name, options = {}, &block)
|
25
|
-
raise Escort::ClientError.new("Parameter to 'requires_arguments' must be a boolean") unless [true, false].include?(boolean)
|
26
25
|
options[:requires_arguments] = @requires_arguments
|
27
26
|
command = Command.new(name.to_sym, options, &block)
|
28
27
|
aliases = [options[:aliases] || []].flatten + [name]
|
@@ -32,7 +31,7 @@ module Escort
|
|
32
31
|
end
|
33
32
|
|
34
33
|
def requires_arguments(boolean = true)
|
35
|
-
|
34
|
+
raise Escort::ClientError.new("Parameter to 'requires_arguments' must be a boolean") unless [true, false].include?(boolean)
|
36
35
|
@requires_arguments = boolean
|
37
36
|
@commands.each do |command|
|
38
37
|
command.requires_arguments(boolean)
|
data/lib/escort/version.rb
CHANGED