toodledo 1.1.0 → 1.1.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
@@ -1,3 +1,7 @@
1
+ == 1.1.1 / 2008-02-29
2
+
3
+ * Rake release was bad. Re-releasing.
4
+
1
5
  == 1.1.0 / 2008-02-24
2
6
 
3
7
  * Add functionality to add, delete goals, contexts, and folders from client.
data/Manifest.txt CHANGED
@@ -15,13 +15,13 @@ lib/toodledo/command_line/folder_formatter.rb
15
15
  lib/toodledo/command_line/goal_formatter.rb
16
16
  lib/toodledo/command_line/hotlist_command.rb
17
17
  lib/toodledo/command_line/interactive_command.rb
18
- lib/toodledo/command_line/list_tasks_command.rb
18
+ lib/toodledo/command_line/list_contexts_command.rb
19
19
  lib/toodledo/command_line/list_folders_command.rb
20
20
  lib/toodledo/command_line/list_goals_command.rb
21
21
  lib/toodledo/command_line/list_tasks_command.rb
22
22
  lib/toodledo/command_line/parser_helper.rb
23
23
  lib/toodledo/command_line/setup_command.rb
24
- lib/toodledo/command_line/sTdin_command.rb
24
+ lib/toodledo/command_line/stdin_command.rb
25
25
  lib/toodledo/command_line/task_formatter.rb
26
26
  lib/toodledo/context.rb
27
27
  lib/toodledo/folder.rb
data/lib/toodledo.rb CHANGED
@@ -5,7 +5,7 @@
5
5
  module Toodledo
6
6
 
7
7
  # Required for gem
8
- VERSION = '1.1.0'
8
+ VERSION = '1.1.1'
9
9
 
10
10
  # Returns the configuration object.
11
11
  def self.get_config()
@@ -0,0 +1,31 @@
1
+ #
2
+ #
3
+ #
4
+
5
+ module Toodledo
6
+ module CommandLine
7
+
8
+
9
+ #
10
+ # List Contexts
11
+ #
12
+ class ListContextsCommand < BaseCommand
13
+ def initialize(client)
14
+ super(client, 'contexts', false)
15
+ self.short_desc = "List contexts"
16
+ self.description = "Lists the contexts in Toodledo."
17
+ end
18
+
19
+ def execute(args)
20
+
21
+ Toodledo.begin(client.logger) do |session|
22
+ line = args.join(' ')
23
+ return client.list_contexts(session, line)
24
+ end
25
+
26
+ return 0
27
+ end
28
+ end
29
+
30
+ end
31
+ end
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.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Will Sargent
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-02-24 00:00:00 -08:00
12
+ date: 2008-02-29 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -67,12 +67,13 @@ files:
67
67
  - lib/toodledo/command_line/goal_formatter.rb
68
68
  - lib/toodledo/command_line/hotlist_command.rb
69
69
  - lib/toodledo/command_line/interactive_command.rb
70
- - lib/toodledo/command_line/list_tasks_command.rb
70
+ - lib/toodledo/command_line/list_contexts_command.rb
71
71
  - lib/toodledo/command_line/list_folders_command.rb
72
72
  - lib/toodledo/command_line/list_goals_command.rb
73
+ - lib/toodledo/command_line/list_tasks_command.rb
73
74
  - lib/toodledo/command_line/parser_helper.rb
74
75
  - lib/toodledo/command_line/setup_command.rb
75
- - lib/toodledo/command_line/sTdin_command.rb
76
+ - lib/toodledo/command_line/stdin_command.rb
76
77
  - lib/toodledo/command_line/task_formatter.rb
77
78
  - lib/toodledo/context.rb
78
79
  - lib/toodledo/folder.rb