match 0.1.0 → 0.1.1
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 +2 -1
- data/lib/match/git_helper.rb +3 -1
- data/lib/match/nuke.rb +10 -2
- data/lib/match/options.rb +3 -3
- data/lib/match/runner.rb +2 -2
- data/lib/match/setup.rb +1 -1
- data/lib/match/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bcf8bb2bf76236a3ccb6b729e06736a7de4e2a5c
|
4
|
+
data.tar.gz: e44d76eaf89787212f7c6123f20ff0f952004354
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 181c4643fd2149f7e4808a4aef5c5aba34eca9b3bfa6ba4b726740930a3e4910b562eb422a207ebb47979245f943a3e38258cd0c3f30bf3896b82909401b08ba
|
7
|
+
data.tar.gz: 0919c4b4f6fcee843ccf4acb7293d9b1a49fa7b26d5ad2c839c541303cfe80452a261bb8a846e9780fc907629850476c07b73d67960432d807db18b65572e3ef
|
data/README.md
CHANGED
@@ -31,7 +31,6 @@ match
|
|
31
31
|
|
32
32
|
[](https://github.com/fastlane/match/blob/master/LICENSE)
|
33
33
|
[](http://rubygems.org/gems/match)
|
34
|
-
[](https://travis-ci.org/fastlane/match)
|
35
34
|
|
36
35
|
###### Easily sync your certificates and profiles across your team using git
|
37
36
|
|
@@ -162,6 +161,8 @@ match --help
|
|
162
161
|
|
163
162
|
When running `match` for the first time on a new machine, it will ask you for the passphrase for the Git repository. This is an additional layer of security: each of the files will be encrypted using `openssl`.Make sure to remember the password, as you'll need it when you run match on a different machine
|
164
163
|
|
164
|
+
To set the passphrase using an environment variable, use `MATCH_PASSWORD`.
|
165
|
+
|
165
166
|
#### New machine
|
166
167
|
|
167
168
|
To set up the certificates and provisioning profiles on a new machine, you just run the same command using:
|
data/lib/match/git_helper.rb
CHANGED
@@ -52,7 +52,9 @@ module Match
|
|
52
52
|
end
|
53
53
|
|
54
54
|
def self.clear_changes
|
55
|
-
|
55
|
+
return unless @dir
|
56
|
+
|
57
|
+
FileUtils.rm_rf(@dir)
|
56
58
|
UI.success "🔒 Successfully encrypted certificates repo" # so the user is happy
|
57
59
|
@dir = nil
|
58
60
|
end
|
data/lib/match/nuke.rb
CHANGED
@@ -117,14 +117,22 @@ module Match
|
|
117
117
|
UI.header "Deleting #{self.profiles.count} provisioning profiles..." unless self.profiles.count == 0
|
118
118
|
self.profiles.each do |profile|
|
119
119
|
UI.message "Deleting profile '#{profile.name}' (#{profile.id})..."
|
120
|
-
|
120
|
+
begin
|
121
|
+
profile.delete!
|
122
|
+
rescue => ex
|
123
|
+
UI.message(ex.to_s)
|
124
|
+
end
|
121
125
|
UI.success "Successfully deleted profile"
|
122
126
|
end
|
123
127
|
|
124
128
|
UI.header "Revoking #{self.certs.count} certificates..." unless self.certs.count == 0
|
125
129
|
self.certs.each do |cert|
|
126
130
|
UI.message "Revoking certificate '#{cert.name}' (#{cert.id})..."
|
127
|
-
|
131
|
+
begin
|
132
|
+
cert.revoke!
|
133
|
+
rescue => ex
|
134
|
+
UI.message(ex.to_s)
|
135
|
+
end
|
128
136
|
UI.success "Successfully deleted certificate"
|
129
137
|
end
|
130
138
|
|
data/lib/match/options.rb
CHANGED
@@ -9,13 +9,13 @@ module Match
|
|
9
9
|
|
10
10
|
[
|
11
11
|
FastlaneCore::ConfigItem.new(key: :git_url,
|
12
|
-
env_name: "
|
12
|
+
env_name: "MATCH_GIT_URL",
|
13
13
|
description: "URL to the git repo containing all the certificates",
|
14
14
|
optional: false,
|
15
15
|
short_option: "-r",
|
16
16
|
verify_block: proc do |value|
|
17
|
-
unless value.
|
18
|
-
raise "git_url must start with
|
17
|
+
unless value.match("^(https|git|ssh)://")
|
18
|
+
raise "git_url must start with https://, git:// or ssh://".red
|
19
19
|
end
|
20
20
|
end),
|
21
21
|
FastlaneCore::ConfigItem.new(key: :type,
|
data/lib/match/runner.rb
CHANGED
@@ -26,13 +26,13 @@ module Match
|
|
26
26
|
if self.changes_to_commit
|
27
27
|
message = GitHelper.generate_commit_message(params)
|
28
28
|
GitHelper.commit_changes(params[:workspace], message, params[:git_url])
|
29
|
-
else
|
30
|
-
GitHelper.clear_changes
|
31
29
|
end
|
32
30
|
|
33
31
|
TablePrinter.print_summary(params, uuid)
|
34
32
|
|
35
33
|
UI.success "All required keys, certificates and provisioning profiles are installed 🙌".green
|
34
|
+
ensure
|
35
|
+
GitHelper.clear_changes
|
36
36
|
end
|
37
37
|
|
38
38
|
def certificate(params: nil)
|
data/lib/match/setup.rb
CHANGED
@@ -11,7 +11,7 @@ module Match
|
|
11
11
|
File.write(path, template)
|
12
12
|
UI.success "Successfully created '#{path}'. You can open the file using a code editor."
|
13
13
|
|
14
|
-
UI.important "You can now run `match development`, `match adhoc` and `
|
14
|
+
UI.important "You can now run `match development`, `match adhoc` and `match appstore`"
|
15
15
|
UI.message "On the first run for each environment it will create the provisioning profiles and"
|
16
16
|
UI.message "certificates for you. From then on, it will automatically import the existing profiles."
|
17
17
|
UI.message "For more information visit https://github.com/fastlane/match"
|
data/lib/match/version.rb
CHANGED
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.1.
|
4
|
+
version: 0.1.1
|
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-12-
|
11
|
+
date: 2015-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: security
|
@@ -30,7 +30,7 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.29.
|
33
|
+
version: 0.29.1
|
34
34
|
- - "<"
|
35
35
|
- !ruby/object:Gem::Version
|
36
36
|
version: 1.0.0
|
@@ -40,7 +40,7 @@ dependencies:
|
|
40
40
|
requirements:
|
41
41
|
- - ">="
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version: 0.29.
|
43
|
+
version: 0.29.1
|
44
44
|
- - "<"
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: 1.0.0
|
@@ -295,7 +295,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
295
295
|
version: '0'
|
296
296
|
requirements: []
|
297
297
|
rubyforge_project:
|
298
|
-
rubygems_version: 2.4.
|
298
|
+
rubygems_version: 2.4.6
|
299
299
|
signing_key:
|
300
300
|
specification_version: 4
|
301
301
|
summary: Easily sync your certificates and profiles across your team using git
|