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.
Files changed (4) hide show
  1. checksums.yaml +8 -8
  2. data/VERSION +1 -1
  3. data/bin/mb +26 -9
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZTFjMWMzMmVmZGQ4NjM1NTI1YzZlNWU4MTVlMzQ5MDFiYzcyNTA4OA==
4
+ ZjQ2NGZmMWJlODIxMWM5M2Q5N2E5NTlkZjc0OGYxMTMyNTM5NzVjOQ==
5
5
  data.tar.gz: !binary |-
6
- NTliMTVhOTYxMjE0ZTNjM2FiNjQ0ODY4MGU4NTYzNWM2MmZjZDdiMQ==
6
+ Y2NiZTczNGIzYWRhNTRhMTM5NTA4ODVkOGUwYjY3MWYzY2E2NTNmOQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- OWVjZGMzM2JiZGI1OGQwMzUwYzQ2MDNmN2YyZmVmZTcyY2U0NDdlYTQ5ZDYz
10
- OWVkOWM0MjQ0YTA2YTE5MTE1NDVjZDc3NzVhY2Y0ZTY1NDQ2ZmY0MjRjOGY1
11
- ODg2M2Q4YzkxNTk0OGZjMmQyYTA2NTAyMmIyYmJjZDQ3YzljY2E=
9
+ ZWQwZDc4ZDI3NmY3Mzg4ZjYzOTcyY2RmODc3MzZjMDFjYWExOTM3Y2NjM2Vi
10
+ YjIwYzA4NWEzY2NmOGFmYzIyNzMxNWQ0YzE5YmFjZGY5ZDRiZDgxOGIzNzg3
11
+ YjRlZWM5MDgyOTc3NDJjZDRkZWExZTdjNmY5ZGI3MDVjNDhhYTU=
12
12
  data.tar.gz: !binary |-
13
- MTU0NGI1ZDc3YzFhM2RhYjM5MTA0YTgxODgxYTlhNzJkYWM3YmY0NTdjYjg4
14
- NDliMzNmMDM1MDQ2MjMwNjRmZjMxYzdhMDQzYmMwYWIxNTVhODg2NGJhYWM1
15
- YTdlOWZkYzU2MjlmZDU2YTA4MWFlNWE0ZTYzZDE5NGM1MWVhNTk=
13
+ MzBkNDNhNWQ3NmVkMzU2MmI2MmVhYTNmYmNhMTA4YjFmMTliZWRjMWRlODM0
14
+ YjhmYWI5ZGU5YjNmOWUxM2M3NTkwYmZmY2JjMmE2OTIxNzBjZWI5OTYxODNi
15
+ NDVkZmRlNWY3MWZlNGI0M2ZhYWE4NWFiNWRlOWRjZjUwOGM3MmY=
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.8.1.1
1
+ 0.8.1.3
data/bin/mb CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- bef_require = Time.now
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
- puts "Required in #{Time.now - bef_require} seconds" if $VERBOSE
16
- bef_config = Time.now
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
- puts "Loaded in #{Time.now - bef_config} seconds" if $VERBOSE
22
-
23
- START = Time.now
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
- puts "Completed in #{Time.now - START} seconds" if $VERBOSE
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mudbug
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1.1
4
+ version: 0.8.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rick Hull