punched 1.3.1 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/punched +2 -1
- data/lib/punchcard.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b9e6c733da15335832d27af80790665daed6c11c5baad9fbca2e221c094a15ca
|
|
4
|
+
data.tar.gz: 9d0817147f2df8b7c275ca233c45640b4fe9b2919bad621d4b3fe7cacd9847ba
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7a3e6d274a7e53e9672178aaf1ff4beb283cba46f8b48b28f101f7e433af24195f016a5200f4a3b9222d51cf4daed4c10c5e1270a931730ed184f67b8fc54051
|
|
7
|
+
data.tar.gz: e4ad79f601795b9fa1f0afda921cec744ad853f2fc54c82122abea80faeffcf37f1d3c4c5b0b2b388c442efa933c059fc9ffbb7d51b21579090619526e290a9b
|
data/bin/punched
CHANGED
|
@@ -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! "
|
|
187
|
+
exit_with_error! "Unknown action '#{e.message}'\n#{usage}"
|
|
187
188
|
end
|
|
188
189
|
end
|
data/lib/punchcard.rb
CHANGED
|
@@ -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.
|
|
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.
|
|
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-
|
|
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.
|
|
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: []
|