timetrap 1.15.1 → 1.15.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/pull_request_template.md +29 -0
- data/.github/workflows/rspec.yml +16 -0
- data/.gitignore +1 -0
- data/.rspec +1 -2
- data/.travis.yml +6 -3
- data/CONTRIBUTORS +1 -0
- data/README.md +39 -6
- data/completions/bash/timetrap-autocomplete.bash +2 -1
- data/lib/timetrap/cli.rb +24 -5
- data/lib/timetrap/formatters/csv.rb +5 -1
- data/lib/timetrap/formatters/ical.rb +8 -16
- data/lib/timetrap/formatters/json.rb +6 -1
- data/lib/timetrap/helpers.rb +6 -6
- data/lib/timetrap/models.rb +1 -20
- data/lib/timetrap/schema.rb +47 -0
- data/lib/timetrap/version.rb +1 -1
- data/lib/timetrap.rb +6 -2
- data/spec/spec_helper.rb +40 -0
- data/spec/support/local_time.rb +7 -0
- data/spec/support/with_rounding_on.rb +9 -0
- data/spec/support/with_stubbed_config.rb +7 -0
- data/spec/timetrap_spec.rb +318 -300
- data/timetrap.gemspec +9 -9
- metadata +58 -47
data/timetrap.gemspec
CHANGED
@@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.version = Timetrap::VERSION
|
9
9
|
spec.authors = ["Sam Goldstein"]
|
10
10
|
spec.email = ["sgrock@gmail.org"]
|
11
|
-
spec.description = "Command line time tracker"
|
12
11
|
spec.summary = "Command line time tracker"
|
12
|
+
spec.description = "Timetrap is a simple command line time tracker written in ruby. It provides an easy to use command line interface for tracking what you spend your time on."
|
13
13
|
spec.homepage = "https://github.com/samg/timetrap"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
@@ -18,15 +18,15 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_development_dependency "bundler", "~> 1
|
22
|
-
spec.add_development_dependency "rake"
|
23
|
-
spec.add_development_dependency "rspec", "~> 3.
|
24
|
-
spec.add_development_dependency "fakefs"
|
21
|
+
spec.add_development_dependency "bundler", "~> 2.1"
|
22
|
+
spec.add_development_dependency "rake", "~> 13.0"
|
23
|
+
spec.add_development_dependency "rspec", "~> 3.9.0"
|
24
|
+
spec.add_development_dependency "fakefs", "~> 0.20"
|
25
25
|
# More recent versions of icalendar drop support for Ruby 1.8.7
|
26
|
-
spec.add_development_dependency "icalendar", "~>
|
27
|
-
spec.add_development_dependency "json"
|
28
|
-
spec.add_dependency "sequel", "~>
|
29
|
-
spec.add_dependency "sqlite3", "~> 1.
|
26
|
+
spec.add_development_dependency "icalendar", "~> 2.7"
|
27
|
+
spec.add_development_dependency "json", "~> 2.3"
|
28
|
+
spec.add_dependency "sequel", "~> 5.30.0"
|
29
|
+
spec.add_dependency "sqlite3", "~> 1.4"
|
30
30
|
|
31
31
|
spec.add_dependency "chronic", "~> 0.10.2"
|
32
32
|
end
|
metadata
CHANGED
@@ -1,142 +1,143 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: timetrap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.15.
|
4
|
+
version: 1.15.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Goldstein
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-10-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1
|
19
|
+
version: '2.1'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '1
|
26
|
+
version: '2.1'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
33
|
+
version: '13.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
40
|
+
version: '13.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - ~>
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 3.
|
47
|
+
version: 3.9.0
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - ~>
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 3.
|
54
|
+
version: 3.9.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: fakefs
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
61
|
+
version: '0.20'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
68
|
+
version: '0.20'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: icalendar
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - ~>
|
73
|
+
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
75
|
+
version: '2.7'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - ~>
|
80
|
+
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
82
|
+
version: '2.7'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: json
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
89
|
+
version: '2.3'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
96
|
+
version: '2.3'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: sequel
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - ~>
|
101
|
+
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
103
|
+
version: 5.30.0
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- - ~>
|
108
|
+
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
110
|
+
version: 5.30.0
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: sqlite3
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- - ~>
|
115
|
+
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 1.
|
117
|
+
version: '1.4'
|
118
118
|
type: :runtime
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- - ~>
|
122
|
+
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: 1.
|
124
|
+
version: '1.4'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: chronic
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- - ~>
|
129
|
+
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
131
|
version: 0.10.2
|
132
132
|
type: :runtime
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
|
-
- - ~>
|
136
|
+
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: 0.10.2
|
139
|
-
description:
|
139
|
+
description: Timetrap is a simple command line time tracker written in ruby. It provides
|
140
|
+
an easy to use command line interface for tracking what you spend your time on.
|
140
141
|
email:
|
141
142
|
- sgrock@gmail.org
|
142
143
|
executables:
|
@@ -146,9 +147,11 @@ executables:
|
|
146
147
|
extensions: []
|
147
148
|
extra_rdoc_files: []
|
148
149
|
files:
|
149
|
-
- .
|
150
|
-
- .rspec
|
151
|
-
- .
|
150
|
+
- ".github/pull_request_template.md"
|
151
|
+
- ".github/workflows/rspec.yml"
|
152
|
+
- ".gitignore"
|
153
|
+
- ".rspec"
|
154
|
+
- ".travis.yml"
|
152
155
|
- CONTRIBUTORS
|
153
156
|
- Gemfile
|
154
157
|
- LICENSE.txt
|
@@ -177,11 +180,16 @@ files:
|
|
177
180
|
- lib/timetrap/formatters/text.rb
|
178
181
|
- lib/timetrap/helpers.rb
|
179
182
|
- lib/timetrap/models.rb
|
183
|
+
- lib/timetrap/schema.rb
|
180
184
|
- lib/timetrap/timer.rb
|
181
185
|
- lib/timetrap/version.rb
|
182
186
|
- spec/dotfile/.timetrap-sheet
|
183
187
|
- spec/dotfile/nested/.timetrap-sheet
|
184
188
|
- spec/dotfile/nested/no-sheet/.gitkeep
|
189
|
+
- spec/spec_helper.rb
|
190
|
+
- spec/support/local_time.rb
|
191
|
+
- spec/support/with_rounding_on.rb
|
192
|
+
- spec/support/with_stubbed_config.rb
|
185
193
|
- spec/timetrap_spec.rb
|
186
194
|
- timetrap-1.14.3.gem
|
187
195
|
- timetrap.gemspec
|
@@ -189,28 +197,31 @@ homepage: https://github.com/samg/timetrap
|
|
189
197
|
licenses:
|
190
198
|
- MIT
|
191
199
|
metadata: {}
|
192
|
-
post_install_message:
|
200
|
+
post_install_message:
|
193
201
|
rdoc_options: []
|
194
202
|
require_paths:
|
195
203
|
- lib
|
196
204
|
required_ruby_version: !ruby/object:Gem::Requirement
|
197
205
|
requirements:
|
198
|
-
- -
|
206
|
+
- - ">="
|
199
207
|
- !ruby/object:Gem::Version
|
200
208
|
version: '0'
|
201
209
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
202
210
|
requirements:
|
203
|
-
- -
|
211
|
+
- - ">="
|
204
212
|
- !ruby/object:Gem::Version
|
205
213
|
version: '0'
|
206
214
|
requirements: []
|
207
|
-
|
208
|
-
|
209
|
-
signing_key:
|
215
|
+
rubygems_version: 3.5.18
|
216
|
+
signing_key:
|
210
217
|
specification_version: 4
|
211
218
|
summary: Command line time tracker
|
212
219
|
test_files:
|
213
220
|
- spec/dotfile/.timetrap-sheet
|
214
221
|
- spec/dotfile/nested/.timetrap-sheet
|
215
222
|
- spec/dotfile/nested/no-sheet/.gitkeep
|
223
|
+
- spec/spec_helper.rb
|
224
|
+
- spec/support/local_time.rb
|
225
|
+
- spec/support/with_rounding_on.rb
|
226
|
+
- spec/support/with_stubbed_config.rb
|
216
227
|
- spec/timetrap_spec.rb
|