gtasks 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/bin/gtasks +2 -1
- data/gtasks.gemspec +1 -1
- data/lib/gtasks.rb +3 -2
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.5
|
data/bin/gtasks
CHANGED
@@ -13,7 +13,8 @@ config = Pit.get("gtasks", :require => {
|
|
13
13
|
cli = GoogleTaskCLI.new(
|
14
14
|
:client_id => config[:client_id],
|
15
15
|
:client_secret => config[:client_secret],
|
16
|
-
|
16
|
+
:logger => Logger.new(STDERR),
|
17
|
+
:callback_uri => 'http://localhost:8080/oauth2callback'
|
17
18
|
#:no_refresh => true
|
18
19
|
)
|
19
20
|
|
data/gtasks.gemspec
CHANGED
data/lib/gtasks.rb
CHANGED
@@ -149,7 +149,7 @@ class GoogleTaskAPI
|
|
149
149
|
save_to_file @dat_path # save token
|
150
150
|
@logger.info "saved"
|
151
151
|
rescue => ex
|
152
|
-
FileUtils.rm @dat_path
|
152
|
+
FileUtils.rm @dat_path if File.exists? @dat_path
|
153
153
|
@logger.info "error detect. remove #{@dat_path.inspect}"
|
154
154
|
@logger.info "error information: #{ex.inspect}"
|
155
155
|
end
|
@@ -255,8 +255,9 @@ class GoogleTask
|
|
255
255
|
@client_secret = options[:client_secret] or raise ArgumentError.new
|
256
256
|
@logger = options[:logger] ||= Logger.new(nil)
|
257
257
|
@no_refresh = options[:no_refresh] ||= false
|
258
|
+
@callback_uri = options[:callback_uri] ||= nil
|
258
259
|
|
259
|
-
@gs_api = GoogleTaskAPI.new(:client_id => @client_id, :client_secret => @client_secret, :logger => @logger, :no_refresh => @no_refresh)
|
260
|
+
@gs_api = GoogleTaskAPI.new(:client_id => @client_id, :client_secret => @client_secret, :logger => @logger, :no_refresh => @no_refresh, :callback_uri => @callback_uri)
|
260
261
|
end
|
261
262
|
|
262
263
|
def tasks(list_ident = '@default')
|
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.5
|
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: &2153331280 !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: *2153331280
|
25
25
|
description: GoogleTasks CommandLine Interface
|
26
26
|
email: sub+peerler@gmail.com
|
27
27
|
executables:
|