cap-util 0.1.0 → 0.1.1

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.
@@ -1,3 +1,5 @@
1
+ require 'cap-util'
2
+
1
3
  module CapUtil
2
4
  class Timer
3
5
 
@@ -13,7 +15,7 @@ module CapUtil
13
15
  end
14
16
 
15
17
  def start(time=nil)
16
- say " Starting #{CapUtil.color @name, :cyan}." if !@quiet
18
+ CapUtil.say " Starting #{CapUtil.color @name, :cyan}." if !@quiet
17
19
  @start_time = (time || Time.now)
18
20
  end
19
21
 
@@ -22,7 +24,7 @@ module CapUtil
22
24
  @elapsed_time = @end_time - @start_time
23
25
  if !@quiet
24
26
  elapsed = self.class.pretty_time(@elapsed_time.to_i)
25
- say " #{CapUtil.color @name, :bold, :yellow} completed in"\
27
+ CapUtil.say " #{CapUtil.color @name, :bold, :yellow} completed in"\
26
28
  " #{CapUtil.color elapsed, :underline, :yellow}."
27
29
  end
28
30
  @end_time
@@ -1,3 +1,3 @@
1
1
  module CapUtil
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cap-util
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Kelly Redding