punched 1.0.1 → 1.0.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.
Files changed (5) hide show
  1. checksums.yaml +5 -5
  2. data/Gemfile +3 -0
  3. data/README.md +17 -13
  4. data/lib/punchcard.rb +1 -1
  5. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: 23e4eca4d682bad13d5cdbd591d0d00558c32eabafe43212b8fea72ea79bb2d7
4
- data.tar.gz: a16bf256129416cc43f533ff0fdcfc4889c04986af3b0c9e94c38ca44ce6a9f4
2
+ SHA1:
3
+ metadata.gz: 490059cbf3b35b8a8ffc7fec048f9e15bfa02177
4
+ data.tar.gz: fda8522b16313933a31bf7b5dac8272b98ae7837
5
5
  SHA512:
6
- metadata.gz: d788f1890e428d4241de85f5244658fec0ee5eeecfe4b074337cfcf98bad4eb9d06257202150633a1fd754d18b2d4bbda15b2677cf9b7a286e1cbef727c4b18d
7
- data.tar.gz: 1881cc1f2749d4409e3f96a4fd7ad53ddd05964a726762c573b2f85f36a338263996d5d1654e2e4e56757fd323d5d9047c6c983a79e34c98dbbd236f7bfc8dea
6
+ metadata.gz: d9b9b63b72cb4d781570e3502bc4940fb139cca479ed51884e3fe6110753dbe5b65ee74a28a5707c2e65848115e4e501676d705a9c7db14ff23bc38362a73c9f
7
+ data.tar.gz: ca230f357165d8b38eaa8c637ba748bf7af4c9a186e18f430fc17b873cdd70c15fdfb401f1404e0e61b5582396254809aaf16eab3b99bade91488808f46cbfba
data/Gemfile CHANGED
@@ -1,3 +1,6 @@
1
1
  source 'https://rubygems.org'
2
+
3
+ gemspec
4
+
2
5
  gem "rspec"
3
6
  gem "markdown-tables", "~> 1.0.2"
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 in CSV format
100
+ #### List all projects with total time
101
101
 
102
102
  ```sh
103
103
  $ punched all
104
104
 
105
- "project","status","last active on","total duration","hourly rate","earnings"
106
- "Website","stopped","2017-05-07 15:50:00","04:06:00","250.0 €","1025.00 €"
107
- "Punchcard (programming)","stopped","2017-07-11 12:47:42","01:10:04","",""
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
- You can use `all` with any other action as well, e.g. `punched all stop` to stop all running projects.
113
+ ```
111
114
 
112
- Hint: Use your favorite output formatter to get a nicer project summary of your choice; e.g. with [csv2md](https://www.npmjs.com/package/csv2md):
115
+ To use `md` or `csv` as output format:
113
116
 
114
117
  ```sh
115
- $ punched all | csv2md --pretty
118
+ $ punched all csv
116
119
 
117
- | project | status | last active on | total duration | hourly rate | earnings |
118
- |---------------------------|---------|---------------------|----------------|-------------|----------|
119
- | Website | stopped | 2017-05-07 15:50:00 | 04:06:00 | 250.0 € | 1025.0 € |
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.1'
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.1
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-13 00:00:00.000000000 Z
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.7.8
50
+ rubygems_version: 2.5.2.3
51
51
  signing_key:
52
52
  specification_version: 4
53
53
  summary: Punchcard Timetracker