timer 0.1.4 → 0.1.5

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.
@@ -0,0 +1,8 @@
1
+ == 0.1.5
2
+ * minor enhancements
3
+ * when an exception occurs during a timed block, output the exception message
4
+
5
+ == 0.1.4
6
+ * minor enhancements
7
+ * extracted natural time output into 'natural_time' gem
8
+
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.4
1
+ 0.1.5
@@ -20,6 +20,7 @@ class Timer
20
20
  begin
21
21
  yield
22
22
  rescue StandardError => e
23
+ put_elapsed_time(start_time, Time.now, e.message, current_title)
23
24
  end
24
25
  put_elapsed_time(start_time, Time.now, message, current_title)
25
26
  raise e if e
@@ -115,8 +115,8 @@ describe "Timer" do
115
115
  }.should raise_error("Exception")
116
116
  end
117
117
 
118
- it "should put a message" do
119
- $stdout.should_receive(:puts).with(/hello/)
118
+ it "should put the exception" do
119
+ $stdout.should_receive(:puts).with(/Exception/)
120
120
  lambda {
121
121
  @timer.time("hello") do
122
122
  raise "Exception"
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{timer}
8
- s.version = "0.1.4"
8
+ s.version = "0.1.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jeff Coleman"]
12
- s.date = %q{2010-01-13}
12
+ s.date = %q{2010-01-16}
13
13
  s.description = %q{Simple timer to perform a block and display the elapsed time. Growls message if growl is turned on.}
14
14
  s.email = %q{progressions@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -19,6 +19,7 @@ Gem::Specification.new do |s|
19
19
  s.files = [
20
20
  ".document",
21
21
  ".gitignore",
22
+ "History.txt",
22
23
  "LICENSE",
23
24
  "README.rdoc",
24
25
  "Rakefile",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: timer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Coleman
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-01-13 00:00:00 -06:00
12
+ date: 2010-01-16 00:00:00 -06:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -74,6 +74,7 @@ extra_rdoc_files:
74
74
  files:
75
75
  - .document
76
76
  - .gitignore
77
+ - History.txt
77
78
  - LICENSE
78
79
  - README.rdoc
79
80
  - Rakefile