cocoapods-modularization 0.2.9 → 0.3.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: d6dae46a5cc174c62cd41d9da33c9347e00de0ee7bb35a3f4aec4ac3788519bf
|
4
|
+
data.tar.gz: d0aa28534dda70eae9d1429178fbb765c347be715ef98a6eb3ec4e342bd1a991
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce29a7832c2d148a2be23eca915d5380b63494c00877715e8bc45129822f8c2abbad5886edb7cf045e14a4cbb8a39f53260c3185c0c56b09f9534e91453db1fb
|
7
|
+
data.tar.gz: 8b0f7ce3c57861a3eb2b143d8b1bf71092c12efccc482315009359072b4311e2b7a4a254c8ee82238b67f9796b26fac2de1a04b7d14f89bb977d9ee6dfa413dc
|
@@ -33,6 +33,7 @@ module Pod
|
|
33
33
|
help! 'The Pod name cannot contain spaces.' if @name =~ /\s/
|
34
34
|
help! 'The Pod name cannot contain plusses.' if @name =~ /\+/
|
35
35
|
help! "The Pod name cannot begin with a '.'" if @name[0, 1] == '.'
|
36
|
+
help! "Path is needed" unless @path
|
36
37
|
end
|
37
38
|
|
38
39
|
def run
|
@@ -46,9 +47,7 @@ module Pod
|
|
46
47
|
extend Executable
|
47
48
|
executable :git
|
48
49
|
|
49
|
-
TEMPLATE_REPO = '
|
50
|
-
TEMPLATE_INFO_URL = 'https://github.com/CocoaPods/pod-template'.freeze
|
51
|
-
CREATE_NEW_POD_INFO_URL = 'https://guides.cocoapods.org/making/making-a-cocoapod'.freeze
|
50
|
+
TEMPLATE_REPO = 'git@gitlab.appshahe.com:shared-specs/template.git'.freeze
|
52
51
|
|
53
52
|
def clone_template
|
54
53
|
puts "Cloning `#{template_repo_url}` into `#{@name}`."
|
@@ -67,7 +66,6 @@ module Pod
|
|
67
66
|
|
68
67
|
def print_info
|
69
68
|
puts "\nTo learn more about the template see `#{template_repo_url}`."
|
70
|
-
puts "To learn more about creating a new pod, see `#{CREATE_NEW_POD_INFO_URL}`."
|
71
69
|
end
|
72
70
|
|
73
71
|
def template_repo_url
|
@@ -47,7 +47,7 @@ module Pod
|
|
47
47
|
FileUtils.rm_rf("#{Private::PrivateCache.root_path}/Repo")
|
48
48
|
end
|
49
49
|
|
50
|
-
system_build("/usr/bin/git clone #{repo_url} #{Private::PrivateCache.root_path}/Repo
|
50
|
+
system_build("/usr/bin/git clone #{repo_url} #{Private::PrivateCache.root_path}/Repo--single-branch --depth 1")
|
51
51
|
|
52
52
|
# 遍历文件夹
|
53
53
|
max_version = Dir.glob("#{Private::PrivateCache.root_path}/Repo/#{@name}/*").map { |e| Gem::Version.new(e.match(/\d{1,2}\.\d{1,2}\.\d{1,2}/).to_s) }.max.to_s
|
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.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- lazy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-06-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|