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 +8 -8
- data/lib/derelict/virtual_machine.rb +7 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
N2ZlMTA5MTdlYjE5YTc2Y2QwZDZlYzMzMjZmYzRkMGRmM2ZhN2Q4ZA==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
ZGQxM2Y1ZTU4NGJkNTBlZWFlYWY0MWE4Y2VlNDM4ZTM0YjgzYTBiZA==
|
|
7
7
|
!binary "U0hBNTEy":
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
MTZjMGUyZTVkZTkxZGU1MmM0YzUxZDQwOTBiYWY3MTIyMjgxMGMwOWZlYzY0
|
|
10
|
+
NzdhMDgyODUwYjliY2ZiOTBkY2JhMzYzZTU2Y2MwYjE2NDk5MjhiN2Y5ZjRi
|
|
11
|
+
OGI5OWY5ZWMxOWNmNmRkMmM1YTNmZTJmZWYwM2Y4NGQzNGUxNTU=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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 |
|
|
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
|
|
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
|