cocoapods-clean_build_phases_scripts 0.0.1 → 0.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: 94e4881869aee1efdaf2308fb67c9e10b8c1aed3
4
- data.tar.gz: a1fe41fb91a4203e75ca57968b9798557ba1e472
3
+ metadata.gz: 6401c41ba0d3a89a2d6803d8eef51ffe37e2f5a7
4
+ data.tar.gz: 69c7882ecb6c8303b271b081fc1f578a176f6c98
5
5
  SHA512:
6
- metadata.gz: df5d5c57df2ceb74613eab3f8a616ce7831c6620be0fd257f998169b7f1cf17375cf45e3007800a3a2a7ac3d06212b6bbb35f5bdc921d921367ae6e616523fb4
7
- data.tar.gz: 00b0a359c352718829398d32c95bf28dc8eb85de3a9f23cc059ffdb28c232cf5347ab1fd41d5444ec0fc8e7dc2f534804bc3f589f752ca5fe33076f77c8b0852
6
+ metadata.gz: e10e4aede74e751c2795971319266a6c06ab4e7b87f564c95c97de70e2f73a49975aa2fce95ac90c12e0aba1ee591e67468fd4915d42f68cea6dedeafe4a2217
7
+ data.tar.gz: a7de4567278d15211311e6c90f68f91d332fac35d7735ec69eaad9ad9c65f8ee9133f18d0d648b62699dd636ee5347e4be035a946de2b4474400673e9ac51aa0
data/README.md CHANGED
@@ -8,4 +8,4 @@ A description of cocoapods-clean_build_phases_scripts.
8
8
 
9
9
  ## Usage
10
10
 
11
- $ pod spec clean_build_phases_scripts POD_NAME
11
+ $ pod clean-build-phases-scripts --xcodeproj=XCODEPROJ_PATH
@@ -22,13 +22,19 @@ module Pod
22
22
  end
23
23
 
24
24
  def run
25
- if !@xcodeproj_path
26
- @xcodeproj_path = Dir.glob("**/*.xcodeproj").first
25
+ if @xcodeproj_path
26
+ clean(@xcodeproj_path)
27
+ else
28
+ projects = Dir.glob("**/*.xcodeproj")
29
+ projects.each do |project_path|
30
+ puts "Checking project #{project_path}"
31
+ clean(project_path)
32
+ end
27
33
  end
34
+ end
28
35
 
29
- help! 'A xcodeproj file could not found.' unless @xcodeproj_path
30
-
31
- xcode_project = Xcodeproj::Project.open(@xcodeproj_path)
36
+ def clean(project_path)
37
+ xcode_project = Xcodeproj::Project.open(project_path)
32
38
  xcode_project.targets.each do |target|
33
39
  phase_name = '[CP] Copy Pods Resources'
34
40
  target.shell_script_build_phases.select { |phase| phase.name && phase.name.end_with?(phase_name) }.each do |phase|
@@ -37,7 +43,7 @@ module Pod
37
43
  phase.output_paths = []
38
44
  end
39
45
  end
40
- xcode_project.save
46
+ xcode_project.save
41
47
  end
42
48
 
43
49
  end
@@ -1,3 +1,3 @@
1
1
  module CocoapodsCleanBuildPhasesScripts
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-clean_build_phases_scripts
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicolas Andres Suarez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-30 00:00:00.000000000 Z
11
+ date: 2019-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler