toodledo 1.4.0 → 1.4.1
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.txt
CHANGED
@@ -0,0 +1,27 @@
|
|
1
|
+
|
2
|
+
module Toodledo
|
3
|
+
module CommandLine
|
4
|
+
|
5
|
+
#
|
6
|
+
# Lists the tasks.
|
7
|
+
#
|
8
|
+
class ListOverdueCommand < BaseCommand
|
9
|
+
def initialize(client)
|
10
|
+
super(client, 'overdue', false)
|
11
|
+
self.short_desc = "Overdue tasks"
|
12
|
+
self.description = "Lists overdue tasks in Toodledo."
|
13
|
+
end
|
14
|
+
|
15
|
+
def execute(args)
|
16
|
+
line = args.join(' ')
|
17
|
+
Toodledo.begin(client.logger) do |session|
|
18
|
+
return client.list_overdue_tasks(session, line)
|
19
|
+
end
|
20
|
+
|
21
|
+
return 0
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
|
2
|
+
module Toodledo
|
3
|
+
module CommandLine
|
4
|
+
|
5
|
+
#
|
6
|
+
# Lists the tasks.
|
7
|
+
#
|
8
|
+
class ListTodayCommand < BaseCommand
|
9
|
+
def initialize(client)
|
10
|
+
super(client, 'today', false)
|
11
|
+
self.short_desc = "Today's tasks"
|
12
|
+
self.description = "Lists tasks for today in Toodledo."
|
13
|
+
end
|
14
|
+
|
15
|
+
def execute(args)
|
16
|
+
line = args.join(' ')
|
17
|
+
Toodledo.begin(client.logger) do |session|
|
18
|
+
return client.list_today_tasks(session, line)
|
19
|
+
end
|
20
|
+
|
21
|
+
return 0
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
|
2
|
+
module Toodledo
|
3
|
+
module CommandLine
|
4
|
+
|
5
|
+
#
|
6
|
+
# Lists the tasks.
|
7
|
+
#
|
8
|
+
class ListTomorrowCommand < BaseCommand
|
9
|
+
def initialize(client)
|
10
|
+
super(client, 'tomorrow', false)
|
11
|
+
self.short_desc = "Tomorrow's tasks"
|
12
|
+
self.description = "Lists tasks for tomorrow in Toodledo."
|
13
|
+
end
|
14
|
+
|
15
|
+
def execute(args)
|
16
|
+
line = args.join(' ')
|
17
|
+
|
18
|
+
Toodledo.begin(client.logger) do |session|
|
19
|
+
return client.list_tomorrow_tasks(session, line)
|
20
|
+
end
|
21
|
+
|
22
|
+
return 0
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
|
27
|
+
end
|
28
|
+
end
|
data/lib/toodledo/version.rb
CHANGED
data/toodledo.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{toodledo}
|
8
|
-
s.version = "1.4.
|
8
|
+
s.version = "1.4.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = [%q{Will Sargent}]
|
12
|
-
s.date = %q{
|
12
|
+
s.date = %q{2012-12-29}
|
13
13
|
s.description = %q{This is a Ruby API and client for http://toodledo.com, a task management
|
14
14
|
website. It implements all of the calls from Toodledo's developer API, and
|
15
15
|
provides a nice wrapper around the functionality.
|
@@ -49,6 +49,9 @@ tasks with a BetaBrite? It can all happen.
|
|
49
49
|
"lib/toodledo/command_line/list_goals_command.rb",
|
50
50
|
"lib/toodledo/command_line/list_tasks_by_context_command.rb",
|
51
51
|
"lib/toodledo/command_line/list_tasks_command.rb",
|
52
|
+
"lib/toodledo/command_line/list_today_command.rb",
|
53
|
+
"lib/toodledo/command_line/list_tomorrow_command.rb",
|
54
|
+
"lib/toodledo/command_line/list_overdue_command.rb",
|
52
55
|
"lib/toodledo/command_line/parser_helper.rb",
|
53
56
|
"lib/toodledo/command_line/setup_command.rb",
|
54
57
|
"lib/toodledo/command_line/stdin_command.rb",
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: toodledo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2012-12-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: cmdparse
|
@@ -108,6 +108,9 @@ files:
|
|
108
108
|
- lib/toodledo/command_line/list_goals_command.rb
|
109
109
|
- lib/toodledo/command_line/list_tasks_by_context_command.rb
|
110
110
|
- lib/toodledo/command_line/list_tasks_command.rb
|
111
|
+
- lib/toodledo/command_line/list_today_command.rb
|
112
|
+
- lib/toodledo/command_line/list_tomorrow_command.rb
|
113
|
+
- lib/toodledo/command_line/list_overdue_command.rb
|
111
114
|
- lib/toodledo/command_line/parser_helper.rb
|
112
115
|
- lib/toodledo/command_line/setup_command.rb
|
113
116
|
- lib/toodledo/command_line/stdin_command.rb
|