match 0.1.0 → 0.1.1

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: b05098619e6260e1ea328c60d267cab0e14b2674
4
- data.tar.gz: d01c956fec14a9f4c6c8db830c90659bfe1393da
3
+ metadata.gz: bcf8bb2bf76236a3ccb6b729e06736a7de4e2a5c
4
+ data.tar.gz: e44d76eaf89787212f7c6123f20ff0f952004354
5
5
  SHA512:
6
- metadata.gz: 7b2c24bbcf2df8eaa0fd10a3b261f2fb3c5615c5e6272c6b9f4f50d380a54a88c76f72022a6bfe4c6ad35af4a877687b6da1b1fe8beaf3ad43fc9b8c796cfe85
7
- data.tar.gz: f430beaf50b3d6da26720e13735e1ed44e563326deae4b17bb3663160a2ab77a18c027f61d9153d093de1cff10e1a2e7451af3d1e6319dcc0536007b5e89ed6f
6
+ metadata.gz: 181c4643fd2149f7e4808a4aef5c5aba34eca9b3bfa6ba4b726740930a3e4910b562eb422a207ebb47979245f943a3e38258cd0c3f30bf3896b82909401b08ba
7
+ data.tar.gz: 0919c4b4f6fcee843ccf4acb7293d9b1a49fa7b26d5ad2c839c541303cfe80452a261bb8a846e9780fc907629850476c07b73d67960432d807db18b65572e3ef
data/README.md CHANGED
@@ -31,7 +31,6 @@ match
31
31
 
32
32
  [![License](https://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://github.com/fastlane/match/blob/master/LICENSE)
33
33
  [![Gem](https://img.shields.io/gem/v/match.svg?style=flat)](http://rubygems.org/gems/match)
34
- [![Build Status](https://img.shields.io/travis/fastlane/match/master.svg?style=flat)](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:
@@ -52,7 +52,9 @@ module Match
52
52
  end
53
53
 
54
54
  def self.clear_changes
55
- FileUtils.rm_rf(@dir) if @dir # @dir might be nil in tests
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
- profile.delete!
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
- cert.revoke!
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: "MATCH_GIT_URl",
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.start_with?("https://") || value.start_with?("git")
18
- raise "git_url must start with either https:// or git://".red
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 `fastlane appstore`"
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
@@ -1,4 +1,4 @@
1
1
  module Match
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
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.1.0
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-10 00:00:00.000000000 Z
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.0
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.0
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.0
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