lionel_richie 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/lionel +2 -2
- data/lib/lionel/cli.rb +5 -8
- data/lib/lionel/proxy_worksheet.rb +1 -1
- data/lib/lionel/version.rb +1 -1
- metadata +2 -2
data/bin/lionel
CHANGED
@@ -28,12 +28,12 @@ rescue GoogleDrive::Error, GoogleDrive::AuthenticationError => e
|
|
28
28
|
puts "-" * e.class.name.size
|
29
29
|
pute e.message
|
30
30
|
puts "Unable to access Google Drive"
|
31
|
-
puts "run 'lionel authorize'"
|
31
|
+
puts "run 'lionel authorize google'"
|
32
32
|
end
|
33
33
|
|
34
34
|
rescue Trello::Error, Trello::InvalidAccessToken => e
|
35
35
|
puts "Unable to access Trello"
|
36
|
-
puts "run 'lionel authorize'"
|
36
|
+
puts "run 'lionel authorize trello'"
|
37
37
|
|
38
38
|
rescue StandardError => e
|
39
39
|
puts e.class
|
data/lib/lionel/cli.rb
CHANGED
@@ -39,27 +39,24 @@ module Lionel
|
|
39
39
|
method_option "print", :aliases => "-p", :type => :boolean, :default => false, :desc => "Print results instead of saving them to Google Docs."
|
40
40
|
method_option "trello-board-id", :aliases => "-t", :type => :string, :default => nil, :desc => "Specify the Google Doc."
|
41
41
|
method_option "google-doc-id", :aliases => "-g", :type => :string, :default => nil, :desc => "Print results instead of saving them to Google Docs."
|
42
|
-
method_option "configure", :aliases => "-c", :type => :string, :default =>
|
42
|
+
method_option "configure", :aliases => "-c", :type => :string, :default => true, :desc => "Save export configuration."
|
43
43
|
def export
|
44
44
|
export = Lionel::Export.new
|
45
45
|
|
46
46
|
if options['google-doc-id']
|
47
47
|
export.google_doc_id = options['google-doc-id']
|
48
|
+
elsif !export.google_doc_id
|
49
|
+
export.google_doc_id = ask("Enter a google doc id to export to:")
|
48
50
|
end
|
49
51
|
|
50
52
|
if options['trello-board-id']
|
51
53
|
export.trello_board_id = options['trello-board-id']
|
52
|
-
|
53
|
-
|
54
|
-
if !export.google_doc_id
|
55
|
-
export.google_doc_id = ask("Enter a google doc id to export to:")
|
56
|
-
end
|
57
|
-
|
58
|
-
if !export.trello_board_id
|
54
|
+
elsif !export.trello_board_id
|
59
55
|
export.trello_board_id = ask("Enter a trello board id to export from:")
|
60
56
|
end
|
61
57
|
|
62
58
|
export.save if options['configure']
|
59
|
+
|
63
60
|
export.authenticate
|
64
61
|
|
65
62
|
welcome = "Trello? Is it me you're looking for?"
|
data/lib/lionel/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lionel_richie
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-07-
|
12
|
+
date: 2013-07-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ruby-trello
|