punched 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +5 -5
  2. data/bin/punched +2 -0
  3. data/lib/punchcard.rb +1 -1
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 62d4754c760c1f51a7f01accb31c109eac4bbe5d
4
- data.tar.gz: 65ba44594b4d2c39d5c10873dd8505a3af2a9eb7
2
+ SHA256:
3
+ metadata.gz: b31fb8d911d693ff343d9becd044d9c3378b64ba8214e6175aec5e6e042ce621
4
+ data.tar.gz: aba03f814669c72f40e8cb2a56317aac1313ae3033f627fcc3ae9f83cc33ad03
5
5
  SHA512:
6
- metadata.gz: 68bc0a1a31cfb73cc679252f48dfab36164a52d30f8fd9df792702072a616293f852fa3ebc0a991d227c1e596c832de6453e393c3c8e5bf549ff459482783355
7
- data.tar.gz: '068a676ece1a1182d1b63dce05d178fd7a03fd2a2f59f627952b4e5b30cd57a11d1ea019edf066dca87f39fe2853b28d630d9bf13591f8207139d39d877f2106'
6
+ metadata.gz: 9bd2d23729a8fbde5073d9aaa907d8585ea10c063ffeb3176e942cf6ce2fae7fdd078b038e7a520f03a39f4037c385278fe2c1a8b7e28b058bf9586ded70094c
7
+ data.tar.gz: d4111205855e18c030236011ba93e02b6780771595df1c755d61095f5d6fcec0425cf22d56ca0da723c6e7bd5dabd2120ff4cc2035e80dcb62579fea8d3d15a7
data/bin/punched CHANGED
@@ -44,6 +44,8 @@ def all action
44
44
  row[0...-1]
45
45
  }
46
46
 
47
+ return puts('No record(s) so far') if data.empty?
48
+
47
49
  case action
48
50
  when 'md'
49
51
  puts MarkdownTables.make_table(labels, data, is_rows: true, align: ['l'])
data/lib/punchcard.rb CHANGED
@@ -12,7 +12,7 @@ class PunchCard
12
12
  HOURLY_RATE_PATTERN = /^\s*(\d+)([^\d]+)*\s*/i
13
13
  TIME_POINT_PATTERN = /^((\d+|.+?\s[\+\-]\d{4}?\s*)(\-)*(\d+|\s.+\d?)*)$/
14
14
  META_KEY_PATTERN = /^([a-zA-Z0-9]+)\:\s*(.*)$/
15
- VERSION = '1.0.3'
15
+ VERSION = '1.0.4'
16
16
 
17
17
  attr_accessor :project
18
18
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: punched
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Philipp Staender
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-18 00:00:00.000000000 Z
11
+ date: 2019-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: markdown-tables
@@ -61,7 +61,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
61
61
  version: '0'
62
62
  requirements: []
63
63
  rubyforge_project: punched
64
- rubygems_version: 2.5.2.3
64
+ rubygems_version: 2.7.8
65
65
  signing_key:
66
66
  specification_version: 4
67
67
  summary: Punchcard Timetracker