cocoapods-deintegrate 1.0.1 → 1.0.2

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
- SHA1:
3
- metadata.gz: 4e5f3c887dc27f68850da1cc1033196dddcef2f7
4
- data.tar.gz: f59a5c8a1f79702aa10852ab5588c85051b5485f
2
+ SHA256:
3
+ metadata.gz: '097f7501f9d413be9da30b27513287cec2afeae63d6545515a57052b0785a3d7'
4
+ data.tar.gz: ba2dbebd9e6af00c6462f573f69bb9f96fcadf03a187d6737af8a55a79a371f3
5
5
  SHA512:
6
- metadata.gz: 11cab2ab5eb4c1e7546d13ae5991e1344d06a65ecfed06f170a29ca51562bd8dc9742839333326a3dd117339ba207a2943a6fd8770c8e6395e0caa1a47c94e2e
7
- data.tar.gz: 66eae301893f51564380bd1aff11edce413c5dfa0fdf8b2a4ff92be3e707b81eaaec8a74927bd7bd5d7b99fc5cfb3614e4d8eb5e7b1fbe3c4dbdcb27d277ba8f
6
+ metadata.gz: c6765ce96359ed1e95755f6c97bfbb7cf3c5740621d5a0a009e190f03ffead53ce711a5b866da3c55dd6d6ac257cc853df1e68b961a39952bdb8e27f0192f919
7
+ data.tar.gz: fbc3fbb6f61527aa07a16766a39280d2085e1f9ec84033a5fd0ebd40e563b3d4591f602adc0607255f682be790d3499cca0a731e35ef8c4f07210bd89d7cc74e
@@ -1,3 +1,3 @@
1
1
  module CocoapodsDeintegrate
2
- VERSION = '1.0.1'.freeze
2
+ VERSION = '1.0.2'.freeze
3
3
  end
@@ -22,6 +22,7 @@ module Pod
22
22
  deintegrate_shell_script_phase(target, 'Copy Pods Resources')
23
23
  deintegrate_shell_script_phase(target, 'Check Pods Manifest.lock')
24
24
  deintegrate_shell_script_phase(target, 'Embed Pods Frameworks')
25
+ deintegrate_user_shell_script_phases(target)
25
26
  deintegrate_pods_libraries(target)
26
27
  deintegrate_configuration_file_references(target)
27
28
  end
@@ -52,6 +53,21 @@ module Pod
52
53
  end
53
54
  end
54
55
 
56
+ def deintegrate_user_shell_script_phases(target)
57
+ user_script_phases = target.shell_script_build_phases.select do |phase|
58
+ next unless phase.name
59
+ phase.name.start_with?('[CP-User] ')
60
+ end
61
+
62
+ unless user_script_phases.empty?
63
+ user_script_phases.each do |phase|
64
+ target.build_phases.delete(phase)
65
+ end
66
+
67
+ UI.puts("Deleted #{user_script_phases.count} user build phases.")
68
+ end
69
+ end
70
+
55
71
  def deintegrate_shell_script_phase(target, phase_name)
56
72
  phases = target.shell_script_build_phases.select do |phase|
57
73
  phase.name && phase.name =~ /#{Regexp.escape(phase_name)}\z$/
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-deintegrate
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
  - Kyle Fuller
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-30 00:00:00.000000000 Z
11
+ date: 2018-01-18 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email:
@@ -44,7 +44,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
44
44
  version: '0'
45
45
  requirements: []
46
46
  rubyforge_project:
47
- rubygems_version: 2.4.5.1
47
+ rubygems_version: 2.7.4
48
48
  signing_key:
49
49
  specification_version: 4
50
50
  summary: A CocoaPods plugin to remove and de-integrate CocoaPods from your project.