gtasks 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/bin/gtasks +31 -33
  3. data/gtasks.gemspec +1 -1
  4. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.3
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
- if $0 == __FILE__
9
- config = Pit.get("gtasks", :require => {
10
- :client_id => 'your google tasks client id',
11
- :client_secret => 'your google takss client secret',
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
- cli = GoogleTaskCLI.new(
15
- :client_id => config[:client_id],
16
- :client_secret => config[:client_secret],
17
- #:logger => Logger.new(STDERR),
18
- #:no_refresh => true
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
- sub_command = ARGV.shift || 'list'
22
- case sub_command
23
- when 'list'
24
- cli.list(ARGV.shift || 'default')
25
- when 'lists'
26
- cli.lists
27
- when 'add'
28
- raise ArgumentError if ARGV.empty?
29
- cli.add(ARGV.join(' '))
30
- when 'clear'
31
- cli.clear
32
- when 'done'
33
- param = ARGV.shift or raise ArgumentError
34
- cli.done(param)
35
- when 'delete'
36
- param = ARGV.shift or raise ArgumentError
37
- cli.delete(param)
38
- when 'choice'
39
- cli.choice
40
- else
41
- raise ArgumentError
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
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{gtasks}
8
- s.version = "0.0.3"
8
+ s.version = "0.0.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["kimoto"]
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.3
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: &67784880 !ruby/object:Gem::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: *67784880
24
+ version_requirements: *195252480
25
25
  description: GoogleTasks CommandLine Interface
26
26
  email: sub+peerler@gmail.com
27
27
  executables: