cocoapods-amicable 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cocoapods_amicable.rb +17 -17
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a2e5477e835ce82dceffcb314fb7c7cac810077eb0fcef2f28429c9156da46a
|
4
|
+
data.tar.gz: 68569580890edee8487ab502d9180568d5ebf827cfd7749b17844f05a9292115
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c4400a36a9ece13f6c0d6fe450df35823d9e69edd0eb0fd4197d13767cdd43f020af7bd066ad67bc6d24e20d5a1248ccff54c9c7b83fae6fae731f2d36f711c
|
7
|
+
data.tar.gz: 10323ea6b2995f4293dde816ab019e4fa4adee0078dcde1675ad4a94f0ff64fbe3e10bbba8200d2cee267d1faa6d69fc5133194680d091fd91fab4d51083c839
|
data/lib/cocoapods_amicable.rb
CHANGED
@@ -53,8 +53,8 @@ module CocoaPodsAmicable
|
|
53
53
|
def write_sha1_file
|
54
54
|
return unless name = podfile_basename
|
55
55
|
sha1_file_path.open('w') do |f|
|
56
|
-
f.write
|
57
|
-
|
56
|
+
f.write <<-EOS
|
57
|
+
#{checksum} #{name}
|
58
58
|
EOS
|
59
59
|
end
|
60
60
|
end
|
@@ -75,25 +75,25 @@ module CocoaPodsAmicable
|
|
75
75
|
end
|
76
76
|
|
77
77
|
def update_check_manifest_script_phase(build_phase)
|
78
|
-
build_phase.shell_script =
|
79
|
-
|
80
|
-
|
81
|
-
|
78
|
+
build_phase.shell_script = <<-SH
|
79
|
+
set -e
|
80
|
+
set -u
|
81
|
+
set -o pipefail
|
82
82
|
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
83
|
+
fail() {
|
84
|
+
# print error to STDERR
|
85
|
+
echo "error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation." $@ >&2
|
86
|
+
exit 1
|
87
|
+
}
|
88
88
|
|
89
|
-
|
89
|
+
diff -q "${PODS_PODFILE_DIR_PATH}/Podfile.lock" "${PODS_ROOT}/Manifest.lock" > /dev/null || fail "The manifest in the sandbox differs from your lockfile."
|
90
90
|
|
91
|
-
|
92
|
-
|
93
|
-
|
91
|
+
if [ -f "${PODS_ROOT}/Podfile.sha1" ]; then
|
92
|
+
(cd "${PODS_PODFILE_DIR_PATH}" && shasum --algorithm 1 --status --check "${PODS_ROOT}/Podfile.sha1") || fail "Your Podfile has been changed since the last time you ran 'pod install'."
|
93
|
+
fi
|
94
94
|
|
95
|
-
|
96
|
-
|
95
|
+
# This output is used by Xcode 'outputs' to avoid re-running this script phase.
|
96
|
+
echo "SUCCESS" > "${SCRIPT_OUTPUT_FILE_0}"
|
97
97
|
SH
|
98
98
|
|
99
99
|
build_phase.input_paths = %w[
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-amicable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Giddins
|
@@ -57,9 +57,9 @@ require_paths:
|
|
57
57
|
- lib
|
58
58
|
required_ruby_version: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
|
-
- - "
|
60
|
+
- - "~>"
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version: '
|
62
|
+
version: '2.1'
|
63
63
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
65
|
- - ">="
|