timetrap 1.1.2 → 1.1.3
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.
- data/.gitignore +1 -0
- data/README.md +4 -0
- data/VERSION.yml +1 -1
- data/lib/timetrap/cli.rb +2 -0
- data/lib/timetrap/formatters/csv.rb +2 -2
- data/spec/timetrap_spec.rb +8 -8
- data/timetrap.gemspec +78 -0
- metadata +5 -3
data/.gitignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
tags
|
data/README.md
CHANGED
@@ -182,3 +182,7 @@ Global Options
|
|
182
182
|
and end times to the closest 15 minute increment. This flag only affects the
|
183
183
|
display commands (e.g. display, list, week, etc.) and is non-destructive.
|
184
184
|
The actual start and end time stored by Timetrap are unaffected.
|
185
|
+
|
186
|
+
Bugs and Feature Requests
|
187
|
+
--------
|
188
|
+
Submit to http://github.com/samg/timetrap/issues
|
data/VERSION.yml
CHANGED
data/lib/timetrap/cli.rb
CHANGED
@@ -4,9 +4,9 @@ module Timetrap
|
|
4
4
|
attr_reader :output
|
5
5
|
|
6
6
|
def initialize entries
|
7
|
-
@output = entries.inject("start,end,note\n") do |out, e|
|
7
|
+
@output = entries.inject("start,end,note,sheet\n") do |out, e|
|
8
8
|
next(out) unless e.end
|
9
|
-
out << %|"#{e.start.strftime(time_format)}","#{e.end.strftime(time_format)}","#{e.note}"\n|
|
9
|
+
out << %|"#{e.start.strftime(time_format)}","#{e.end.strftime(time_format)}","#{e.note}","#{e.sheet}"\n|
|
10
10
|
end
|
11
11
|
end
|
12
12
|
|
data/spec/timetrap_spec.rb
CHANGED
@@ -205,26 +205,26 @@ Grand Total 10:00:00
|
|
205
205
|
invoke 'in'
|
206
206
|
invoke 'format --format csv'
|
207
207
|
$stdout.string.should == <<-EOF
|
208
|
-
start,end,note
|
209
|
-
"2008-10-03 12:00:00","2008-10-03 14:00:00","note"
|
210
|
-
"2008-10-05 12:00:00","2008-10-05 14:00:00","note"
|
208
|
+
start,end,note,sheet
|
209
|
+
"2008-10-03 12:00:00","2008-10-03 14:00:00","note","default"
|
210
|
+
"2008-10-05 12:00:00","2008-10-05 14:00:00","note","default"
|
211
211
|
EOF
|
212
212
|
end
|
213
213
|
|
214
214
|
it "should filter events by the passed dates" do
|
215
215
|
invoke 'format --format csv --start 2008-10-03 --end 2008-10-03'
|
216
216
|
$stdout.string.should == <<-EOF
|
217
|
-
start,end,note
|
218
|
-
"2008-10-03 12:00:00","2008-10-03 14:00:00","note"
|
217
|
+
start,end,note,sheet
|
218
|
+
"2008-10-03 12:00:00","2008-10-03 14:00:00","note","default"
|
219
219
|
EOF
|
220
220
|
end
|
221
221
|
|
222
222
|
it "should not filter events by date when none are passed" do
|
223
223
|
invoke 'format --format csv'
|
224
224
|
$stdout.string.should == <<-EOF
|
225
|
-
start,end,note
|
226
|
-
"2008-10-03 12:00:00","2008-10-03 14:00:00","note"
|
227
|
-
"2008-10-05 12:00:00","2008-10-05 14:00:00","note"
|
225
|
+
start,end,note,sheet
|
226
|
+
"2008-10-03 12:00:00","2008-10-03 14:00:00","note","default"
|
227
|
+
"2008-10-05 12:00:00","2008-10-05 14:00:00","note","default"
|
228
228
|
EOF
|
229
229
|
end
|
230
230
|
end
|
data/timetrap.gemspec
ADDED
@@ -0,0 +1,78 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{timetrap}
|
8
|
+
s.version = "1.1.3"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Sam Goldstein"]
|
12
|
+
s.date = %q{2009-11-27}
|
13
|
+
s.default_executable = %q{t}
|
14
|
+
s.description = %q{Timetrap is a lightweight command line time tracker, written in ruby. See http://github.com/samg/timetrap for more details}
|
15
|
+
s.email = %q{sgrock@gmail.com}
|
16
|
+
s.executables = ["t"]
|
17
|
+
s.extra_rdoc_files = [
|
18
|
+
"LICENSE.txt",
|
19
|
+
"README.md"
|
20
|
+
]
|
21
|
+
s.files = [
|
22
|
+
".gitignore",
|
23
|
+
"LICENSE.txt",
|
24
|
+
"README.md",
|
25
|
+
"Rakefile",
|
26
|
+
"VERSION.yml",
|
27
|
+
"bin/dev_t",
|
28
|
+
"bin/t",
|
29
|
+
"lib/timetrap.rb",
|
30
|
+
"lib/timetrap/cli.rb",
|
31
|
+
"lib/timetrap/formatters/csv.rb",
|
32
|
+
"lib/timetrap/formatters/ical.rb",
|
33
|
+
"lib/timetrap/formatters/text.rb",
|
34
|
+
"lib/timetrap/helpers.rb",
|
35
|
+
"lib/timetrap/models.rb",
|
36
|
+
"spec/timetrap_spec.rb",
|
37
|
+
"timetrap.gemspec"
|
38
|
+
]
|
39
|
+
s.homepage = %q{http://github.com/samg/timetrap/tree/master}
|
40
|
+
s.rdoc_options = ["--inline-source", "--charset=UTF-8"]
|
41
|
+
s.require_paths = ["lib"]
|
42
|
+
s.rubygems_version = %q{1.3.5}
|
43
|
+
s.summary = %q{Command line time tracker}
|
44
|
+
s.test_files = [
|
45
|
+
"spec/timetrap_spec.rb"
|
46
|
+
]
|
47
|
+
|
48
|
+
if s.respond_to? :specification_version then
|
49
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
50
|
+
s.specification_version = 2
|
51
|
+
|
52
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
53
|
+
s.add_runtime_dependency(%q<sequel>, [">= 2.12.0"])
|
54
|
+
s.add_runtime_dependency(%q<sqlite3-ruby>, [">= 1.2.5"])
|
55
|
+
s.add_runtime_dependency(%q<chronic>, [">= 0.2.3"])
|
56
|
+
s.add_runtime_dependency(%q<getopt-declare>, [">= 1.28"])
|
57
|
+
s.add_runtime_dependency(%q<icalendar>, [">= 1.1.0"])
|
58
|
+
s.add_runtime_dependency(%q<mime-types>, [">= 1.15"])
|
59
|
+
s.add_runtime_dependency(%q<diff-lcs>, [">= 1.1.2"])
|
60
|
+
else
|
61
|
+
s.add_dependency(%q<sequel>, [">= 2.12.0"])
|
62
|
+
s.add_dependency(%q<sqlite3-ruby>, [">= 1.2.5"])
|
63
|
+
s.add_dependency(%q<chronic>, [">= 0.2.3"])
|
64
|
+
s.add_dependency(%q<getopt-declare>, [">= 1.28"])
|
65
|
+
s.add_dependency(%q<icalendar>, [">= 1.1.0"])
|
66
|
+
s.add_dependency(%q<mime-types>, [">= 1.15"])
|
67
|
+
s.add_dependency(%q<diff-lcs>, [">= 1.1.2"])
|
68
|
+
end
|
69
|
+
else
|
70
|
+
s.add_dependency(%q<sequel>, [">= 2.12.0"])
|
71
|
+
s.add_dependency(%q<sqlite3-ruby>, [">= 1.2.5"])
|
72
|
+
s.add_dependency(%q<chronic>, [">= 0.2.3"])
|
73
|
+
s.add_dependency(%q<getopt-declare>, [">= 1.28"])
|
74
|
+
s.add_dependency(%q<icalendar>, [">= 1.1.0"])
|
75
|
+
s.add_dependency(%q<mime-types>, [">= 1.15"])
|
76
|
+
s.add_dependency(%q<diff-lcs>, [">= 1.1.2"])
|
77
|
+
end
|
78
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: timetrap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Goldstein
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-11-
|
12
|
+
date: 2009-11-27 00:00:00 -08:00
|
13
13
|
default_executable: t
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -82,7 +82,7 @@ dependencies:
|
|
82
82
|
- !ruby/object:Gem::Version
|
83
83
|
version: 1.1.2
|
84
84
|
version:
|
85
|
-
description:
|
85
|
+
description: Timetrap is a lightweight command line time tracker, written in ruby. See http://github.com/samg/timetrap for more details
|
86
86
|
email: sgrock@gmail.com
|
87
87
|
executables:
|
88
88
|
- t
|
@@ -92,6 +92,7 @@ extra_rdoc_files:
|
|
92
92
|
- LICENSE.txt
|
93
93
|
- README.md
|
94
94
|
files:
|
95
|
+
- .gitignore
|
95
96
|
- LICENSE.txt
|
96
97
|
- README.md
|
97
98
|
- Rakefile
|
@@ -106,6 +107,7 @@ files:
|
|
106
107
|
- lib/timetrap/helpers.rb
|
107
108
|
- lib/timetrap/models.rb
|
108
109
|
- spec/timetrap_spec.rb
|
110
|
+
- timetrap.gemspec
|
109
111
|
has_rdoc: true
|
110
112
|
homepage: http://github.com/samg/timetrap/tree/master
|
111
113
|
licenses: []
|