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 CHANGED
@@ -1,4 +1,9 @@
1
1
 
2
+ 0.3.0 / 2009-11-10
3
+ ==================
4
+
5
+ * Added total minutes to list output
6
+
2
7
  0.2.0 / 2009-10-28
3
8
  ==================
4
9
 
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
 
@@ -1,4 +1,4 @@
1
1
 
2
2
  module Pomo
3
- VERSION = '0.2.0'
3
+ VERSION = '0.3.0'
4
4
  end
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{pomo}
5
- s.version = "0.2.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-28}
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.2.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-28 00:00:00 -07:00
12
+ date: 2009-11-10 00:00:00 -08:00
13
13
  default_executable: pomo
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency