fastlane_core 0.2.0 → 0.2.1
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 +4 -4
- data/README.md +2 -1
- data/lib/fastlane_core.rb +1 -0
- data/lib/fastlane_core/developer_center/developer_center.rb +5 -3
- data/lib/fastlane_core/helper.rb +10 -0
- data/lib/fastlane_core/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce6315db355b51ee4d502ab055dbdfe93ef53425
|
4
|
+
data.tar.gz: d831602adf386b7b227459fb196110d6b4963b50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d86a26d83cb4eb0f372ecfd30a8f84bcab3c535230f1285e1895ddb52dfd1719da81d3333101ed33ced6c609653f0b31b05e4e5277647cb5c1c33853fad12df7
|
7
|
+
data.tar.gz: 45d8b9ba85e135cd98f276b2e3f8ec0fe89ab3bfd488a85ea037b6cf32deef84462de0e11b8a6f8f318b72adaeda1636f28f81f1e7dd89b92b5e2f3eb3f2604f
|
data/README.md
CHANGED
@@ -12,7 +12,8 @@
|
|
12
12
|
<a href="https://github.com/KrauseFx/PEM">PEM</a> •
|
13
13
|
<a href="https://github.com/KrauseFx/sigh">sigh</a> •
|
14
14
|
<a href="https://github.com/KrauseFx/produce">produce</a> •
|
15
|
-
<a href="https://github.com/KrauseFx/cert">cert</a>
|
15
|
+
<a href="https://github.com/KrauseFx/cert">cert</a> •
|
16
|
+
<a href="https://github.com/KrauseFx/codes">codes</a>
|
16
17
|
</p>
|
17
18
|
-------
|
18
19
|
|
data/lib/fastlane_core.rb
CHANGED
@@ -74,14 +74,16 @@ module FastlaneCore
|
|
74
74
|
raise "Could not open Developer Center" unless result['status'] == 'success'
|
75
75
|
|
76
76
|
# Already logged in
|
77
|
-
|
77
|
+
select_team if current_url.include?"selectTeam.action"
|
78
|
+
return true if (page.has_content? "Member Center" and not current_url.include?"selectTeam.action")
|
78
79
|
|
79
80
|
(wait_for_elements(".button.blue").first.click rescue nil) # maybe already logged in
|
80
81
|
|
81
82
|
(wait_for_elements('#accountpassword') rescue nil) # when the user is already logged in, this will raise an exception
|
82
83
|
|
83
84
|
# Already logged in
|
84
|
-
|
85
|
+
select_team if current_url.include?"selectTeam.action"
|
86
|
+
return true if (page.has_content? "Member Center" and not current_url.include?"selectTeam.action")
|
85
87
|
|
86
88
|
fill_in "accountname", with: user
|
87
89
|
fill_in "accountpassword", with: password
|
@@ -90,7 +92,7 @@ module FastlaneCore
|
|
90
92
|
|
91
93
|
begin
|
92
94
|
# If the user is not on multiple teams
|
93
|
-
select_team if
|
95
|
+
select_team if current_url.include?"selectTeam.action"
|
94
96
|
rescue => ex
|
95
97
|
Helper.log.debug ex
|
96
98
|
raise DeveloperCenterLoginError.new("Error loggin in user #{user}. User is on multiple teams and we were unable to correctly retrieve them.")
|
data/lib/fastlane_core/helper.rb
CHANGED
@@ -33,6 +33,16 @@ module FastlaneCore
|
|
33
33
|
@@log
|
34
34
|
end
|
35
35
|
|
36
|
+
# This method can be used to add nice lines around the actual log
|
37
|
+
# Use this to log more important things
|
38
|
+
# The logs will be green automatically
|
39
|
+
def self.log_alert(text)
|
40
|
+
i = text.length + 4
|
41
|
+
Helper.log.info(("-" * i).green)
|
42
|
+
Helper.log.info("- ".green + text.green + " -".green)
|
43
|
+
Helper.log.info(("-" * i).green)
|
44
|
+
end
|
45
|
+
|
36
46
|
# @return true if the currently running program is a unit test
|
37
47
|
def self.test?
|
38
48
|
defined?SpecHelper
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
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-02-
|
11
|
+
date: 2015-02-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|