cocoapods-modularization 0.0.8 → 0.1.1
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
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 344109e8e13c8d2f6962ca478203b18023bb5503cdda97b025f320c209049a5f
|
4
|
+
data.tar.gz: 8561cdbbca621a95390d69123220096f789dd7a009d454e9a4fbfad349bcbd2f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ef2cdfe0d0671c16c36fc10fb673a548bdc1153f23097d46d5141eee27220915faddffcc6589d8fb37fb6aed8dfc07de3883d4be4b827604cb1ebe7620237b8
|
7
|
+
data.tar.gz: ef0d82c226a4c4ca030f9feb0fc131e7e0928c587f5a88aead27e7b2491fe8f31c067487c5d1b993d3d01a236ea595f6bf606f28d24f43c626acd2e62fea6a91
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'cocoapods-modularization/meta'
|
2
|
+
require 'fileutils'
|
2
3
|
|
3
4
|
module Pod
|
4
5
|
class Command
|
@@ -51,6 +52,10 @@ module Pod
|
|
51
52
|
|
52
53
|
def run
|
53
54
|
# encode podfile
|
55
|
+
if @enable_branch
|
56
|
+
FileUtils.rm_rf('Podfile.lock')
|
57
|
+
end
|
58
|
+
|
54
59
|
unless @original
|
55
60
|
begin
|
56
61
|
Meta::MetaReference.encode_podfile(@enable_branch)
|
@@ -91,6 +91,7 @@ module Pod
|
|
91
91
|
|
92
92
|
def hash_from(e, data, enable_branch)
|
93
93
|
dependency_data = data[e]
|
94
|
+
raise "dependency_data is empty for element: #{e}" unless dependency_data.kind_of?(Hash)
|
94
95
|
|
95
96
|
git_branch_hash = try_git_branch(e, dependency_data) if enable_branch
|
96
97
|
return git_branch_hash if git_branch_hash.kind_of?(Hash)
|
@@ -121,7 +122,7 @@ module Pod
|
|
121
122
|
binary = dependency_data[MetaConstants.binary_key]
|
122
123
|
source_url = dependency_data[MetaConstants.source_key]
|
123
124
|
|
124
|
-
if binary && source_url == Private::PrivateCache.source_repo_url
|
125
|
+
if binary && (source_url == Private::PrivateCache.source_repo_url || source_url == nil)
|
125
126
|
source_url = Private::PrivateCache.binary_repo_url
|
126
127
|
else
|
127
128
|
source_url ||= Private::PrivateCache.source_repo_url
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-modularization
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- lazy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-07-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|