cocoapods-modularization 0.2.7 → 0.2.9

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: 04016eb2b87c8f37843143c23e6aae3804b6edd0af79c03f84e5a55f0e590c11
4
- data.tar.gz: c3f2c5c49472489c333335fa3f9872391f03502021bc5e2adecdebf514af9f7b
3
+ metadata.gz: 7781c87f2193a18b97a4f4e4d4f713a0707d840c1ab8b251dffc07d5dae2d808
4
+ data.tar.gz: c79f3d6829faad6ab0833beba259a7ade21ed1baa1c7443e04c82e4bb5018bd2
5
5
  SHA512:
6
- metadata.gz: a9c988d7504cf0777cd1f442960648bee12e0071e252e9213926aafcfbb73a6641728651f9a3855194a7778b09bc2d4045a1027421f4006ca6ae3bf0cefd7756
7
- data.tar.gz: 4071d5174842ade39a5005e0a8562f9883e37bb280b00882474e689f8aa594a615a1b452242d8a67d9284bd42c3fd73c20f29d3c5bf206e8f77fb272f0663d6d
6
+ metadata.gz: 162224c61d7cbc984e301c25e7b3da2dd09a776395a9fbcd70dc2e8d1a89fb514bd2687e6830fc2dada885bfe9d63cdc8fb49edbef9903b27d2afa601d30ef60
7
+ data.tar.gz: 5a65b5a9b9c9090bdb5be562e90b406e3a914cbc303432938fa29554a17f6a52dddd1222959e2b03d99c35890e241e31ed68e993c48f39e299761d6c1a5f87da
@@ -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 master --single-branch --depth 1")
50
+ system_build("/usr/bin/git clone #{repo_url} #{Private::PrivateCache.root_path}/Repo -b main --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
@@ -60,8 +60,7 @@ module Pod
60
60
  output = `#{command}`.lines.to_a
61
61
 
62
62
  if $?.exitstatus != 0
63
- UI::BuildFailedReport.report(command, output)
64
- Process.exit
63
+ puts "command: #{command}, output: #{output}"
65
64
  end
66
65
  end
67
66
  end
@@ -22,8 +22,16 @@ module Pod
22
22
  def initialize(argv)
23
23
  @name = argv.shift_argument
24
24
 
25
- version = Meta::MetaAccessor.version(@name)
26
- @version = argv.option('version', version_auto_increase(version))
25
+ version = argv.option('version', '')
26
+ if version.length == 0
27
+ current_version = Meta::MetaAccessor.version(@name)
28
+ @auto_increase = true
29
+ @version = version_auto_increase(current_version)
30
+ else
31
+ @auto_increase = false
32
+ @version = version
33
+ end
34
+
27
35
  super
28
36
  end
29
37
 
@@ -43,7 +51,9 @@ module Pod
43
51
  Meta::MetaAccessor.update_dep(@name, @version)
44
52
  UI.puts("#{@name} has been updated to #{@version}")
45
53
 
46
- Meta::MetaReference.encode_podfile
54
+ if @auto_increase
55
+ Meta::MetaReference.encode_podfile(@enable_branch)
56
+ end
47
57
  UI.puts("Podfile encoded")
48
58
  end
49
59
 
@@ -1,3 +1,3 @@
1
1
  module CocoapodsModularization
2
- VERSION = "0.2.7"
2
+ VERSION = "0.2.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-modularization
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - lazy