punched 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Gemfile +3 -0
- data/README.md +17 -13
- data/lib/punchcard.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 490059cbf3b35b8a8ffc7fec048f9e15bfa02177
|
4
|
+
data.tar.gz: fda8522b16313933a31bf7b5dac8272b98ae7837
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9b9b63b72cb4d781570e3502bc4940fb139cca479ed51884e3fe6110753dbe5b65ee74a28a5707c2e65848115e4e501676d705a9c7db14ff23bc38362a73c9f
|
7
|
+
data.tar.gz: ca230f357165d8b38eaa8c637ba748bf7af4c9a186e18f430fc17b873cdd70c15fdfb401f1404e0e61b5582396254809aaf16eab3b99bade91488808f46cbfba
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -94,32 +94,36 @@ List all available actions:
|
|
94
94
|
|
95
95
|
```sh
|
96
96
|
$ punched help
|
97
|
-
Usage: punched csv|details|remove|rename|set|start|status|stop|toggle|total 'Name of my project'
|
97
|
+
Usage: punched all|csv|details|remove|rename|set|start|status|stop|toggle|total 'Name of my project'
|
98
98
|
```
|
99
99
|
|
100
|
-
#### List all projects with total time
|
100
|
+
#### List all projects with total time
|
101
101
|
|
102
102
|
```sh
|
103
103
|
$ punched all
|
104
104
|
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
105
|
+
|========================================|=========|=====================|================|=============|==========|
|
106
|
+
| project | status | last active on | total duration | hourly rate | earnings |
|
107
|
+
|========================================|=========|=====================|================|=============|==========|
|
108
|
+
| Website | stopped | 2017-05-07 15:50:00 | 00:04:40 | 95.0 € | 380.00 € |
|
109
|
+
|----------------------------------------|---------|---------------------|----------------|-------------|----------|
|
110
|
+
| Punchcard (programming) | stopped | 2017-07-11 12:47:42 | 01:10:04 | | |
|
111
|
+
|========================================|=========|=====================|================|=============|==========|
|
109
112
|
|
110
|
-
|
113
|
+
```
|
111
114
|
|
112
|
-
|
115
|
+
To use `md` or `csv` as output format:
|
113
116
|
|
114
117
|
```sh
|
115
|
-
$ punched all
|
118
|
+
$ punched all csv
|
116
119
|
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
| Punchcard (programming) | stopped | 2017-05-07 12:47:42 | 01:10:04 | | |
|
120
|
+
"project","status","last active on","total duration","hourly rate","earnings"
|
121
|
+
"Website","stopped","2017-05-07 15:50:00","04:06:00","95.0 €","380.00 €"
|
122
|
+
"Punchcard (programming)","stopped","2017-07-11 12:47:42","01:10:04","",""
|
121
123
|
```
|
122
124
|
|
125
|
+
You can use `all` with any other action as well, e.g. `punched all stop` to stop all running projects.
|
126
|
+
|
123
127
|
### Store projects files in a custom folder and sync them between computers
|
124
128
|
|
125
129
|
By default, PunchCard will store the data in `~/.punchcard/`. Define your custom destination with:
|
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.
|
15
|
+
VERSION = '1.0.2'
|
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.
|
4
|
+
version: 1.0.2
|
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-
|
11
|
+
date: 2018-12-18 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Minimal time tracking tool for cli
|
14
14
|
email:
|
@@ -47,7 +47,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
47
47
|
version: '0'
|
48
48
|
requirements: []
|
49
49
|
rubyforge_project: punched
|
50
|
-
rubygems_version: 2.
|
50
|
+
rubygems_version: 2.5.2.3
|
51
51
|
signing_key:
|
52
52
|
specification_version: 4
|
53
53
|
summary: Punchcard Timetracker
|