pomo 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/bin/pomo +7 -1
  2. data/lib/pomo/version.rb +1 -1
  3. data/pomo.gemspec +1 -1
  4. metadata +1 -1
data/bin/pomo CHANGED
@@ -7,7 +7,9 @@ require 'pomo'
7
7
 
8
8
  program :version, Pomo::VERSION
9
9
  program :description, 'Pomodoro time management'
10
- program :int_message, "\nTerminated pomodoro; any tasks which were running will not be marked as complete"
10
+ program :int_message, "\nTerminated pomo" \
11
+ "\n * previously running tasks not marked as complete" \
12
+ "\n * manually complete a task with `$ pomo complete <task>`"
11
13
 
12
14
  list = Pomo::List.new '~/.pomo'
13
15
 
@@ -121,8 +123,12 @@ command :list do |c|
121
123
  c.syntax = 'pomo list [options]'
122
124
  c.description = 'List all tasks'
123
125
  c.example 'List all tasks', 'pomo list'
126
+ c.option '-c', '--complete', 'List only completed tasks'
127
+ c.option '-i', '--incomplete', 'List only incompleted tasks'
124
128
  c.action do |args, options|
125
129
  list.tasks.each_with_index do |task, i|
130
+ next if options.complete && !task.complete?
131
+ next if options.incomplete && task.complete?
126
132
  say ' %s %2d. %-35s : %d minutes' % [task.complete? ? '√' : ' ', i, task.to_s, task.length]
127
133
  end
128
134
  end
data/lib/pomo/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
 
2
2
  module Pomo
3
- VERSION = '0.0.2'
3
+ VERSION = '0.0.3'
4
4
  end
data/pomo.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{pomo}
5
- s.version = "0.0.2"
5
+ s.version = "0.0.3"
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"]
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.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - TJ Holowaychuk