pomo 1.0.1 → 2.0.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/.gitignore +17 -0
- data/DEVELOPMENT +15 -0
- data/Gemfile +4 -0
- data/{History.md → HISTORY.md} +11 -1
- data/LICENSE.txt +22 -0
- data/README.md +186 -0
- data/Rakefile +6 -15
- data/bin/pomo +43 -26
- data/lib/pomo.rb +11 -25
- data/lib/pomo/break.rb +17 -0
- data/lib/pomo/configuration.rb +74 -0
- data/lib/pomo/github_task.rb +19 -19
- data/lib/pomo/list.rb +30 -18
- data/lib/pomo/notifier.rb +26 -0
- data/lib/pomo/notifier/growl.rb +17 -0
- data/lib/pomo/notifier/libnotify.rb +14 -0
- data/lib/pomo/notifier/notification_center.rb +13 -0
- data/lib/pomo/notifier/quicksilver.rb +12 -0
- data/lib/pomo/task.rb +127 -32
- data/lib/pomo/version.rb +2 -2
- data/pomo.gemspec +24 -32
- metadata +123 -82
- data/Manifest +0 -17
- data/Readme.md +0 -137
- data/spec/spec.opts +0 -2
- data/tasks/docs.rake +0 -13
- data/tasks/gemspec.rake +0 -3
- data/tasks/spec.rake +0 -25
data/lib/pomo/version.rb
CHANGED
data/pomo.gemspec
CHANGED
@@ -1,38 +1,30 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'pomo/version'
|
2
5
|
|
3
|
-
Gem::Specification.new do |
|
4
|
-
|
5
|
-
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = 'pomo'
|
8
|
+
spec.version = Pomo::VERSION
|
9
|
+
spec.authors = ['TJ Holowaychuk', 'Steve McKinney']
|
10
|
+
spec.email = ['tj@vision-media.ca', 'stevemckinney@gmail.com']
|
11
|
+
spec.summary = "pomo-#{Pomo::VERSION}"
|
12
|
+
spec.description = 'Pomodoro time management for the command-line'
|
13
|
+
spec.homepage = 'https://github.com/visionmedia/pomo'
|
6
14
|
|
7
|
-
|
8
|
-
s.authors = ["TJ Holowaychuk"]
|
9
|
-
s.date = %q{2010-03-10}
|
10
|
-
s.default_executable = %q{pomo}
|
11
|
-
s.description = %q{Pomodoro time management for the command-line}
|
12
|
-
s.email = %q{tj@vision-media.ca}
|
13
|
-
s.executables = ["pomo"]
|
14
|
-
s.extra_rdoc_files = ["bin/pomo", "lib/pomo.rb", "lib/pomo/github_task.rb", "lib/pomo/list.rb", "lib/pomo/task.rb", "lib/pomo/version.rb", "tasks/docs.rake", "tasks/gemspec.rake", "tasks/spec.rake"]
|
15
|
-
s.files = ["History.md", "Manifest", "Rakefile", "Readme.md", "bin/pomo", "lib/pomo.rb", "lib/pomo/github_task.rb", "lib/pomo/list.rb", "lib/pomo/task.rb", "lib/pomo/version.rb", "pomo.gemspec", "spec/pomo_spec.rb", "spec/spec.opts", "spec/spec_helper.rb", "tasks/docs.rake", "tasks/gemspec.rake", "tasks/spec.rake"]
|
16
|
-
s.homepage = %q{http://github.com/visionmedia/pomo}
|
17
|
-
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Pomo", "--main", "Readme.md"]
|
18
|
-
s.require_paths = ["lib"]
|
19
|
-
s.rubyforge_project = %q{pomo}
|
20
|
-
s.rubygems_version = %q{1.3.6}
|
21
|
-
s.summary = %q{Pomodoro time management for the command-line}
|
15
|
+
spec.rubyforge_project = 'pomo'
|
22
16
|
|
23
|
-
|
24
|
-
|
25
|
-
|
17
|
+
spec.files = `git ls-files`.split($/)
|
18
|
+
spec.executables = spec.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
19
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
20
|
+
spec.require_paths = ['lib']
|
21
|
+
spec.rdoc_options = ['--line-numbers', '--inline-source', '--title', 'Pomo', '--main', 'Readme.md']
|
26
22
|
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
else
|
35
|
-
s.add_dependency(%q<commander>, [">= 4.0.2"])
|
36
|
-
s.add_dependency(%q<growl>, [">= 1.0.3"])
|
37
|
-
end
|
23
|
+
spec.add_dependency('commander', '~> 4.1')
|
24
|
+
spec.add_dependency('octokit', '~> 1.19')
|
25
|
+
spec.add_dependency('terminal-notifier', '~> 1.4') if /darwin/ =~ RUBY_PLATFORM
|
26
|
+
spec.add_dependency('growl', '~> 1.0') if /darwin/ =~ RUBY_PLATFORM
|
27
|
+
spec.add_dependency('libnotify', '~> 0.8') if /linux/ =~ RUBY_PLATFORM
|
28
|
+
|
29
|
+
spec.add_development_dependency('rspec', '~> 2.12')
|
38
30
|
end
|
metadata
CHANGED
@@ -1,119 +1,160 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: pomo
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
- 1
|
7
|
-
- 0
|
8
|
-
- 1
|
9
|
-
version: 1.0.1
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.0.0
|
5
|
+
prerelease:
|
10
6
|
platform: ruby
|
11
|
-
authors:
|
7
|
+
authors:
|
12
8
|
- TJ Holowaychuk
|
9
|
+
- Steve McKinney
|
13
10
|
autorequire:
|
14
11
|
bindir: bin
|
15
12
|
cert_chain: []
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
dependencies:
|
20
|
-
- !ruby/object:Gem::Dependency
|
13
|
+
date: 2012-12-16 00:00:00.000000000 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
21
16
|
name: commander
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
18
|
+
none: false
|
19
|
+
requirements:
|
20
|
+
- - ~>
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '4.1'
|
23
|
+
type: :runtime
|
22
24
|
prerelease: false
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
27
|
+
requirements:
|
28
|
+
- - ~>
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: '4.1'
|
31
|
+
- !ruby/object:Gem::Dependency
|
32
|
+
name: octokit
|
33
|
+
requirement: !ruby/object:Gem::Requirement
|
34
|
+
none: false
|
35
|
+
requirements:
|
36
|
+
- - ~>
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: '1.19'
|
32
39
|
type: :runtime
|
33
|
-
version_requirements: *id001
|
34
|
-
- !ruby/object:Gem::Dependency
|
35
|
-
name: growl
|
36
40
|
prerelease: false
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
41
|
+
version_requirements: !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
43
|
+
requirements:
|
44
|
+
- - ~>
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '1.19'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: terminal-notifier
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.4'
|
46
55
|
type: :runtime
|
47
|
-
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: !ruby/object:Gem::Requirement
|
58
|
+
none: false
|
59
|
+
requirements:
|
60
|
+
- - ~>
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '1.4'
|
63
|
+
- !ruby/object:Gem::Dependency
|
64
|
+
name: growl
|
65
|
+
requirement: !ruby/object:Gem::Requirement
|
66
|
+
none: false
|
67
|
+
requirements:
|
68
|
+
- - ~>
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '1.0'
|
71
|
+
type: :runtime
|
72
|
+
prerelease: false
|
73
|
+
version_requirements: !ruby/object:Gem::Requirement
|
74
|
+
none: false
|
75
|
+
requirements:
|
76
|
+
- - ~>
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: '1.0'
|
79
|
+
- !ruby/object:Gem::Dependency
|
80
|
+
name: rspec
|
81
|
+
requirement: !ruby/object:Gem::Requirement
|
82
|
+
none: false
|
83
|
+
requirements:
|
84
|
+
- - ~>
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: '2.12'
|
87
|
+
type: :development
|
88
|
+
prerelease: false
|
89
|
+
version_requirements: !ruby/object:Gem::Requirement
|
90
|
+
none: false
|
91
|
+
requirements:
|
92
|
+
- - ~>
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: '2.12'
|
48
95
|
description: Pomodoro time management for the command-line
|
49
|
-
email:
|
50
|
-
|
96
|
+
email:
|
97
|
+
- tj@vision-media.ca
|
98
|
+
- stevemckinney@gmail.com
|
99
|
+
executables:
|
51
100
|
- pomo
|
52
101
|
extensions: []
|
53
|
-
|
54
|
-
|
55
|
-
-
|
56
|
-
-
|
57
|
-
-
|
58
|
-
-
|
59
|
-
-
|
60
|
-
-
|
61
|
-
- tasks/docs.rake
|
62
|
-
- tasks/gemspec.rake
|
63
|
-
- tasks/spec.rake
|
64
|
-
files:
|
65
|
-
- History.md
|
66
|
-
- Manifest
|
102
|
+
extra_rdoc_files: []
|
103
|
+
files:
|
104
|
+
- .gitignore
|
105
|
+
- DEVELOPMENT
|
106
|
+
- Gemfile
|
107
|
+
- HISTORY.md
|
108
|
+
- LICENSE.txt
|
109
|
+
- README.md
|
67
110
|
- Rakefile
|
68
|
-
- Readme.md
|
69
111
|
- bin/pomo
|
70
112
|
- lib/pomo.rb
|
113
|
+
- lib/pomo/break.rb
|
114
|
+
- lib/pomo/configuration.rb
|
71
115
|
- lib/pomo/github_task.rb
|
72
116
|
- lib/pomo/list.rb
|
117
|
+
- lib/pomo/notifier.rb
|
118
|
+
- lib/pomo/notifier/growl.rb
|
119
|
+
- lib/pomo/notifier/libnotify.rb
|
120
|
+
- lib/pomo/notifier/notification_center.rb
|
121
|
+
- lib/pomo/notifier/quicksilver.rb
|
73
122
|
- lib/pomo/task.rb
|
74
123
|
- lib/pomo/version.rb
|
75
124
|
- pomo.gemspec
|
76
125
|
- spec/pomo_spec.rb
|
77
|
-
- spec/spec.opts
|
78
126
|
- spec/spec_helper.rb
|
79
|
-
|
80
|
-
- tasks/gemspec.rake
|
81
|
-
- tasks/spec.rake
|
82
|
-
has_rdoc: true
|
83
|
-
homepage: http://github.com/visionmedia/pomo
|
127
|
+
homepage: https://github.com/visionmedia/pomo
|
84
128
|
licenses: []
|
85
|
-
|
86
129
|
post_install_message:
|
87
|
-
rdoc_options:
|
130
|
+
rdoc_options:
|
88
131
|
- --line-numbers
|
89
132
|
- --inline-source
|
90
133
|
- --title
|
91
134
|
- Pomo
|
92
135
|
- --main
|
93
136
|
- Readme.md
|
94
|
-
require_paths:
|
137
|
+
require_paths:
|
95
138
|
- lib
|
96
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
requirements:
|
105
|
-
- -
|
106
|
-
- !ruby/object:Gem::Version
|
107
|
-
|
108
|
-
- 1
|
109
|
-
- 2
|
110
|
-
version: "1.2"
|
139
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
140
|
+
none: false
|
141
|
+
requirements:
|
142
|
+
- - ! '>='
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: '0'
|
145
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
146
|
+
none: false
|
147
|
+
requirements:
|
148
|
+
- - ! '>='
|
149
|
+
- !ruby/object:Gem::Version
|
150
|
+
version: '0'
|
111
151
|
requirements: []
|
112
|
-
|
113
152
|
rubyforge_project: pomo
|
114
|
-
rubygems_version: 1.
|
153
|
+
rubygems_version: 1.8.24
|
115
154
|
signing_key:
|
116
155
|
specification_version: 3
|
117
|
-
summary:
|
118
|
-
test_files:
|
119
|
-
|
156
|
+
summary: pomo-2.0.0
|
157
|
+
test_files:
|
158
|
+
- spec/pomo_spec.rb
|
159
|
+
- spec/spec_helper.rb
|
160
|
+
has_rdoc:
|
data/Manifest
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
History.md
|
2
|
-
Manifest
|
3
|
-
Rakefile
|
4
|
-
Readme.md
|
5
|
-
bin/pomo
|
6
|
-
lib/pomo.rb
|
7
|
-
lib/pomo/github_task.rb
|
8
|
-
lib/pomo/list.rb
|
9
|
-
lib/pomo/task.rb
|
10
|
-
lib/pomo/version.rb
|
11
|
-
pomo.gemspec
|
12
|
-
spec/pomo_spec.rb
|
13
|
-
spec/spec.opts
|
14
|
-
spec/spec_helper.rb
|
15
|
-
tasks/docs.rake
|
16
|
-
tasks/gemspec.rake
|
17
|
-
tasks/spec.rake
|
data/Readme.md
DELETED
@@ -1,137 +0,0 @@
|
|
1
|
-
# Pomo
|
2
|
-
|
3
|
-
Command-line application for the [Pomodoro](http://www.pomodorotechnique.com/) time management technique.
|
4
|
-
|
5
|
-
## Description
|
6
|
-
|
7
|
-
With Pomo you can add, remove, list, view, and start timing tasks all via the
|
8
|
-
command-line with a simple, slick interface. You are reminded of the remaining
|
9
|
-
time on a task via Growl. These notifications appear half-way, at the 5 minute point,
|
10
|
-
and when the task duration has expired.
|
11
|
-
|
12
|
-
## Task Selection API
|
13
|
-
|
14
|
-
Taken from `pomo help`:
|
15
|
-
|
16
|
-
Most of the subcommands work directly with tasks,
|
17
|
-
and because of this pomo provides a unified task selection api
|
18
|
-
shown below which can be used with most of the commands
|
19
|
-
(those with [task ...] in their synopsis).
|
20
|
-
|
21
|
-
n : selects a single task by index : Ex: pomo remove 1
|
22
|
-
[n ]+ : selects several tasks by index : Ex: pomo remove 2 8 1
|
23
|
-
n..n : selects a range of tasks : Ex: pomo remove 5..9
|
24
|
-
n..-n : selects a range of tasks : Ex: pomo remove 2..-1
|
25
|
-
first : selects the first task : Ex: pomo remove first
|
26
|
-
last : selects the last task : Ex: pomo remove last
|
27
|
-
complete : selects complete tasks : Ex: pomo remove complete
|
28
|
-
incomplete : selects incomplete tasks : Ex: pomo remove incomplete
|
29
|
-
all : selects all tasks : Ex: pomo remove all
|
30
|
-
|
31
|
-
## Examples
|
32
|
-
|
33
|
-
View global or command specific help:
|
34
|
-
$ pomo help
|
35
|
-
$ pomo help add
|
36
|
-
$ pomo help remove
|
37
|
-
|
38
|
-
Get started by adding a task:
|
39
|
-
$ pomo add "Fix IE stying issues"
|
40
|
-
|
41
|
-
And another:
|
42
|
-
$ pomo add "Destroy IE" --description "because IE is terrible"
|
43
|
-
|
44
|
-
List your tasks (or use `pomo` which defaults to `pomo list`):
|
45
|
-
$ pomo list
|
46
|
-
0. Fix IE stying issues : 25 minutes
|
47
|
-
1. Destroy IE : 25 minutes
|
48
|
-
|
49
|
-
Start the first incomplete task:
|
50
|
-
$ pomo start
|
51
|
-
Started Fix IE stying issues, you have 25 minutes :)
|
52
|
-
(=........................) 24 minutes remaining
|
53
|
-
|
54
|
-
Once you have completed the task, list again:
|
55
|
-
$ pomo list
|
56
|
-
✓ 0. Fix IE stying issues : 25 minutes
|
57
|
-
1. Destroy IE : 25 minutes
|
58
|
-
|
59
|
-
Or take a break:
|
60
|
-
$ pomo break
|
61
|
-
$ pomo break 10
|
62
|
-
$ pomo break --length 10
|
63
|
-
|
64
|
-
List only remaining tasks:
|
65
|
-
$ pomo list --incomplete
|
66
|
-
1. Destroy IE : 25 minutes
|
67
|
-
|
68
|
-
List only completed tasks:
|
69
|
-
$ pomo list --complete
|
70
|
-
✓ 0. Fix IE stying issues : 25 minutes
|
71
|
-
|
72
|
-
At any time mid-task you may terminate pomo via CTRL + C, at which time
|
73
|
-
you may manually complete the task:
|
74
|
-
$ pomo complete first
|
75
|
-
$ pomo complete last
|
76
|
-
$ pomo complete 1
|
77
|
-
$ pomo complete all
|
78
|
-
$ pomo complete incomplete
|
79
|
-
$ pomo complete 5..7
|
80
|
-
|
81
|
-
The next time you run `pomo start` the first incomplete task will start:
|
82
|
-
$ pomo start
|
83
|
-
|
84
|
-
Or choose a specific task:
|
85
|
-
$ pomo start first
|
86
|
-
$ pomo start last
|
87
|
-
$ pomo start 5
|
88
|
-
|
89
|
-
You may also remove tasks
|
90
|
-
$ pomo remove first
|
91
|
-
$ pomo remove last
|
92
|
-
$ pomo remove 2
|
93
|
-
$ pomo remove 1
|
94
|
-
$ pomo remove 6
|
95
|
-
$ pomo rm first
|
96
|
-
$ pomo rm 2..5
|
97
|
-
$ pomo rm 1..-1
|
98
|
-
|
99
|
-
View task details:
|
100
|
-
$ pomo view first
|
101
|
-
$ pomo view last
|
102
|
-
$ pomo view 5
|
103
|
-
$ pomo view 1 2 3
|
104
|
-
|
105
|
-
Remove all tasks:
|
106
|
-
$ pomo remove all
|
107
|
-
$ pomo rm all
|
108
|
-
|
109
|
-
Or if you prefer, create a directory specific task list. Pomo will
|
110
|
-
auto-detect _./.pomo_ in this directory, and utilize its contents.
|
111
|
-
$ pomo init
|
112
|
-
|
113
|
-
|
114
|
-
## License
|
115
|
-
|
116
|
-
(The MIT License)
|
117
|
-
|
118
|
-
Copyright (c) 2009 TJ Holowaychuk <tj@vision-media.ca>
|
119
|
-
|
120
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
121
|
-
a copy of this software and associated documentation files (the
|
122
|
-
'Software'), to deal in the Software without restriction, including
|
123
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
124
|
-
distribute, sublicense, an d/or sell copies of the Software, and to
|
125
|
-
permit persons to whom the Software is furnished to do so, subject to
|
126
|
-
the following conditions:
|
127
|
-
|
128
|
-
The above copyright notice and this permission notice shall be
|
129
|
-
included in all copies or substantial portions of the Software.
|
130
|
-
|
131
|
-
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
132
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
133
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
134
|
-
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
135
|
-
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
136
|
-
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
137
|
-
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|