sigh 0.0.1 → 0.1.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: 49b46858da6804a8b0605280e13faa4404bc9645
4
- data.tar.gz: 63a01fa29ba63ade9eaca8c5cfaaa228952b2179
3
+ metadata.gz: d3f52e65260557eebb196e22e1b789368c5d75d9
4
+ data.tar.gz: 02c172f9421aed83f1945f7ca27508c8a3ad84a2
5
5
  SHA512:
6
- metadata.gz: ab7cd40e038f0450ec49f9d7a26b87183e835e9cc1333398330eee27c84e289fbfd25fb0befd770b790402eba42667ec56e706071cf405393dae64e94b0ead58
7
- data.tar.gz: 9f9145765ef2ee886b2e5b0b7bce876ef9f804328d6bb0390d6e6c268eb7c3068431fd7a45bd6563269e6a5a61445b506cd4ee2503535007417ef4fc97f6b5a7
6
+ metadata.gz: 85537a62dd26b1d114ae28fd13c266a158f57ab00397fc1a7df746d93560a41482f5f6b13cf7f1b4930b7060762064c6cf3a781c4aa83d2c1ca68fe27281397a
7
+ data.tar.gz: 59528094c716081676b2433a90f26f5e4882811ea063ea2471fe3f41ffaa6efa4d680719651edfd9544ce7b3b2109bf354c0a426e69edc2e1826e5a818f2179f
data/README.md CHANGED
@@ -3,15 +3,16 @@
3
3
  <a href="https://github.com/KrauseFx/snapshot">Snapshot</a> &bull;
4
4
  <a href="https://github.com/KrauseFx/frameit">FrameIt</a> &bull;
5
5
  <a href="https://github.com/KrauseFx/PEM">PEM</a> &bull;
6
- <b>sigh</b>
6
+ <b>Sigh</b>
7
7
  </p>
8
+
8
9
  -------
9
10
 
10
11
  <p align="center">
11
12
  <img src="assets/sigh.png">
12
13
  </p>
13
14
 
14
- sigh - Create and maintain provisioning profiles
15
+ Sigh - Create and maintain provisioning profiles
15
16
  ============
16
17
 
17
18
  [![Twitter: @KauseFx](https://img.shields.io/badge/contact-@KrauseFx-blue.svg?style=flat)](https://twitter.com/KrauseFx)
@@ -39,10 +40,10 @@ Follow the developer on Twitter: [@KrauseFx](https://twitter.com/KrauseFx)
39
40
 
40
41
  # Features
41
42
 
42
- - **Download** the latest provisining profile for your app
43
- - **Renew** a provisining profile, when it has expired
44
- - **Create** a new App Store provisioning profile, if it doesn't exist yet
45
- - Support for both **App Store** and **Ad Hoc** profiles
43
+ - **Download** the latest provisioning profile for your app
44
+ - **Renew** a provisioning profile, when it has expired
45
+ - **Create** a new provisioning profile, if it doesn't exist already
46
+ - Support for both **App Store**, **Ad Hoc** and **Development** profiles
46
47
 
47
48
 
48
49
  Check out this gif:
@@ -61,11 +62,17 @@ Make sure, you have the latest version of the Xcode command line tools installed
61
62
  sigh
62
63
  Yes, that's the whole command!
63
64
 
64
- You can pass parameters like this:
65
+ ```sigh``` will create, repair and download profiles for the App Store by default.
66
+
67
+ You can pass your bundle identifier and username like this:
65
68
 
66
69
  sigh -a at.felixkrause.app -u username
67
70
 
68
- If you want to generate an Ad Ho profile instead:
71
+ If you want to generate an **Ad Hoc** profile instead of an App Store profile:
72
+
73
+ sigh --adhoc
74
+
75
+ If you want to generate an **Development** profile:
69
76
 
70
77
  sigh --development
71
78
 
@@ -2,7 +2,7 @@ module Sigh
2
2
  class DependencyChecker
3
3
  def self.check_dependencies
4
4
  self.check_phantom_js
5
- self.check_xcode_select
5
+ self.check_xcode_select unless Helper.is_test?
6
6
  end
7
7
 
8
8
  def self.check_phantom_js
@@ -76,11 +76,16 @@ module Sigh
76
76
  result = visit PROFILES_URL
77
77
  raise "Could not open Developer Center" unless result['status'] == 'success'
78
78
 
79
- wait_for_elements(".button.blue").first.click
79
+ if page.has_content?"Member Center"
80
+ # Already logged in
81
+ return true
82
+ end
83
+
84
+ (wait_for_elements(".button.blue").first.click rescue nil) # maybe already logged in
80
85
 
81
86
  (wait_for_elements('#accountpassword') rescue nil) # when the user is already logged in, this will raise an exception
82
87
 
83
- if page.has_content?"My Apps"
88
+ if page.has_content?"Member Center"
84
89
  # Already logged in
85
90
  return true
86
91
  end
@@ -1,3 +1,3 @@
1
1
  module Sigh
2
- VERSION = "0.0.1"
2
+ VERSION = "0.1.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sigh
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause