sigh 0.4.2 → 0.4.3
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 +4 -1
- data/bin/sigh +2 -15
- data/lib/sigh/manager.rb +22 -0
- data/lib/sigh/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b3291e97008dd2f4f2b320e5978379cd90590130
|
4
|
+
data.tar.gz: 4c2e0a6a968ba982fe3f22fb3fdf5e5775caeb31
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c92a0372b4434f6c9a34198f11d9180cbe4ce52857b5176397d089d8c190c09571b42b2fb054ca519f2a222f3ae245cfddf81ebe308d9fb80a5a745ea4c80de
|
7
|
+
data.tar.gz: 0f1d8d527b6464a8fd157f0d7ed357f38d1598d728b5c94ab7bcb967e2790537703e30429380c56878d2301e6c858a1664a892fb10031c7880c64f7ec916db68
|
data/README.md
CHANGED
@@ -105,6 +105,10 @@ If you want to generate a **Development** profile:
|
|
105
105
|
To generate the profile in a specific directory:
|
106
106
|
|
107
107
|
sigh -o "~/Certificates/"
|
108
|
+
|
109
|
+
For a list of available commands run
|
110
|
+
|
111
|
+
sigh --help
|
108
112
|
|
109
113
|
### Advanced
|
110
114
|
|
@@ -147,7 +151,6 @@ In case you prefer environment variables:
|
|
147
151
|
- `SIGH_USERNAME`
|
148
152
|
- `SIGH_APP_IDENTIFIER`
|
149
153
|
- `SIGH_TEAM_ID` (The Team ID, e.g. `Q2CBPK58CA`)
|
150
|
-
- `SIGH_DISABLE_OPEN_ERROR` - in case of error, `sigh` won't open Preview with a screenshot of the error when this variable is set.
|
151
154
|
- `SIGH_PROVISIONING_PROFILE_NAME` (set a custom name for the name of the generated file)
|
152
155
|
|
153
156
|
Choose signing certificate to use:
|
data/bin/sigh
CHANGED
@@ -7,6 +7,7 @@ require 'commander'
|
|
7
7
|
require 'credentials_manager/password_manager'
|
8
8
|
require 'credentials_manager/appfile_config'
|
9
9
|
require 'sigh/options'
|
10
|
+
require 'sigh/manager'
|
10
11
|
|
11
12
|
HighLine.track_eof = false
|
12
13
|
|
@@ -31,21 +32,7 @@ class SighApplication
|
|
31
32
|
|
32
33
|
c.action do |args, options|
|
33
34
|
Sigh.config = FastlaneCore::Configuration.create(Sigh::Options.available_options, options.__hash__)
|
34
|
-
|
35
|
-
path = Sigh::DeveloperCenter.new.run
|
36
|
-
|
37
|
-
if path
|
38
|
-
if Sigh.config[:filename]
|
39
|
-
file_name = Sigh.config[:filename]
|
40
|
-
else
|
41
|
-
file_name = File.basename(path)
|
42
|
-
end
|
43
|
-
|
44
|
-
output = File.join(Sigh.config[:output_path].gsub("~", ENV["HOME"]), file_name)
|
45
|
-
(FileUtils.mv(path, output) rescue nil) # in case it already exists
|
46
|
-
system("open -g '#{output}'") unless Sigh.config[:skip_install]
|
47
|
-
puts output.green
|
48
|
-
end
|
35
|
+
Sigh::Manager.start
|
49
36
|
end
|
50
37
|
end
|
51
38
|
|
data/lib/sigh/manager.rb
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
module Sigh
|
2
|
+
class Manager
|
3
|
+
def self.start
|
4
|
+
path = Sigh::DeveloperCenter.new.run
|
5
|
+
|
6
|
+
return nil unless path
|
7
|
+
|
8
|
+
if Sigh.config[:filename]
|
9
|
+
file_name = Sigh.config[:filename]
|
10
|
+
else
|
11
|
+
file_name = File.basename(path)
|
12
|
+
end
|
13
|
+
|
14
|
+
output = File.join(Sigh.config[:output_path].gsub("~", ENV["HOME"]), file_name)
|
15
|
+
(FileUtils.mv(path, output) rescue nil) # in case it already exists
|
16
|
+
system("open -g '#{output}'") unless Sigh.config[:skip_install]
|
17
|
+
puts output.green
|
18
|
+
|
19
|
+
return File.expand_path(output)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
data/lib/sigh/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sigh
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
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-03-
|
11
|
+
date: 2015-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fastlane_core
|
@@ -153,6 +153,7 @@ files:
|
|
153
153
|
- lib/sigh/dependency_checker.rb
|
154
154
|
- lib/sigh/developer_center.rb
|
155
155
|
- lib/sigh/developer_center_signing.rb
|
156
|
+
- lib/sigh/manager.rb
|
156
157
|
- lib/sigh/options.rb
|
157
158
|
- lib/sigh/profile_analyser.rb
|
158
159
|
- lib/sigh/resign.rb
|