spaceship 0.5.3 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d16b4982e039fd291c9b79e25d4c772c00d46fb
|
4
|
+
data.tar.gz: 1dc26f5f59bc02abf1b807bba0f2c7d6320a5bd8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2858a0a6252e46f3793817b47247398ba8c78b242a1d13e202198c35483c825065429abf95e6361e78f82e2bccd01ce7797078a7743ed05fec4dafd635f6294c
|
7
|
+
data.tar.gz: a106ae79d41a2f215490ddc875208b58a67092d100c58f915c3c5d4f6190be6db0faba80cbc3c9dd64db2a8b9f8249335948df020a4b09861ec3d2eef2e00495
|
data/lib/spaceship/client.rb
CHANGED
@@ -76,7 +76,6 @@ module Spaceship
|
|
76
76
|
# /tmp/spaceship[time].log by default
|
77
77
|
def logger
|
78
78
|
unless @logger
|
79
|
-
# rubocop:disable Style/GlobalVars
|
80
79
|
if $verbose || ENV["VERBOSE"]
|
81
80
|
@logger = Logger.new(STDOUT)
|
82
81
|
else
|
@@ -84,7 +83,6 @@ module Spaceship
|
|
84
83
|
path = "/tmp/spaceship#{Time.now.to_i}.log"
|
85
84
|
@logger = Logger.new(path)
|
86
85
|
end
|
87
|
-
# rubocop:enable Style/GlobalVars
|
88
86
|
|
89
87
|
@logger.formatter = proc do |severity, datetime, progname, msg|
|
90
88
|
"[#{datetime.strftime('%H:%M:%S')}]: #{msg}\n"
|
@@ -140,8 +138,9 @@ module Spaceship
|
|
140
138
|
def login(user = nil, password = nil)
|
141
139
|
if user.to_s.empty? or password.to_s.empty?
|
142
140
|
require 'credentials_manager'
|
143
|
-
|
144
|
-
user
|
141
|
+
|
142
|
+
data = CredentialsManager::AccountManager.new(user: user, password: password)
|
143
|
+
user ||= data.user
|
145
144
|
password = data.password
|
146
145
|
end
|
147
146
|
|
data/lib/spaceship/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spaceship
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Felix Krause
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-09-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: credentials_manager
|
@@ -17,14 +17,14 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 0.
|
20
|
+
version: 0.8.0
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: 0.
|
27
|
+
version: 0.8.0
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: multi_xml
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|