mudbug 0.8.1.1 → 0.8.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/VERSION +1 -1
- data/bin/mb +26 -9
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZjQ2NGZmMWJlODIxMWM5M2Q5N2E5NTlkZjc0OGYxMTMyNTM5NzVjOQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
Y2NiZTczNGIzYWRhNTRhMTM5NTA4ODVkOGUwYjY3MWYzY2E2NTNmOQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZWQwZDc4ZDI3NmY3Mzg4ZjYzOTcyY2RmODc3MzZjMDFjYWExOTM3Y2NjM2Vi
|
10
|
+
YjIwYzA4NWEzY2NmOGFmYzIyNzMxNWQ0YzE5YmFjZGY5ZDRiZDgxOGIzNzg3
|
11
|
+
YjRlZWM5MDgyOTc3NDJjZDRkZWExZTdjNmY5ZGI3MDVjNDhhYTU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MzBkNDNhNWQ3NmVkMzU2MmI2MmVhYTNmYmNhMTA4YjFmMTliZWRjMWRlODM0
|
14
|
+
YjhmYWI5ZGU5YjNmOWUxM2M3NTkwYmZmY2JjMmE2OTIxNzBjZWI5OTYxODNi
|
15
|
+
NDVkZmRlNWY3MWZlNGI0M2ZhYWE4NWFiNWRlOWRjZjUwOGM3MmY=
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.8.1.
|
1
|
+
0.8.1.3
|
data/bin/mb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
|
3
|
+
$LAST_CHECKPOINT = Time.now
|
4
4
|
|
5
5
|
require 'dotcfg'
|
6
6
|
require 'mudbug'
|
@@ -12,15 +12,22 @@ if ARGV.delete '--debug'
|
|
12
12
|
$VERBOSE = true
|
13
13
|
end
|
14
14
|
|
15
|
-
|
16
|
-
|
15
|
+
def checkpoint(msg)
|
16
|
+
et = sprintf("%0.2f", Time.now - $LAST_CHECKPOINT)
|
17
|
+
$LAST_CHECKPOINT = Time.now
|
18
|
+
puts "#{msg} in #{et} seconds" if $VERBOSE
|
19
|
+
end
|
20
|
+
|
21
|
+
#####################
|
22
|
+
checkpoint "Required"
|
23
|
+
#####################
|
17
24
|
|
18
25
|
CONFIG = DotCfg.new '~/.mudbug', :json
|
19
26
|
RESET_ARG = '--reset'
|
20
27
|
|
21
|
-
|
22
|
-
|
23
|
-
|
28
|
+
###################
|
29
|
+
checkpoint "Loaded"
|
30
|
+
###################
|
24
31
|
|
25
32
|
def usage(msg = nil)
|
26
33
|
print "ERROR: #{msg}\n\n" if msg
|
@@ -57,7 +64,11 @@ end
|
|
57
64
|
|
58
65
|
def conclude(msg)
|
59
66
|
puts msg
|
60
|
-
|
67
|
+
|
68
|
+
######################
|
69
|
+
checkpoint "Completed"
|
70
|
+
######################
|
71
|
+
|
61
72
|
exit 0
|
62
73
|
end
|
63
74
|
|
@@ -205,14 +216,20 @@ else
|
|
205
216
|
usage "Bad HTTP method #{method}"
|
206
217
|
end
|
207
218
|
|
219
|
+
#######################
|
220
|
+
checkpoint "Configured"
|
221
|
+
#######################
|
222
|
+
|
208
223
|
#
|
209
224
|
# finally!
|
210
225
|
#
|
211
226
|
|
212
|
-
puts "Configured in #{Time.now - START} seconds" if $VERBOSE
|
213
|
-
|
214
227
|
begin
|
215
228
|
data = mb.send(*args)
|
229
|
+
|
230
|
+
######################
|
231
|
+
checkpoint "Transmitted"
|
232
|
+
######################
|
216
233
|
rescue RuntimeError => e
|
217
234
|
puts "#{e} - #{e.class}"
|
218
235
|
exit 1
|