fastlane-plugin-remove_provisioning_profile 1.0.1 → 1.0.2

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: 28f01de37d681323d4ba2b6b863c558d038f0428
4
- data.tar.gz: ab4a5654335facd232b9207594f346d6dfe4ad8c
3
+ metadata.gz: 286c8860de73a752b2f659044f6a2e746e9374dd
4
+ data.tar.gz: a7923720f2b2b638158c0a147059d5209f7ec939
5
5
  SHA512:
6
- metadata.gz: 337e87ecb29abb4f3f69c8468d6b2b8b663a2f048ba8af9aa84d615f59c54aef7f1ee2ecb4e40b08322bd7df2f6dce8b846f1999a0d0064331d194068076df41
7
- data.tar.gz: 0f2b10aa44dffc502ce63573e13ff6bc43bcff6dffd113341e6aa878de43020ea3c981cb1a9b87e96bf6a4467d7eaff8632d5dd605888caf2fae63d86d339d14
6
+ metadata.gz: 77ee903b127457933195cc35842ac6a8eb179ae4401f6bfcf2326ec7330b676b0ada9320424fcb9c6e258d18b54b0f203fc700686205a23ab89fb22d3915e285
7
+ data.tar.gz: 1d13fcccacf264313fda8b77ef9105260e2c0668cac6d0ec8367fdc6fabbca90e6ebe31955452ebf241d19f375b70713e24dc6227512fcf434af0e69f7606a0c
@@ -1,6 +1,7 @@
1
1
  class File
2
2
  def self.include_string?(file_path, included_string)
3
3
  File.foreach(file_path).any? do |line|
4
+ next unless line.valid_encoding?
4
5
  line.include?(included_string)
5
6
  end
6
7
  end
@@ -8,6 +9,7 @@ class File
8
9
  def self.include_line?(file_path, included_line)
9
10
  stripped_included_line = included_line.strip
10
11
  File.foreach(file_path).any? do |line|
12
+ next unless line.valid_encoding?
11
13
  line.strip == stripped_included_line
12
14
  end
13
15
  end
@@ -17,6 +19,7 @@ class File
17
19
  stripped_included_line_2 = included_line_2.strip
18
20
  previous_line = ""
19
21
  File.foreach(file_path).any? do |line|
22
+ next unless line.valid_encoding?
20
23
  if previous_line.strip == stripped_included_line_1 && line.strip == stripped_included_line_2
21
24
  true
22
25
  else
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module RemoveProvisioningProfile
3
- VERSION = "1.0.1"
3
+ VERSION = "1.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
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.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anton Domashnev