timetrap 1.8.9 → 1.8.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/timetrap/formatters/text.rb +1 -1
- data/lib/timetrap/version.rb +1 -1
- data/spec/timetrap_spec.rb +9 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 79ab53a429f5f42025e0f262c00d985ff01e5ceb
|
4
|
+
data.tar.gz: 1312375ff25e715b71f78bca87ec4380a5e97867
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e9f9c54e829c5ec5d9a6ce3d753a2c4bac35eab4227fc2c242b3df084690b9649f7ad72bfc0ddce5f078ddc6c096298e0e23c28b0978d6eb54ff84cfbee4993
|
7
|
+
data.tar.gz: 99e92a3d25285833f9dc4ede7291ed3361c767d66b58db960438b945eb12fc0640fb1ac180c9fd7ad517d36ff0cdddace1b207746953977ee4e5cb11e8f6e695
|
@@ -11,7 +11,7 @@ module Timetrap
|
|
11
11
|
h[e.sheet] << e
|
12
12
|
h
|
13
13
|
end
|
14
|
-
longest_note = entries.inject('Notes'.length) {|l, e| [e.note.rstrip.length, l].max}
|
14
|
+
longest_note = entries.inject('Notes'.length) {|l, e| [e.note.to_s.rstrip.length, l].max}
|
15
15
|
(sheet_names = sheets.keys.sort).each do |sheet|
|
16
16
|
self.output << "Timesheet: #{sheet}\n"
|
17
17
|
id_heading = Timetrap::CLI.args['-v'] ? 'Id' : ' '
|
data/lib/timetrap/version.rb
CHANGED
data/spec/timetrap_spec.rb
CHANGED
@@ -373,6 +373,15 @@ Grand Total 10:00:00
|
|
373
373
|
$stdout.string.should == "yeah I did it\n"
|
374
374
|
FileUtils.rm_r dir
|
375
375
|
end
|
376
|
+
|
377
|
+
it "should work when there's no note" do
|
378
|
+
Timetrap::Entry.create( :sheet => 'SpecSheet',
|
379
|
+
:note => nil
|
380
|
+
)
|
381
|
+
invoke 'd SpecSheet'
|
382
|
+
# check it doesn't error and produces valid looking output
|
383
|
+
$stdout.string.should include('Timesheet: SpecSheet')
|
384
|
+
end
|
376
385
|
end
|
377
386
|
|
378
387
|
describe "default" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: timetrap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Goldstein
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-07-
|
11
|
+
date: 2013-07-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|