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: 7781c87f2193a18b97a4f4e4d4f713a0707d840c1ab8b251dffc07d5dae2d808
4
- data.tar.gz: c79f3d6829faad6ab0833beba259a7ade21ed1baa1c7443e04c82e4bb5018bd2
3
+ metadata.gz: 7ce2a7c7df77a07a8425e0a83ea6000715fae66d1d9b299b763da0d92eda63bd
4
+ data.tar.gz: 93502239994e546320afdabdfb44abbd68e6fe4a91a6476f5bcafd66ba0d5058
5
5
  SHA512:
6
- metadata.gz: 162224c61d7cbc984e301c25e7b3da2dd09a776395a9fbcd70dc2e8d1a89fb514bd2687e6830fc2dada885bfe9d63cdc8fb49edbef9903b27d2afa601d30ef60
7
- data.tar.gz: 5a65b5a9b9c9090bdb5be562e90b406e3a914cbc303432938fa29554a17f6a52dddd1222959e2b03d99c35890e241e31ed68e993c48f39e299761d6c1a5f87da
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 = 'https://github.com/CocoaPods/pod-template.git'.freeze
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 -b main --single-branch --depth 1")
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
@@ -1,3 +1,3 @@
1
1
  module CocoapodsModularization
2
- VERSION = "0.2.9"
2
+ VERSION = "0.3.1"
3
3
  end
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.2.9
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-04-21 00:00:00.000000000 Z
11
+ date: 2023-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler