fastlane-plugin-remove_provisioning_profile 1.0.2 → 1.0.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 286c8860de73a752b2f659044f6a2e746e9374dd
4
- data.tar.gz: a7923720f2b2b638158c0a147059d5209f7ec939
3
+ metadata.gz: c9e8c6182af7e982871de14632ca02114ec32fbd
4
+ data.tar.gz: 32c94c7cf5c5421b629ee8075d6a02e293ea10e4
5
5
  SHA512:
6
- metadata.gz: 77ee903b127457933195cc35842ac6a8eb179ae4401f6bfcf2326ec7330b676b0ada9320424fcb9c6e258d18b54b0f203fc700686205a23ab89fb22d3915e285
7
- data.tar.gz: 1d13fcccacf264313fda8b77ef9105260e2c0668cac6d0ec8367fdc6fabbca90e6ebe31955452ebf241d19f375b70713e24dc6227512fcf434af0e69f7606a0c
6
+ metadata.gz: ae0c1411dcbe9cb08049892c0304fcb52174be08ff1643fa7a891a5ccc8ef54ac579a71410c1110d489b10c7ba761b0b8c2d0a80e2536a8d89ef301250a52925
7
+ data.tar.gz: 2004569763eec045c7fae2097695adbd435148fab9d950025897cc9f4798537eb263375ccf4999ceda2c3ee2629392e2ed65cfe957eb22b7d628842f62366174
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # remove_provisioning_profile plugin
2
2
 
3
3
  [![fastlane Plugin Badge](https://rawcdn.githack.com/fastlane/fastlane/master/fastlane/assets/plugin-badge.svg)](https://rubygems.org/gems/fastlane-plugin-remove_provisioning_profile)
4
+ [![Build Status](https://travis-ci.org/Antondomashnev/fastlane-plugin-remove-provisioning-profile.svg?branch=master)](https://travis-ci.org/Antondomashnev/fastlane-plugin-remove-provisioning-profile)
5
+ [![codebeat badge](https://codebeat.co/badges/d32b9801-dec5-442b-955f-b52f83f7f936)](https://codebeat.co/projects/github-com-antondomashnev-fastlane-plugin-remove-provisioning-profile)
4
6
 
5
7
  ## Getting Started
6
8
 
@@ -24,7 +26,7 @@ Available options
24
26
 
25
27
  Example to run the action
26
28
  ```
27
- remove_provision_profiles(app_identifier: "com.antondomashnev.fastlane-plugin-remove-provisioning-profile", type: "development")
29
+ remove_provisioning_profile(app_identifier: "com.antondomashnev.fastlane-plugin-remove-provisioning-profile", type: "development")
28
30
  ```
29
31
 
30
32
  Example `lane` from our team's `fastfile`. The lane removes the old provisioning profiles of all types and then runs `match` to create and load new
@@ -34,7 +36,7 @@ desc "Recreate the provisioning profiles so you can deploy to your device, relea
34
36
  types = ["development", "adhoc", "appstore"]
35
37
  app_identifier = "com.antondomashnev.fastlane-plugin-remove-provisioning-profile"
36
38
  types.each do |type|
37
- remove_provision_profiles(app_identifier: app_identifier, type: type)
39
+ remove_provisioning_profile(app_identifier: app_identifier, type: type)
38
40
  match(app_identifier: app_identifier, type: type, force: true)
39
41
  end
40
42
  end
@@ -7,6 +7,11 @@ module Fastlane
7
7
  app_identifier = params[:app_identifier]
8
8
  type = params[:type]
9
9
  provisioning_profiles_folder = params[:provisioning_profiles_folder] ? params[:provisioning_profiles_folder] : "#{Dir.home}/Library/MobileDevice/Provisioning Profiles"
10
+ unless Dir.exist?(provisioning_profiles_folder)
11
+ UI.important("There is no directory at the given path '#{provisioning_profiles_folder}' skipping the action")
12
+ return
13
+ end
14
+
10
15
  UI.message("Looking for '#{type}' provisioning profile of '#{app_identifier}' in '#{provisioning_profiles_folder}'") if $verbose
11
16
 
12
17
  provisioning_profiles = []
@@ -61,7 +66,7 @@ module Fastlane
61
66
  optional: false,
62
67
  type: String,
63
68
  verify_block: proc do |value|
64
- UI.user_error!("No app identifier") if value.to_s.length == 0
69
+ UI.user_error!("No app identifier") if value.to_s.length.zero?
65
70
  end),
66
71
  FastlaneCore::ConfigItem.new(key: :type,
67
72
  description: "Provisioning profile type",
@@ -14,13 +14,13 @@ class File
14
14
  end
15
15
  end
16
16
 
17
- def self.include_two_lines?(file_path, included_line_1, included_line_2)
18
- stripped_included_line_1 = included_line_1.strip
19
- stripped_included_line_2 = included_line_2.strip
17
+ def self.include_two_lines?(file_path, included_line1, included_line2)
18
+ stripped_included_line1 = included_line1.strip
19
+ stripped_included_line2 = included_line2.strip
20
20
  previous_line = ""
21
21
  File.foreach(file_path).any? do |line|
22
22
  next unless line.valid_encoding?
23
- if previous_line.strip == stripped_included_line_1 && line.strip == stripped_included_line_2
23
+ if previous_line.strip == stripped_included_line1 && line.strip == stripped_included_line2
24
24
  true
25
25
  else
26
26
  previous_line = line
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module RemoveProvisioningProfile
3
- VERSION = "1.0.2"
3
+ VERSION = "1.0.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-remove_provisioning_profile
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anton Domashnev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-14 00:00:00.000000000 Z
11
+ date: 2016-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry
@@ -127,9 +127,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
127
127
  version: '0'
128
128
  requirements: []
129
129
  rubyforge_project:
130
- rubygems_version: 2.4.8
130
+ rubygems_version: 2.5.1
131
131
  signing_key:
132
132
  specification_version: 4
133
133
  summary: Remove provision profile from your local machine
134
134
  test_files: []
135
- has_rdoc: