timesheets 1.2.1 → 1.2.2

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: e26670de1d7750daa13db2f3c7a83c9c5b5ea373
4
- data.tar.gz: 98969ca139b02b992b2cd7c71c8798165d00d6a4
3
+ metadata.gz: b2abcb0cf8baf4b0838f0b13d3807f45d763aca8
4
+ data.tar.gz: 843edea1155b36e7625b5b1d2e375035c151195b
5
5
  SHA512:
6
- metadata.gz: 68f05282f7e889a8125519568ead882ff1a6f325c73e85cdcac94140e599079b4b5bf160a64c7c6b676a471cf8c392f664ad87eee4005d247cd893d21f03dae6
7
- data.tar.gz: 84bb452d5e65db1733dd63762d8d138cbebc228c47894802b898e0319a6e1586e60471e8aa9dd7efa842bd97e3d91598dadd3c78fbc28ce81cf1a85508f6dbd6
6
+ metadata.gz: 18d7c881fa72f4909da310cc92d35e4f49de22aacd4c90426dbbd097bb8cde0e4339e19ef8c572ee04a7f62b0925d5a3d3fb91061aa96bfcb1622af907a730fd
7
+ data.tar.gz: 1da375be03f41b04c0209fb2564016a5a82ffc3e24585d0015de3e5b0f6b41b3f82892e3e2a44065b54f85999d9b509aee702ac642ef1f847133d7af7954ecbd
data/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  A CLI for managing timesheets.
4
4
 
5
+ [![Gem Version](https://badge.fury.io/rb/timesheets.svg)](http://badge.fury.io/rb/timesheets) [![Code Climate](https://codeclimate.com/github/bspaulding/timesheets.png)](https://codeclimate.com/github/bspaulding/timesheets)
6
+
5
7
  ## Installation
6
8
 
7
9
  Install it via RubyGems:
@@ -27,7 +27,7 @@ module Timesheets
27
27
  }
28
28
  t << total_row(entries) unless options['week-of']
29
29
 
30
- heading.length.times {|i| t.align_column(i, :right) }
30
+ (heading.length - 1).times {|i| t.align_column(i, :right) }
31
31
  }
32
32
  end
33
33
 
@@ -41,7 +41,7 @@ module Timesheets
41
41
  def heading
42
42
  the_heading = ['Weekday', 'Date', 'Time', 'Hour(s)']
43
43
 
44
- the_heading += ['Hourly Rate', 'Total']
44
+ the_heading += ['Hourly Rate', 'Total'] if options[:rate]
45
45
 
46
46
  the_heading
47
47
  end
@@ -1,3 +1,3 @@
1
1
  module Timesheets
2
- VERSION = "1.2.1"
2
+ VERSION = "1.2.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: timesheets
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bradley J. Spaulding