derelict 0.1.5.travis.61 → 0.1.5.travis.63

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.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZTBmZWVkMGQzMjQ5YzY5YzNjZGEwNTJmYzFiYjU3ZTA0NmVmYjEyZA==
4
+ N2ZlMTA5MTdlYjE5YTc2Y2QwZDZlYzMzMjZmYzRkMGRmM2ZhN2Q4ZA==
5
5
  data.tar.gz: !binary |-
6
- MDNmZTU4N2U0NTBmMzVlMTA5Y2VlY2U1ZmE3ZjdiMzA5Y2MxZWZkMw==
6
+ ZGQxM2Y1ZTU4NGJkNTBlZWFlYWY0MWE4Y2VlNDM4ZTM0YjgzYTBiZA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- OGI4MGE1ZjE3N2M2YTJiOWNmYWJkNmQ3N2I2M2EwZWNjMDAxZjU4YTkzYzcx
10
- MmE1MTBkODU1NmI2NDZhY2M2YTdjMWM1MGQ1MTNiNDVjMDA5MjNiOWMxNGY2
11
- MzRkODE1MjVlOWY2Y2U0YWU3MmU2MDZmMjk1ZmExZjk3ODE4YzQ=
9
+ MTZjMGUyZTVkZTkxZGU1MmM0YzUxZDQwOTBiYWY3MTIyMjgxMGMwOWZlYzY0
10
+ NzdhMDgyODUwYjliY2ZiOTBkY2JhMzYzZTU2Y2MwYjE2NDk5MjhiN2Y5ZjRi
11
+ OGI5OWY5ZWMxOWNmNmRkMmM1YTNmZTJmZWYwM2Y4NGQzNGUxNTU=
12
12
  data.tar.gz: !binary |-
13
- YjU0NTlhNzFmOTFjMDQxOTdjMTRmNjUzYzA0Mzc2NzlmMjU0ODgwNGJhMTAx
14
- ZWI0MWMzMTEzOGM5ZTY4ZDMwYzMyZDdiZjg0YmQ0YjZlMGRhMGMxMDIzODU1
15
- OWYzNTYxODIwNTAxMDQzNWJlMDk1NTY1OTg1NzAwZGU5NGI3NmI=
13
+ M2UxYmEyOTI2ZjUyOThhODU4NGY5NDZiODVmM2U0ZTQ0MDI1MWNlZjg1YTM1
14
+ NmJmZjE2ZDA2OTc1YWUxOWUwNzA0YjRjMTRkZGRiZTk0Njc2YzBjNGVjZTQ2
15
+ MDU0N2I5MGYwNWRjMGYwZDEzMWY4YzVhMjZjNjU3ZTA1MGFjZmY=
@@ -86,13 +86,18 @@ module Derelict
86
86
  #
87
87
  # * log: Should the log output be printed? (defaults to false)
88
88
  COMMANDS.each do |command|
89
- define_method :"#{command}!" do |options = {}|
89
+ define_method :"#{command}!" do |*args|
90
+ if args.length != 1
91
+ message = "wrong number of arguments (#{args.length} for 1)"
92
+ raise ArgumentError.new message
93
+ end
94
+
90
95
  # Log message if there's one for this command
91
96
  message = log_message_for command
92
97
  logger.info message unless message.nil?
93
98
 
94
99
  # Set defaults for the options hash
95
- options = {:log => false}.merge options
100
+ options = {:log => false}.merge args.first
96
101
 
97
102
  # Execute the command, optionally logging output
98
103
  log_block = options[:log] ? shell_log_block : nil
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: derelict
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5.travis.61
4
+ version: 0.1.5.travis.63
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brad Feehan