credentials_manager 0.12.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: eb04e90a1cb492a279df8a76e2093a1f1018d705
|
|
4
|
+
data.tar.gz: 6d3c78e61b03826aabd81be335bfcfede200d204
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2a5778f917936884dd8046282306ab00b45a66912c183f5a62dbe4d43cd5a878fab1ec5492c11d25f4f5fab9ce1919b7010a7499e75342ad3706f7bdb100e377
|
|
7
|
+
data.tar.gz: f270ca861b2529631f205a20f404b3a99b704c67fa890ca1622099018fe6b2a4ecc17420f7181ed02efe4ad28cd814ee3c9b8a9e0f42c6ca1e63c1108d4c94ca
|
|
@@ -16,14 +16,14 @@ module CredentialsManager
|
|
|
16
16
|
return @user
|
|
17
17
|
end
|
|
18
18
|
|
|
19
|
-
def password
|
|
19
|
+
def password(ask_if_missing: true)
|
|
20
20
|
@password ||= ENV["FASTLANE_PASSWORD"]
|
|
21
21
|
@password ||= ENV["DELIVER_PASSWORD"]
|
|
22
22
|
unless @password
|
|
23
23
|
item = Security::InternetPassword.find(server: server_name)
|
|
24
24
|
@password ||= item.password if item
|
|
25
25
|
end
|
|
26
|
-
ask_for_login while @password.to_s.length == 0
|
|
26
|
+
ask_for_login while ask_if_missing && @password.to_s.length == 0
|
|
27
27
|
return @password
|
|
28
28
|
end
|
|
29
29
|
|
|
@@ -47,7 +47,7 @@ module CredentialsManager
|
|
|
47
47
|
puts "-------------------------------------------------------------------------------------".green
|
|
48
48
|
puts "The login information you enter will be stored in your Mac OS Keychain".green
|
|
49
49
|
puts "You can also pass the password using the `FASTLANE_PASSWORD` env variable".green
|
|
50
|
-
puts "More information about it on GitHub: https://github.com/fastlane/
|
|
50
|
+
puts "More information about it on GitHub: https://github.com/fastlane/credentials_manager".green
|
|
51
51
|
puts "-------------------------------------------------------------------------------------".green
|
|
52
52
|
|
|
53
53
|
if @user.to_s.length == 0
|
|
@@ -68,7 +68,7 @@ module CredentialsManager
|
|
|
68
68
|
def ask_for_login
|
|
69
69
|
puts "-------------------------------------------------------------------------------------".green
|
|
70
70
|
puts "The login information you enter will be stored in your Mac OS Keychain".green
|
|
71
|
-
puts "More information about that on GitHub: https://github.com/fastlane/
|
|
71
|
+
puts "More information about that on GitHub: https://github.com/fastlane/credentials_manager".green
|
|
72
72
|
puts "-------------------------------------------------------------------------------------".green
|
|
73
73
|
|
|
74
74
|
username_was_there = self.username
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: credentials_manager
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.13.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Felix Krause
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-12-
|
|
11
|
+
date: 2015-12-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: highline
|