match 0.2.3 → 0.2.4

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: b5be00b2f40c0abbfb617e63df232a870ccf4420
4
- data.tar.gz: 2dea3eceaf91c17fc1e8931009496b7b17ca7fd4
3
+ metadata.gz: db559e6b927af240f2ece0de8e67b001918d81b0
4
+ data.tar.gz: 97b99d5cd2992ffabe9ada9f58f634cb98ce84e6
5
5
  SHA512:
6
- metadata.gz: b5931858fa62b8028032a6ca65da006bdbd8a1aac566d092575523a4ce125f9c47c9f743bb90d5cd5656361382f5b9c0e85460d7d5e25239732c8065065f8bdd
7
- data.tar.gz: e0d4c5432fa521c39d887f698969252070a1f036083cf9b0989a22563074385abc328e0c4ed9a65b0043916e0432d236d18896e216a3f9c174b5f03452536083
6
+ metadata.gz: b44acc2285c98b2ca5264722eaa90be2b4382552568c451a36793f51ea1115f87641535871118eb91b4e5ced29a3a6d6d98b1b8fffea740eb2616cc103df6c82
7
+ data.tar.gz: b9cda6beca4af09c630fbf24015d4a7bae0dc68eb85a8bd1a94388094538f3c2e5d0d756857340698ff26b24c0eddbfca7594eb5e2291ca4619c9c5d8ad02f83
data/README.md CHANGED
@@ -270,7 +270,7 @@ You can statically select the right provisioning profile in your Xcode project (
270
270
 
271
271
  ### Nuke
272
272
 
273
- If you never really cared about code signing and have a messy Apple Developer account with a lot of invalid, expired or Xcode managed profiles/certificates, you can use the `match nuke` command to revoke your certificates and provisioning profiles. Don't worry, apps that are already available in the App Store will still work. After clearing your account you'll start from a clean state, and you can run `match` to generate your certificates and profiles again.
273
+ If you never really cared about code signing and have a messy Apple Developer account with a lot of invalid, expired or Xcode managed profiles/certificates, you can use the `match nuke` command to revoke your certificates and provisioning profiles. Don't worry, apps that are already available in the App Store will still work. Builds distributed via TestFlight might be disabled after nuking your account, you'll have to re-upload a new build. After clearing your account you'll start from a clean state, and you can run `match` to generate your certificates and profiles again.
274
274
 
275
275
  To revoke all certificates and provisioning profiles for a specific environment:
276
276
 
data/lib/match.rb CHANGED
@@ -21,7 +21,11 @@ module Match
21
21
 
22
22
  def self.environments
23
23
  envs = %w(appstore adhoc development)
24
- envs << "enterprise" if ENV["MATCH_FORCE_ENTERPRISE"]
24
+ envs << "enterprise" if self.enterprise?
25
25
  return envs
26
26
  end
27
+
28
+ def self.enterprise?
29
+ ENV["MATCH_FORCE_ENTERPRISE"]
30
+ end
27
31
  end
@@ -35,7 +35,7 @@ module Match
35
35
  def self.generate_provisioning_profile(params: nil, prov_type: nil, certificate_id: nil)
36
36
  require 'sigh'
37
37
 
38
- prov_type = :enterprise if ENV["MATCH_FORCE_ENTERPRISE"] && ENV["SIGH_PROFILE_ENTERPRISE"]
38
+ prov_type = :enterprise if Match.enterprise? && ENV["SIGH_PROFILE_ENTERPRISE"]
39
39
  profile_name = ["match", profile_type_name(prov_type), params[:app_identifier]].join(" ")
40
40
 
41
41
  arguments = FastlaneCore::Configuration.create(Sigh::Options.available_options, {
data/lib/match/nuke.rb CHANGED
@@ -170,7 +170,7 @@ module Match
170
170
  def certificate_type(type)
171
171
  cert_type = Spaceship.certificate.production
172
172
  cert_type = Spaceship.certificate.development if type == :development
173
- cert_type = Spaceship.certificate.in_house if ENV["MATCH_FORCE_ENTERPRISE"] && Spaceship.client.in_house?
173
+ cert_type = Spaceship.certificate.in_house if Match.enterprise? && Spaceship.client.in_house?
174
174
 
175
175
  cert_type
176
176
  end
@@ -178,7 +178,7 @@ module Match
178
178
  # The kind of provisioning profile we're interested in
179
179
  def profile_type(type)
180
180
  profile_type = Spaceship.provisioning_profile.app_store
181
- profile_type = Spaceship.provisioning_profile.in_house if ENV["MATCH_FORCE_ENTERPRISE"] && Spaceship.client.in_house?
181
+ profile_type = Spaceship.provisioning_profile.in_house if Match.enterprise? && Spaceship.client.in_house?
182
182
  profile_type = Spaceship.provisioning_profile.ad_hoc if type == :adhoc
183
183
  profile_type = Spaceship.provisioning_profile.development if type == :development
184
184
 
data/lib/match/runner.rb CHANGED
@@ -38,6 +38,7 @@ module Match
38
38
  def certificate(params: nil)
39
39
  cert_type = :distribution
40
40
  cert_type = :development if params[:type] == "development"
41
+ cert_type = :enterprise if Match.enterprise? && params[:type] == "enterprise"
41
42
 
42
43
  certs = Dir[File.join(params[:workspace], "certs", cert_type.to_s, "*.cer")]
43
44
  keys = Dir[File.join(params[:workspace], "certs", cert_type.to_s, "*.p12")]
data/lib/match/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Match
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  DESCRIPTION = "Easily sync your certificates and profiles across your team using git"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: match
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
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-01-01 00:00:00.000000000 Z
11
+ date: 2016-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: security