punched 1.3.1 → 1.3.2

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 +4 -4
  2. data/bin/punched +2 -1
  3. data/lib/punchcard.rb +1 -1
  4. metadata +6 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e95894483cb39658bf8b2df9eddece40e114f5afc4c62e8705c5de00345ee3cd
4
- data.tar.gz: 32431041a7583350ff2f4dd4e1f90c104cae6f100838caf708560a4f9fac5e8a
3
+ metadata.gz: b9e6c733da15335832d27af80790665daed6c11c5baad9fbca2e221c094a15ca
4
+ data.tar.gz: 9d0817147f2df8b7c275ca233c45640b4fe9b2919bad621d4b3fe7cacd9847ba
5
5
  SHA512:
6
- metadata.gz: 6d56bd82d7e3e745a0d6c712e3f68af52e65a8df0e0430e68bea264138d36d60a0cef92fcf039ba183307e85e3aab59793525d030c1441fa2709982b742373f7
7
- data.tar.gz: c99e60f4b12a4848feec37f5454ce1c6b343e5d083821276aa7cb12f050406533b560c02250788736c956e401f05f604afc2ab0c63272a542016623c17f5f0fb
6
+ metadata.gz: 7a3e6d274a7e53e9672178aaf1ff4beb283cba46f8b48b28f101f7e433af24195f016a5200f4a3b9222d51cf4daed4c10c5e1270a931730ed184f67b8fc54051
7
+ data.tar.gz: e4ad79f601795b9fa1f0afda921cec744ad853f2fc54c82122abea80faeffcf37f1d3c4c5b0b2b388c442efa933c059fc9ffbb7d51b21579090619526e290a9b
@@ -157,6 +157,7 @@ project_name = ARGV[1]
157
157
 
158
158
  if selected_action
159
159
  begin
160
+ raise UnknownActionError.new(selected_action) unless action_available?(selected_action)
160
161
  if selected_action == 'all'
161
162
  all(ARGV[1] || 'plain')
162
163
  elsif selected_action == 'totalsum'
@@ -183,6 +184,6 @@ if selected_action
183
184
  rescue PunchCardError => e
184
185
  exit_with_error! "Error: #{e.message}"
185
186
  rescue UnknownActionError => e
186
- exit_with_error! "Unrecognized action '#{selected_action || e.message}'\n#{usage}"
187
+ exit_with_error! "Unknown action '#{e.message}'\n#{usage}"
187
188
  end
188
189
  end
@@ -13,7 +13,7 @@ class PunchCard
13
13
  HOURLY_RATE_PATTERN = /^\s*(\d+)([^\d]+)*\s*/i.freeze
14
14
  TIME_POINT_PATTERN = /^((\d+|.+?\s[\+\-]\d{4}?\s*)(\-)*(\d+|\s.+\d?)*)$/.freeze
15
15
  META_KEY_PATTERN = /^([a-zA-Z0-9]+)\:\s*(.*)$/.freeze
16
- VERSION = '1.3.1'
16
+ VERSION = '1.3.2'
17
17
 
18
18
  attr_accessor :title
19
19
 
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.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Philipp Staender
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-30 00:00:00.000000000 Z
11
+ date: 2020-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: markdown-tables
@@ -45,7 +45,7 @@ homepage: https://github.com/pstaender/punchcard
45
45
  licenses:
46
46
  - GPL-3.0
47
47
  metadata: {}
48
- post_install_message:
48
+ post_install_message:
49
49
  rdoc_options: []
50
50
  require_paths:
51
51
  - lib
@@ -60,8 +60,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  requirements: []
63
- rubygems_version: 3.0.6
64
- signing_key:
63
+ rubygems_version: 3.1.2
64
+ signing_key:
65
65
  specification_version: 4
66
66
  summary: Punchcard Timetracker
67
67
  test_files: []