cocoapods-patch 0.0.8 → 0.0.9
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 +4 -4
- data/lib/cocoapods_patch.rb +1 -1
- data/lib/pod/command/patch/apply.rb +1 -1
- data/lib/pod/command/patch/create.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f0aa117625e0803e3576bbb68fcbb3b005794e874324c83f215be1ab88e995cd
|
|
4
|
+
data.tar.gz: 9a8b0648a734914a667805591fcc2d005ab797ba76efe76f8d8d86709299a1d5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 793bafd2255d2e9d86881fdc6087e6cdd75d4d73cc36364a53cac6914bbfa8befc0735503542ff9e8c55aba4fbd223c28ef029af3172c56785bb115c31176415
|
|
7
|
+
data.tar.gz: b0bc3602df6ca681dfdb14da70e4a05e3d2d5d311ab08b0c14b3df4e01c9d000b881e6c8acfb5272bf0353745855242ff21bcc8c6ebefa88fa38075237c234f1
|
data/lib/cocoapods_patch.rb
CHANGED
|
@@ -37,7 +37,7 @@ def apply_patch(patch_file)
|
|
|
37
37
|
directory_arg = (ios_project_path.to_s.eql? ".") ? "Pods" : File.join(ios_project_path, 'Pods')
|
|
38
38
|
|
|
39
39
|
Dir.chdir(repo_root) {
|
|
40
|
-
check_cmd = "git apply --check #{patch_file} --directory
|
|
40
|
+
check_cmd = "git apply --check '#{patch_file}' --directory='#{directory_arg}' -p2 2> /dev/null"
|
|
41
41
|
|
|
42
42
|
can_apply = system(check_cmd)
|
|
43
43
|
if can_apply
|
|
@@ -58,7 +58,7 @@ module Pod
|
|
|
58
58
|
UI.puts "Creating patch"
|
|
59
59
|
theirs = Pathname.new(work_dir).join(@name).relative_path_from(config.project_root)
|
|
60
60
|
ours = config.project_pods_root.join(@name).relative_path_from(config.project_root)
|
|
61
|
-
gen_diff_cmd = "git diff --no-index #{theirs} #{ours} > #{patch_file}"
|
|
61
|
+
gen_diff_cmd = "git diff --no-index '#{theirs}' '#{ours}' > '#{patch_file}'"
|
|
62
62
|
|
|
63
63
|
did_succeed = system(gen_diff_cmd)
|
|
64
64
|
if not did_succeed.nil?
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cocoapods-patch
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Double Symmetry
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-
|
|
11
|
+
date: 2021-05-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|