sigh 0.4.2 → 0.4.3

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: 98cd85a7727c66b6bc55bf89e06958f41e0dc6c4
4
- data.tar.gz: b2b57728c4183502fb4293795dcf7ba1506cbaeb
3
+ metadata.gz: b3291e97008dd2f4f2b320e5978379cd90590130
4
+ data.tar.gz: 4c2e0a6a968ba982fe3f22fb3fdf5e5775caeb31
5
5
  SHA512:
6
- metadata.gz: 068f8550e8b8cacbad0662adbea55ae304eacc5356131f0f025e9a4b8e8737720c311a324adcbe872ed26a0c01ede92d6c8cf6be3f13bab289a5550a0f70ff6f
7
- data.tar.gz: 8ea1a9c717d62506d70d7ef5503dde881602a5bf4c95f8c220d84bcae9b6bc09fc525b09e2e1b6a8b47ad2f2cdc35a4265979db63a530a8da1d69991f0708742
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
 
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Sigh
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.3"
3
3
  end
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.2
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-07 00:00:00.000000000 Z
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