cocoapods-deintegrate 1.0.2 → 1.0.3

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
- SHA256:
3
- metadata.gz: '097f7501f9d413be9da30b27513287cec2afeae63d6545515a57052b0785a3d7'
4
- data.tar.gz: ba2dbebd9e6af00c6462f573f69bb9f96fcadf03a187d6737af8a55a79a371f3
2
+ SHA1:
3
+ metadata.gz: 20ce8d2ea9deb7024f0b04c02f784317cc1f0aaf
4
+ data.tar.gz: cac8053d65182b01e0225af9b8541269326ab8de
5
5
  SHA512:
6
- metadata.gz: c6765ce96359ed1e95755f6c97bfbb7cf3c5740621d5a0a009e190f03ffead53ce711a5b866da3c55dd6d6ac257cc853df1e68b961a39952bdb8e27f0192f919
7
- data.tar.gz: fbc3fbb6f61527aa07a16766a39280d2085e1f9ec84033a5fd0ebd40e563b3d4591f602adc0607255f682be790d3499cca0a731e35ef8c4f07210bd89d7cc74e
6
+ metadata.gz: 42d68c1659f854366abd419de31c330cd1167efe80505ffada675407e25bcc2ea4177a31be201918b169aacea5936a9691af6327a22dc7421d3f1dfa8311352e
7
+ data.tar.gz: eb331307179f09d91a06e74eb3ba8a18cc7848fb99854a818d0efede34bfabde474e3cff1cfa7b3b4a29e962d8056b13a429a9e14f0ec72220a5c94f022356cc
@@ -1,3 +1,3 @@
1
1
  module CocoapodsDeintegrate
2
- VERSION = '1.0.2'.freeze
2
+ VERSION = '1.0.3'.freeze
3
3
  end
@@ -2,6 +2,9 @@ module Pod
2
2
  class Deintegrator
3
3
  include Config::Mixin
4
4
 
5
+ FRAMEWORK_NAMES = /^(libPods.*\.a)|(Pods.*\.framework)$/i
6
+ XCCONFIG_NAMES = /^Pods.*\.xcconfig$/i
7
+
5
8
  def deintegrate_project(project)
6
9
  UI.section("Deintegrating #{UI.path project.path}") do
7
10
  project.native_targets.each do |target|
@@ -40,7 +43,7 @@ module Pod
40
43
  frameworks_build_phase = target.frameworks_build_phase
41
44
 
42
45
  pods_build_files = frameworks_build_phase.files.select do |build_file|
43
- build_file.display_name =~ /^(libPods.*\.a)|(Pods.*\.framework)$/i
46
+ build_file.display_name =~ FRAMEWORK_NAMES
44
47
  end
45
48
 
46
49
  unless pods_build_files.empty?
@@ -96,7 +99,7 @@ module Pod
96
99
  def deintegrate_configuration_file_references(target)
97
100
  config_files = target.build_configurations.map do |config|
98
101
  config_file = config.base_configuration_reference
99
- config_file if config_file && config_file.name =~ /^Pods.*\.xcconfig$/i
102
+ config_file if config_file && config_file.name =~ XCCONFIG_NAMES
100
103
  end.compact
101
104
  unless config_files.empty?
102
105
  UI.section('Deleting configuration file references') do
@@ -117,7 +120,7 @@ module Pod
117
120
 
118
121
  pod_files = groups.flat_map do |group|
119
122
  group.files.select do |obj|
120
- obj.name =~ /^Pods.*\.xcconfig$/i ||
123
+ obj.name =~ XCCONFIG_NAMES ||
121
124
  obj.path =~ /^(libPods.*\.a)|(Pods_.*\.framework)$/i
122
125
  end
123
126
  end
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.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Fuller
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-18 00:00:00.000000000 Z
11
+ date: 2019-02-21 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.7.4
47
+ rubygems_version: 2.6.14
48
48
  signing_key:
49
49
  specification_version: 4
50
50
  summary: A CocoaPods plugin to remove and de-integrate CocoaPods from your project.