pomo 0.2.0 → 0.3.0
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/History.md +5 -0
- data/bin/pomo +3 -0
- data/lib/pomo/version.rb +1 -1
- data/pomo.gemspec +2 -2
- metadata +2 -2
data/History.md
CHANGED
data/bin/pomo
CHANGED
@@ -191,11 +191,14 @@ command :list do |c|
|
|
191
191
|
c.option '-c', '--complete', 'List only completed tasks'
|
192
192
|
c.option '-i', '--incomplete', 'List only incompleted tasks'
|
193
193
|
c.action do |args, options|
|
194
|
+
total = 0
|
194
195
|
list.tasks.each_with_index do |task, i|
|
195
196
|
next if options.complete && !task.complete?
|
196
197
|
next if options.incomplete && task.complete?
|
197
198
|
say ' %s %2d. %-45s : %d minutes' % [task.complete? ? '√' : ' ', i, task.to_s, task.length]
|
199
|
+
total += task.length
|
198
200
|
end
|
201
|
+
say ' ' * 55 + '%d minutes' % total
|
199
202
|
end
|
200
203
|
end
|
201
204
|
|
data/lib/pomo/version.rb
CHANGED
data/pomo.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{pomo}
|
5
|
-
s.version = "0.
|
5
|
+
s.version = "0.3.0"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["TJ Holowaychuk"]
|
9
|
-
s.date = %q{2009-10
|
9
|
+
s.date = %q{2009-11-10}
|
10
10
|
s.default_executable = %q{pomo}
|
11
11
|
s.description = %q{Pomodoro time management for the command-line}
|
12
12
|
s.email = %q{tj@vision-media.ca}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pomo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- TJ Holowaychuk
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-10
|
12
|
+
date: 2009-11-10 00:00:00 -08:00
|
13
13
|
default_executable: pomo
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|