sigh 1.4.1 → 1.5.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: 63a5bb24c8badd1785e7c1c9ad7a7b1ec75b8afb
4
- data.tar.gz: 5483452777078315cf20bca6204bf82f65db39a5
3
+ metadata.gz: 9159d692101e0ab29e7e584b3315331c5893ec57
4
+ data.tar.gz: 33c046da77c8c5f1ed6cf36e89bde73f90f6214f
5
5
  SHA512:
6
- metadata.gz: 1a73a95c3a208e70bd5df6bc032a650a79b9587b6287dc9de07ee896be51a35bf7da301fa8f5e69fdae516e932e2b27e7aba69a1a9772b0703584082f0b6c43f
7
- data.tar.gz: 32e970b5abb7eeaf379d2e3b67d8ada1e4985613f3845c34b4e4d66e0f497745824758edbc685b081b19c327ac7960b9025076d452d2822cb3467c0468b9c1c9
6
+ metadata.gz: c15d403e37f4b7806575c97dcd7d4a14ce258b683e0fb83fafa2746f3d16a03476d77873156b2738f8b23cc1009545989c384af495e49f9bf5eb28d2500a4792
7
+ data.tar.gz: f43c37e9c0d134f11d92ec0920dfc3c240e82855d36bb62abd7ee1d9ef588c232ef9dc8c3d30f7482ffde150c5c5ce943fd6f08e6a411f2c1e1222b717c5b11e
@@ -77,7 +77,7 @@ module Sigh
77
77
  UI.message ""
78
78
  UI.message "Summary"
79
79
  UI.message "#{profiles.count} installed profiles"
80
- UI.message "#{profiles_expired.count} are expired".red
80
+ UI.message "#{profiles_expired.count} are expired".red if profiles_expired.count > 0
81
81
  UI.message "#{profiles_soon.count} are valid but will expire within 30 days".yellow
82
82
  UI.message "#{profiles_valid.count} are valid".green
83
83
 
data/lib/sigh/runner.rb CHANGED
@@ -34,7 +34,7 @@ module Sigh
34
34
  profile = profile.update! # assign it, as it's a new profile
35
35
  end
36
36
  else
37
- UI.important "No existing profiles found, that match the certificates you have installed, creating a new one for you"
37
+ UI.important "No existing profiles found, that match the certificates you have installed locally! Creating a new provisioning profile for you"
38
38
  ensure_app_exists!
39
39
  profile = create_profile!
40
40
  end
@@ -72,8 +72,8 @@ module Sigh
72
72
  filtered = results.select { |p| p.name.strip == Sigh.config[:provisioning_name].strip }
73
73
  if Sigh.config[:ignore_profiles_with_different_name]
74
74
  results = filtered
75
- else
76
- results = filtered if (filtered || []).count > 0
75
+ elsif (filtered || []).count > 0
76
+ results = filtered
77
77
  end
78
78
  end
79
79
 
@@ -86,7 +86,11 @@ module Sigh
86
86
  file = Tempfile.new('cert')
87
87
  file.write(cert.download_raw)
88
88
  file.close
89
- installed = true if FastlaneCore::CertChecker.installed?(file.path)
89
+ if FastlaneCore::CertChecker.installed?(file.path)
90
+ installed = true
91
+ else
92
+ UI.important("Certificate for Provisioning Profile '#{a.name}' not available locally: #{cert.id}")
93
+ end
90
94
  end
91
95
  installed
92
96
  end
@@ -136,6 +140,16 @@ module Sigh
136
140
  true
137
141
  end
138
142
 
143
+ unless Sigh.config[:skip_certificate_verification]
144
+ certificates = certificates.find_all do |c|
145
+ file = Tempfile.new('cert')
146
+ file.write(c.download_raw)
147
+ file.close
148
+
149
+ FastlaneCore::CertChecker.installed?(file.path)
150
+ end
151
+ end
152
+
139
153
  if certificates.count > 1 and !Sigh.config[:development]
140
154
  UI.important "Found more than one code signing identity. Choosing the first one. Check out `sigh --help` to see all available options."
141
155
  UI.important "Available Code Signing Identities for current filters:"
@@ -150,7 +164,7 @@ module Sigh
150
164
  filters << "Owner Name: '#{Sigh.config[:cert_owner_name]}' " if Sigh.config[:cert_owner_name]
151
165
  filters << "Certificate ID: '#{Sigh.config[:cert_id]}' " if Sigh.config[:cert_id]
152
166
  UI.important "No certificates for filter: #{filters}" if filters.length > 0
153
- UI.user_error!("Could not find a matching code signing identity for #{profile_type}. You can use cert to generate one (https://github.com/fastlane/fastlane/tree/master/cert)")
167
+ UI.user_error!("Could not find a matching code signing identity for type '#{profile_type.to_s.split(':').last}'. You can use cert to generate one: \nhttps://github.com/fastlane/fastlane/tree/master/cert")
154
168
  end
155
169
 
156
170
  return certificates if Sigh.config[:development] # development profiles support multiple certificates
data/lib/sigh/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Sigh
2
- VERSION = "1.4.1"
2
+ VERSION = "1.5.0"
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: 1.4.1
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-09 00:00:00.000000000 Z
11
+ date: 2016-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fastlane_core
@@ -182,14 +182,14 @@ dependencies:
182
182
  requirements:
183
183
  - - "~>"
184
184
  - !ruby/object:Gem::Version
185
- version: 0.35.1
185
+ version: 0.38.0
186
186
  type: :development
187
187
  prerelease: false
188
188
  version_requirements: !ruby/object:Gem::Requirement
189
189
  requirements:
190
190
  - - "~>"
191
191
  - !ruby/object:Gem::Version
192
- version: 0.35.1
192
+ version: 0.38.0
193
193
  description: Because you would rather spend your time building stuff than fighting
194
194
  provisioning
195
195
  email:
@@ -232,7 +232,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
232
232
  version: '0'
233
233
  requirements: []
234
234
  rubyforge_project:
235
- rubygems_version: 2.2.2
235
+ rubygems_version: 2.4.8
236
236
  signing_key:
237
237
  specification_version: 4
238
238
  summary: Because you would rather spend your time building stuff than fighting provisioning