cocoapods-tag 0.0.6 → 0.0.7
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 +4 -4
- data/lib/cocoapods-tag/gem_version.rb +1 -1
- data/lib/cocoapods-tag/tag.rb +5 -5
- 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: a72f4e68daa2d911dd619108de273824072102bcf41474da0744952efb9f481f
|
|
4
|
+
data.tar.gz: 5aaf617407f0136aca11b65d8e9aff5d59c3ee3775f63f7bebff40ebaadbc7ab
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 578caf1cdb4c0954091e2ae9ed3a1f0974bed2daca2860b2edac05f1c1d887573c7ee1344c9a918fc84b6f30e9527b57fd218c5b31cd1b12b63ea25a8f7fc521
|
|
7
|
+
data.tar.gz: e2229325f9eb5a15b0c6b7a18f838efe7ad9abd7a59451673d6281d0ba7a9f3e008dc191245d2ee3be37a07fdf9f657928a9aa8bd5a0e69e2b715db19c240664
|
data/lib/cocoapods-tag/tag.rb
CHANGED
|
@@ -29,7 +29,7 @@ module Pod
|
|
|
29
29
|
# 正则校验版本号
|
|
30
30
|
check_version
|
|
31
31
|
# 检查本地是否有 spec_repo
|
|
32
|
-
check_spec_repo if @spec_repo
|
|
32
|
+
# check_spec_repo if @spec_repo
|
|
33
33
|
# 检查 git repo
|
|
34
34
|
check_git_repo
|
|
35
35
|
# 加载 podspec
|
|
@@ -104,11 +104,11 @@ module Pod
|
|
|
104
104
|
# # 是否有未提交的改动
|
|
105
105
|
# raise Informative, "本地有未提交的改动,请先提交或暂存" unless `git status --porcelain`.split("\n").empty?
|
|
106
106
|
|
|
107
|
-
# 检查本地是否已经有该 tag
|
|
108
|
-
print "\n检查本地仓库是否有tag:`#{@tag}`\n".yellow
|
|
109
|
-
raise Informative, "本地仓库已经存在tag:#{@tag}" if `git tag`.split("\n").include?(@tag)
|
|
110
|
-
|
|
111
107
|
unless @quick
|
|
108
|
+
# 检查本地是否已经有该 tag
|
|
109
|
+
print "\n检查本地仓库是否有tag:`#{@tag}`\n".yellow
|
|
110
|
+
raise Informative, "本地仓库已经存在tag:#{@tag}" if `git tag`.split("\n").include?(@tag)
|
|
111
|
+
|
|
112
112
|
# 判断远端是否已经有该 tag
|
|
113
113
|
print "\n检查远端仓库是否有tag:`#{@tag}`\n".yellow
|
|
114
114
|
tags = `git ls-remote --tags #{remote}`.split("\n").select { |tag| tag.include?("refs/tags/#{@tag}") }
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cocoapods-tag
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jensen
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-06-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cocoapods
|