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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 95a6321f81345876d080915bfa463773aec4a323
4
- data.tar.gz: 080e67a839ea706bb7999ff5d62decd4927fec26
3
+ metadata.gz: 79ab53a429f5f42025e0f262c00d985ff01e5ceb
4
+ data.tar.gz: 1312375ff25e715b71f78bca87ec4380a5e97867
5
5
  SHA512:
6
- metadata.gz: a8f99b00dd16717a9c86e525363e1dfeb3fca1c67261f5c3a418877a4fb766c78b7e074ee83fa85e36a9d9ac3d4e680e5386db6ec1df9596e3a1e0bcfbf3e7c3
7
- data.tar.gz: 1e6138b8903a54cba1203ab09e4927be4db650089f046b0befd3386cb9c15747145fbde2a62cdbf7b8a72a5b4e8ca2e24b694f8c8330f970797826a1ad20303b
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' : ' '
@@ -1,3 +1,3 @@
1
1
  module Timetrap
2
- VERSION = '1.8.9'
2
+ VERSION = '1.8.10'
3
3
  end
@@ -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.9
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-17 00:00:00.000000000 Z
11
+ date: 2013-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler