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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NTg0OWNmNDI2ZDU1MDc4NTE4NDgyMGMzMDY3NDBlNTZlOGJiNDM0Nw==
4
+ N2Q0MmJiODEzODNjNWI0NmM3Mzc0ZGFmMGQyYTU5NzFkZWU3NmZjYw==
5
5
  data.tar.gz: !binary |-
6
- MjkxNTExZTY2ZDJhNTlmNmY0MTBiOGNiNGQyZDg4ZTAxYzQ1NTMwNA==
6
+ YjM4NmE2YmVjOTdkOTg4MDY1MWFmZGRmZGM5NzdiYWIwN2M3NmE2ZQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ZWU2OGE4M2NkZGRhZjJlNDZjZTE3ZDk0OWUwMGZhOWY3YWY1NDMxMmI1MmJm
10
- MmYzYjY3YjllY2Q1OGE3YzVjNGIxZTI3ZTY4OWVlNTI1ODM0MTRkNzU3MzBm
11
- ODlmODhhMGY2ODMwYzFlNTM3NGRhNzlkOGM1NzRhYmIxNzYzZDQ=
9
+ ZTYxZWFiZmRmNzhlZjFhMjMyNTcxNzU3MGEzM2U4ZWYxOWZiOGJkOGMxNTli
10
+ N2Q0Yjk0ZGVlMmE5OThhOWQwMDU0YmQ2YjlmMjZlMjhlMWNmYjhlMDQ4NGJh
11
+ ZTVlYWJiMDZiMzJjYWMzMGNiNWQ0ZTZlYjFhYjg3Yjc4OTQ5M2U=
12
12
  data.tar.gz: !binary |-
13
- YzM5YWI1NTZhYWJmZWE2ODBjZGM1YTZkYTY5ODQ3NWIwMjQ0YWYxY2NhOGMz
14
- ODA5ODk5ZmE5N2RmZjc3ZTllNDQ1NWNmYjU1MDRkNDdlNGEzNWY2YzhhZGEz
15
- ZGM3OTk4ZmFmMjI4NmY4ZGVhNzM2ZmE2NzJhOTZlNGI4YWUxYmE=
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
- #TODO raise a client error if the value is anything besides true or false
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)
@@ -1,3 +1,3 @@
1
1
  module Escort
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: escort
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alan Skorkin