gtasks 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/bin/gtasks +31 -33
- data/gtasks.gemspec +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.4
|
data/bin/gtasks
CHANGED
@@ -5,39 +5,37 @@ require 'gtasks'
|
|
5
5
|
require 'logger'
|
6
6
|
require 'pit'
|
7
7
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
})
|
8
|
+
config = Pit.get("gtasks", :require => {
|
9
|
+
:client_id => 'your google tasks client id',
|
10
|
+
:client_secret => 'your google takss client secret',
|
11
|
+
})
|
13
12
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
13
|
+
cli = GoogleTaskCLI.new(
|
14
|
+
:client_id => config[:client_id],
|
15
|
+
:client_secret => config[:client_secret],
|
16
|
+
#:logger => Logger.new(STDERR),
|
17
|
+
#:no_refresh => true
|
18
|
+
)
|
20
19
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
end
|
20
|
+
sub_command = ARGV.shift || 'list'
|
21
|
+
case sub_command
|
22
|
+
when 'list'
|
23
|
+
cli.list(ARGV.shift || 'default')
|
24
|
+
when 'lists'
|
25
|
+
cli.lists
|
26
|
+
when 'add'
|
27
|
+
raise ArgumentError if ARGV.empty?
|
28
|
+
cli.add(ARGV.join(' '))
|
29
|
+
when 'clear'
|
30
|
+
cli.clear
|
31
|
+
when 'done'
|
32
|
+
param = ARGV.shift or raise ArgumentError
|
33
|
+
cli.done(param)
|
34
|
+
when 'delete'
|
35
|
+
param = ARGV.shift or raise ArgumentError
|
36
|
+
cli.delete(param)
|
37
|
+
when 'choice'
|
38
|
+
cli.choice
|
39
|
+
else
|
40
|
+
raise ArgumentError
|
43
41
|
end
|
data/gtasks.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gtasks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-02-03 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thoughtbot-shoulda
|
16
|
-
requirement: &
|
16
|
+
requirement: &195252480 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *195252480
|
25
25
|
description: GoogleTasks CommandLine Interface
|
26
26
|
email: sub+peerler@gmail.com
|
27
27
|
executables:
|