pomo 0.5.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/History.md +6 -0
- data/Rakefile +1 -1
- data/Readme.md +1 -1
- data/bin/pomo +2 -1
- data/lib/pomo/task.rb +2 -1
- data/lib/pomo/version.rb +1 -1
- data/pomo.gemspec +5 -5
- metadata +3 -3
data/History.md
CHANGED
data/Rakefile
CHANGED
@@ -10,7 +10,7 @@ Echoe.new "pomo", Pomo::VERSION do |p|
|
|
10
10
|
p.email = "tj@vision-media.ca"
|
11
11
|
p.summary = "Pomodoro time management for the command-line"
|
12
12
|
p.url = "http://github.com/visionmedia/pomo"
|
13
|
-
p.runtime_dependencies << 'commander >=4.0.
|
13
|
+
p.runtime_dependencies << 'commander >=4.0.2'
|
14
14
|
p.runtime_dependencies << 'growl >=1.0.3'
|
15
15
|
end
|
16
16
|
|
data/Readme.md
CHANGED
@@ -47,7 +47,7 @@ List your tasks (or use `pomo` which defaults to `pomo list`):
|
|
47
47
|
0. Fix IE stying issues : 25 minutes
|
48
48
|
1. Destroy IE : 25 minutes
|
49
49
|
|
50
|
-
Start the first task:
|
50
|
+
Start the first incomplete task:
|
51
51
|
$ pomo start
|
52
52
|
Started Fix IE stying issues, you have 25 minutes :)
|
53
53
|
(=........................) 24 minutes remaining
|
data/bin/pomo
CHANGED
@@ -46,11 +46,12 @@ command :start do |c|
|
|
46
46
|
c.syntax = 'pomo start [task] [options]'
|
47
47
|
c.summary = 'Start a task'
|
48
48
|
c.description = 'Start a task, given the task [task] or the first task'
|
49
|
-
c.example 'Start the first task', 'pomo start'
|
49
|
+
c.example 'Start the first incomplete task', 'pomo start'
|
50
50
|
c.example 'Start the first task', 'pomo start 0'
|
51
51
|
c.example 'Start the first task', 'pomo start first'
|
52
52
|
c.example 'Start the fifth task', 'pomo start 5'
|
53
53
|
c.action do |args, options|
|
54
|
+
args = ['incomplete'] if args.empty?
|
54
55
|
list.find(*args) do |task, i|
|
55
56
|
abort 'task already completed' if task.complete?
|
56
57
|
say "Started #{task}, you have #{task.length} minutes :)"
|
data/lib/pomo/task.rb
CHANGED
@@ -57,7 +57,8 @@ module Pomo
|
|
57
57
|
|
58
58
|
def start
|
59
59
|
complete_message = "time is up! hope you are finished #{self}"
|
60
|
-
|
60
|
+
format_message = "(:progress_bar) :remaining minutes remaining"
|
61
|
+
progress (0..length).to_a.reverse, :format => format_message, :tokens => { :remaining => length }, :complete_message => complete_message do |remaining|
|
61
62
|
if remaining == length / 2
|
62
63
|
notify_info "#{remaining} minutes remaining, half way there!"
|
63
64
|
elsif remaining == 5
|
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 = "1.0.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{2010-01-
|
9
|
+
s.date = %q{2010-01-19}
|
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}
|
@@ -25,14 +25,14 @@ Gem::Specification.new do |s|
|
|
25
25
|
s.specification_version = 3
|
26
26
|
|
27
27
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
28
|
-
s.add_runtime_dependency(%q<commander>, [">= 4.0.
|
28
|
+
s.add_runtime_dependency(%q<commander>, [">= 4.0.2"])
|
29
29
|
s.add_runtime_dependency(%q<growl>, [">= 1.0.3"])
|
30
30
|
else
|
31
|
-
s.add_dependency(%q<commander>, [">= 4.0.
|
31
|
+
s.add_dependency(%q<commander>, [">= 4.0.2"])
|
32
32
|
s.add_dependency(%q<growl>, [">= 1.0.3"])
|
33
33
|
end
|
34
34
|
else
|
35
|
-
s.add_dependency(%q<commander>, [">= 4.0.
|
35
|
+
s.add_dependency(%q<commander>, [">= 4.0.2"])
|
36
36
|
s.add_dependency(%q<growl>, [">= 1.0.3"])
|
37
37
|
end
|
38
38
|
end
|
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: 1.0.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: 2010-01-
|
12
|
+
date: 2010-01-19 00:00:00 -08:00
|
13
13
|
default_executable: pomo
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -20,7 +20,7 @@ dependencies:
|
|
20
20
|
requirements:
|
21
21
|
- - ">="
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: 4.0.
|
23
|
+
version: 4.0.2
|
24
24
|
version:
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: growl
|