cocoapods-modularization 0.2.9 → 0.3.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: 7ce2a7c7df77a07a8425e0a83ea6000715fae66d1d9b299b763da0d92eda63bd
|
4
|
+
data.tar.gz: 93502239994e546320afdabdfb44abbd68e6fe4a91a6476f5bcafd66ba0d5058
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '08ebed102dd8fa4df5fb3818aac2a0cfbe0928c3e5ea2c7f093caf13976faae26de124a3562d019f63e9d2d98992525bd77e545fe8827fae14d488293f3b59f2'
|
7
|
+
data.tar.gz: 5c7d1ada31906d351b2e40f2ecc7ebb1c461d7c79bdda254f8415edef3357af9c2c755c3764337fb5340b3c1aa82682d900ef3998e1391a092749ec5b3bae587
|
@@ -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.1
|
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-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|