cocoapods-hd 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cocoapods-hd/command/tag.rb +19 -12
- data/lib/cocoapods-hd/gem_version.rb +1 -1
- data/lib/cocoapods-hd/tag_util.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 782c27df3a60bf93e3286f6ec858ac3d66664b50cc453d0206cad2f1426c5358
|
4
|
+
data.tar.gz: 03e1e01bd70cb5a7b3fb9f00fe61fa55ca06c46d3fa3d003e7f9ae5c9292e7a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7bbbc414bb7cd0c85baff1278dab7fc9874f3d4075fee27a5686aeb5eb447912f8b422012b91b6351ce908a11aec93097c0bbad8851c7a11f8428bf0062226f
|
7
|
+
data.tar.gz: 13c646c4978fd95c4440520a1b7ac76a4ec1000ce66a45aa3bd3bcedf1306b3118bf2031eda9cfa70d5c2a7314b3b6385111a19562efd584fed6b96c1ff98c50
|
@@ -28,18 +28,7 @@ module Pod
|
|
28
28
|
super
|
29
29
|
end
|
30
30
|
|
31
|
-
|
32
|
-
def create_tag
|
33
|
-
|
34
|
-
unless TagUtil.exist_branch
|
35
|
-
UI.warn("当前分支名格式不正确,请修改为 release_x.x.x 格式")
|
36
|
-
return
|
37
|
-
end
|
38
|
-
unless TagUtil.check_branch_include_tag(@tag_version)
|
39
|
-
UI.warn("分支后缀版本号,必须跟tag保持一致")
|
40
|
-
return
|
41
|
-
end
|
42
|
-
|
31
|
+
def build_tag
|
43
32
|
UI.puts "🍉 开始创建tag: #{get_tag}"
|
44
33
|
|
45
34
|
if TagUtil.exist_tag(get_tag)
|
@@ -106,6 +95,24 @@ module Pod
|
|
106
95
|
end
|
107
96
|
end
|
108
97
|
|
98
|
+
# 创建tag
|
99
|
+
def create_tag
|
100
|
+
|
101
|
+
unless TagUtil.check_release_branch
|
102
|
+
UI.warn("❌ 当前分支仅支持打 beta tag") unless @beta
|
103
|
+
build_tag if @beta
|
104
|
+
return
|
105
|
+
end
|
106
|
+
|
107
|
+
unless TagUtil.check_branch_include_tag(@tag_version)
|
108
|
+
UI.warn("❌ 分支后缀版本号,必须跟tag保持一致")
|
109
|
+
return
|
110
|
+
end
|
111
|
+
build_tag
|
112
|
+
|
113
|
+
|
114
|
+
end
|
115
|
+
|
109
116
|
# 获取 HDSourceSpecs 路径
|
110
117
|
def get_source_specs_dir
|
111
118
|
|
@@ -20,7 +20,7 @@ module Pod
|
|
20
20
|
end
|
21
21
|
|
22
22
|
# tag 是否存在符合格式的分支
|
23
|
-
def self.
|
23
|
+
def self.check_release_branch
|
24
24
|
branch_name = `git symbolic-ref --short -q HEAD`
|
25
25
|
UI.puts("current branch: #{branch_name}")
|
26
26
|
if branch_name =~ /release_[0-9].[0-9].[0-9]/ || branch_name.to_s.strip == "master"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-hd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- xingyong
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-04-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|