XCBuildFaster 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: e3ddb9cc4e15ac6853e576fa0fa6d87f21525242
4
- data.tar.gz: 12619d9d703f20034c666162040d415ed0ca5610
3
+ metadata.gz: e3ccdc9fcffb8e77f35883bc8029c9a20672ebb4
4
+ data.tar.gz: 7fa1120bea34747faccfae3196ff8dd64fd65d22
5
5
  SHA512:
6
- metadata.gz: c9b99824ba91343396bd69732da64690a2f578bd00ff24e32b2a49786f43db1ddba8136689a77831bdefab4c582f346a548d01d6ce2d435575e9fb4b958f4eed
7
- data.tar.gz: 5a731b48f4aac14372595c920c47f44590e2ca365effc0c76fdc400f897376682e2de09b04d30f89a1d9c978f5e9e995190843e7411483178b596038ede52f77
6
+ metadata.gz: 600fc043a169e8b9048d28c73795fc8883f391410514b92844eeb28302116eb4a21f38cc1da9966befb374ec2f098603c0a7212ac1f5f05546fd95bb982090dd
7
+ data.tar.gz: a8fad6b76d14b0c23e559207a72ebc29aaedf7a63341043fee6946c1229f2fef56c07bdd26ef8b77f43dc842cee66f1e6f42710ad397e43e71ca746b851e4efa
@@ -26,7 +26,16 @@ module XCBuildFaster
26
26
  project.targets.each do |target|
27
27
  scripts = target.shell_script_build_phases
28
28
  target.shell_script_build_phases.each do |shell_script_build_phase|
29
- shell_script_build_phase.shell_script = "# WARNING: Shell script removed via XCBuildFaster! You probably don't want to commit this."
29
+ script = shell_script_build_phase.shell_script
30
+
31
+ # Comment out each line of the script
32
+ script = script.lines.map { |line| "# #{line}" }.join
33
+
34
+ # Add a warning
35
+ warning = "echo 'warning: #{target.to_s} modified by xcbuildfaster. Your run script(s) have been replaced with this warning, you probably dont want to commit this!'"
36
+ script = "#{warning}\n#{script}"
37
+
38
+ shell_script_build_phase.shell_script = script
30
39
  end
31
40
 
32
41
  target.build_configurations.each do |build_config|
@@ -1,3 +1,3 @@
1
1
  module Xcbuildfaster
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: XCBuildFaster
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
  - Dave Schukin