goot 0.1.0 → 0.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.
- checksums.yaml +4 -4
- data/goot.gemspec +12 -11
- data/lib/goot/cli.rb +19 -19
- data/lib/goot/version.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9494fc3b9540b1afa2019c6716fac96e4b959634
|
4
|
+
data.tar.gz: 94a7c44f32a391af1976fee56f2560c5d9292d24
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa94013a059e5016b9ab2398ef999a9def2a8860972a54440a99cc61205e26a2eb8a387c0b8c51caa89e38894032856e359d4f5a2336f4747dd7a918c3e9d5ce
|
7
|
+
data.tar.gz: e5a734197813d047366459e2096ffe1c227653215d71be99e5adda826ed468a83b5db0877e6c8b3e37758fa957237f27850195cdbf32002a3666f9d802722b5c
|
data/goot.gemspec
CHANGED
@@ -4,24 +4,25 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
require 'goot/version'
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
|
-
spec.name =
|
7
|
+
spec.name = 'goot'
|
8
8
|
spec.version = GoogleTasks::VERSION
|
9
|
-
spec.authors = [
|
10
|
-
spec.email = [
|
9
|
+
spec.authors = ['Conner McDaniel']
|
10
|
+
spec.email = ['connermcd@gmail.com']
|
11
11
|
spec.summary = %q{A command-line interface to Google Tasks das ist goot.}
|
12
12
|
spec.description = %q{A command-line interface to Google Tasks das ist goot.}
|
13
|
-
spec.homepage =
|
14
|
-
spec.license =
|
13
|
+
spec.homepage = 'https://github.com/connermcd/goot'
|
14
|
+
spec.license = 'MIT'
|
15
15
|
|
16
16
|
spec.files = `git ls-files -z`.split("\x0")
|
17
17
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
-
spec.require_paths = [
|
19
|
+
spec.require_paths = ['lib']
|
20
20
|
|
21
|
-
spec.add_dependency "thor", "~> 0.19.0"
|
22
21
|
|
23
|
-
spec.
|
24
|
-
spec.
|
25
|
-
spec.add_development_dependency
|
26
|
-
spec.add_development_dependency
|
22
|
+
spec.add_runtime_dependency 'thor', '~> 0.19.0'
|
23
|
+
spec.add_runtime_dependency 'google-api-client', '~> 0.7'
|
24
|
+
spec.add_development_dependency 'bundler', '~> 1.5'
|
25
|
+
spec.add_development_dependency 'rake'
|
26
|
+
spec.add_development_dependency 'pry'
|
27
|
+
spec.add_development_dependency 'rspec', '~> 2.5'
|
27
28
|
end
|
data/lib/goot/cli.rb
CHANGED
@@ -6,8 +6,8 @@ class GoogleTasks::CLI < Thor
|
|
6
6
|
@api = GoogleTasks::GoogleAPI.new
|
7
7
|
end
|
8
8
|
|
9
|
-
desc
|
10
|
-
method_option :tasklist, :aliases =>
|
9
|
+
desc 'ls', 'Displays available tasks for a given tasklist'
|
10
|
+
method_option :tasklist, :aliases => '-l', :type => :numeric, :default => 0
|
11
11
|
def ls
|
12
12
|
tab = ' '
|
13
13
|
depths = {}
|
@@ -30,7 +30,7 @@ class GoogleTasks::CLI < Thor
|
|
30
30
|
end
|
31
31
|
end
|
32
32
|
|
33
|
-
desc
|
33
|
+
desc 'summary', 'Displays all task lists and their task counts'
|
34
34
|
def summary
|
35
35
|
@api.get_lists.each.with_index do |tasklist, i|
|
36
36
|
tasks = @api.get_tasks(tasklist)
|
@@ -38,8 +38,8 @@ class GoogleTasks::CLI < Thor
|
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
|
-
desc
|
42
|
-
method_option :tasklist, :aliases =>
|
41
|
+
desc 'toggle INDEX', 'Toggles a given task'
|
42
|
+
method_option :tasklist, :aliases => '-l', :type => :numeric, :default => 0
|
43
43
|
def toggle(*indices)
|
44
44
|
tasklist = @api.get_tasklist(options[:tasklist])
|
45
45
|
tasks = @api.get_tasks(tasklist).map(&:to_hash)
|
@@ -65,8 +65,8 @@ class GoogleTasks::CLI < Thor
|
|
65
65
|
invoke :ls, [], :tasklist => options[:tasklist]
|
66
66
|
end
|
67
67
|
|
68
|
-
desc
|
69
|
-
method_option :tasklist, :aliases =>
|
68
|
+
desc 'clear', 'Clears completed tasks'
|
69
|
+
method_option :tasklist, :aliases => '-l', :type => :numeric, :default => 0
|
70
70
|
def clear
|
71
71
|
tasklist = @api.get_tasklist(options[:tasklist])
|
72
72
|
@api.clear_tasks(tasklist)
|
@@ -74,8 +74,8 @@ class GoogleTasks::CLI < Thor
|
|
74
74
|
invoke :ls, [], :tasklist => options[:tasklist]
|
75
75
|
end
|
76
76
|
|
77
|
-
desc
|
78
|
-
method_option :tasklist, :aliases =>
|
77
|
+
desc 'delete INDEX', 'Deletes a given task'
|
78
|
+
method_option :tasklist, :aliases => '-l', :type => :numeric, :default => 0
|
79
79
|
def delete(*indices)
|
80
80
|
tasklist = @api.get_tasklist(options[:tasklist])
|
81
81
|
tasks = @api.get_tasks(tasklist).map(&:to_hash)
|
@@ -87,10 +87,10 @@ class GoogleTasks::CLI < Thor
|
|
87
87
|
invoke :ls, [], :tasklist => options[:tasklist]
|
88
88
|
end
|
89
89
|
|
90
|
-
desc
|
91
|
-
method_option :after, :aliases =>
|
92
|
-
method_option :parent, :aliases =>
|
93
|
-
method_option :tasklist, :aliases =>
|
90
|
+
desc 'move INDEX', 'Moves a given task'
|
91
|
+
method_option :after, :aliases => '-a', :type => :numeric
|
92
|
+
method_option :parent, :aliases => '-p', :type => :numeric
|
93
|
+
method_option :tasklist, :aliases => '-l', :type => :numeric, :default => 0
|
94
94
|
def move(index)
|
95
95
|
tasklist = @api.get_tasklist(options[:tasklist])
|
96
96
|
tasks = @api.get_tasks(tasklist).map(&:to_hash)
|
@@ -103,10 +103,10 @@ class GoogleTasks::CLI < Thor
|
|
103
103
|
invoke :ls, [], :tasklist => options[:tasklist]
|
104
104
|
end
|
105
105
|
|
106
|
-
desc
|
107
|
-
method_option :after, :aliases =>
|
108
|
-
method_option :parent, :aliases =>
|
109
|
-
method_option :tasklist, :aliases =>
|
106
|
+
desc 'add NAME', 'Adds a task'
|
107
|
+
method_option :after, :aliases => '-a', :type => :numeric
|
108
|
+
method_option :parent, :aliases => '-p', :type => :numeric
|
109
|
+
method_option :tasklist, :aliases => '-l', :type => :numeric, :default => 0
|
110
110
|
def add(*names)
|
111
111
|
tasklist = @api.get_tasklist(options[:tasklist])
|
112
112
|
tasks = @api.get_tasks(tasklist).map(&:to_hash)
|
@@ -123,7 +123,7 @@ class GoogleTasks::CLI < Thor
|
|
123
123
|
invoke :ls, [], :tasklist => options[:tasklist]
|
124
124
|
end
|
125
125
|
|
126
|
-
desc
|
126
|
+
desc 'listadd NAME', 'Adds a new tasklist'
|
127
127
|
def listadd(name)
|
128
128
|
tasklist = {:title => name}
|
129
129
|
@api.insert_tasklist(tasklist)
|
@@ -131,7 +131,7 @@ class GoogleTasks::CLI < Thor
|
|
131
131
|
invoke :summary, []
|
132
132
|
end
|
133
133
|
|
134
|
-
desc
|
134
|
+
desc 'listdelete INDEX', 'Deletes a tasklist'
|
135
135
|
def listdelete(index)
|
136
136
|
@api.delete_tasklist(@api.get_lists[index.to_i])
|
137
137
|
|
data/lib/goot/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: goot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Conner McDaniel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 0.19.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: google-api-client
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0.7'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0.7'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: bundler
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|