cocoapods-modularization 0.4.0 → 0.6.0
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c242b3d7dc59181da16ea13b04276f120b994885bc551a12e519a40bb1994058
|
4
|
+
data.tar.gz: aae782b40f172d876038f9bce9ff88df4d08ca2429ac1d2988ddfef5c17891e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b810af644f5ae19770738af31930bf901f8601a0e26dad3e5b4c4e95cc7a7987a051184cd87a7c53dbf5261430ab87396b555e40019c96d765323e6508256375
|
7
|
+
data.tar.gz: 6225197b3c5d916a3e253a43ee2a960c450004ab47f47dcc5742eee94b0d714c90c177a63fd1ce60566a6036c94e7ded43a5c4c5c341bac940d8965448f97476
|
@@ -5,22 +5,13 @@ module Pod
|
|
5
5
|
class Mod < Command
|
6
6
|
class Template < Mod
|
7
7
|
|
8
|
-
self.summary = 'Fetch build.
|
8
|
+
self.summary = 'Fetch build.sh from remote'
|
9
9
|
|
10
10
|
self.description = <<-DESC
|
11
|
-
Fetch build.
|
11
|
+
Fetch build.sh from remote
|
12
12
|
DESC
|
13
13
|
|
14
|
-
def self.options
|
15
|
-
[
|
16
|
-
['--binary-only', '把framework推送到source和binary,一般用于三方库本地化'],
|
17
|
-
['--framework-only', '把Binary/*framework推送到source和binary,一般用于私有库']
|
18
|
-
].concat(super)
|
19
|
-
end
|
20
|
-
|
21
14
|
def initialize(argv)
|
22
|
-
@binary = argv.flag?('binary-only')
|
23
|
-
@framework = argv.flag?('framework-only')
|
24
15
|
super
|
25
16
|
end
|
26
17
|
|
@@ -29,7 +20,7 @@ module Pod
|
|
29
20
|
end
|
30
21
|
|
31
22
|
def run
|
32
|
-
build_path = "#{Dir.pwd}/build.
|
23
|
+
build_path = "#{Dir.pwd}/build.sh"
|
33
24
|
if File.exist?(build_path)
|
34
25
|
FileUtils.rm_rf(build_path)
|
35
26
|
end
|
@@ -41,13 +32,7 @@ module Pod
|
|
41
32
|
return
|
42
33
|
end
|
43
34
|
|
44
|
-
|
45
|
-
FileUtils.mv("#{Dir.pwd}/.build/Binary/binary_only.rb", "#{Dir.pwd}/build.rb")
|
46
|
-
elsif @framework
|
47
|
-
FileUtils.mv("#{Dir.pwd}/.build/Binary/framework_only.rb", "#{Dir.pwd}/build.rb")
|
48
|
-
else
|
49
|
-
FileUtils.mv("#{Dir.pwd}/.build/build.rb", "#{Dir.pwd}/build.rb")
|
50
|
-
end
|
35
|
+
FileUtils.mv("#{Dir.pwd}/.build/build.sh", "#{Dir.pwd}/build.sh")
|
51
36
|
FileUtils.rm_rf("#{Dir.pwd}/.build")
|
52
37
|
end
|
53
38
|
end
|
@@ -1,3 +1,3 @@
|
|
1
1
|
module CocoapodsModularization
|
2
|
-
VERSION = "0.
|
3
|
-
end
|
2
|
+
VERSION = "0.6.0"
|
3
|
+
end
|
@@ -27,7 +27,7 @@ module Pod
|
|
27
27
|
podfile_local_hash = generate_yml_to_hash(podfile_local_path)
|
28
28
|
|
29
29
|
# cache branch if local_path is set
|
30
|
-
if !enable_branch
|
30
|
+
if !enable_branch && !podfile_local_hash.empty?
|
31
31
|
branch_caches = Array.new
|
32
32
|
podfile_local_hash.each do |key, value|
|
33
33
|
next unless value.kind_of?(Hash)
|
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.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- lazy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|