fastlane_core 0.2.0 → 0.2.1

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: 0e5cf8095872dbf3372cee378ec4551257e7d2ca
4
- data.tar.gz: 450f17a75d1832bc03c687ab16a2dd28802dd444
3
+ metadata.gz: ce6315db355b51ee4d502ab055dbdfe93ef53425
4
+ data.tar.gz: d831602adf386b7b227459fb196110d6b4963b50
5
5
  SHA512:
6
- metadata.gz: a0cb11c257e08292c144fdf17c5143a3f80fed1d43ca98b4f8f767aa37f6e5ba2f1d90f7d6560ec0b7d7925729f180465f198a84433c8c7e043b9a6a457bceff
7
- data.tar.gz: 290d0c2b12ad9b198df7e1eab79071976609622694179629064c2985e6d1d9410d28123eba00c72f728d6fa12f1b7df644f94c0dc71fdf02d3358290715dfcd3
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> &bull;
13
13
  <a href="https://github.com/KrauseFx/sigh">sigh</a> &bull;
14
14
  <a href="https://github.com/KrauseFx/produce">produce</a> &bull;
15
- <a href="https://github.com/KrauseFx/cert">cert</a>
15
+ <a href="https://github.com/KrauseFx/cert">cert</a> &bull;
16
+ <a href="https://github.com/KrauseFx/codes">codes</a>
16
17
  </p>
17
18
  -------
18
19
 
@@ -7,6 +7,7 @@ require 'fastlane_core/itunes_search_api'
7
7
 
8
8
  # Third Party code
9
9
  require 'colored'
10
+ require 'commander'
10
11
 
11
12
  module FastlaneCore
12
13
 
@@ -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
- return true if page.has_content? "Member Center"
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
- return true if page.has_content? "Member Center"
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 page.has_content? "Select Team"
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.")
@@ -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
@@ -1,3 +1,3 @@
1
1
  module FastlaneCore
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
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.0
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-27 00:00:00.000000000 Z
11
+ date: 2015-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json