pod_updater 0.6.2 → 0.6.3
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/bin/pod_updater +7 -1
- data/lib/pod_updater/pod_push.rb +3 -3
- data/lib/pod_updater/version.rb +1 -1
- data/lib/pod_updater.rb +2 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2dcb65d881af17d076b8a9e3168256c18b811337547c8910aca35f7ac2520f6b
|
4
|
+
data.tar.gz: c362c73ac8c9e877b53db442e0df42077fc88b5893a6535b108bc5b3a0d06f18
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7080486ec4ea7cbd30b7c2dfe2ff83dea1dc27f3b5286dd771c28b4098a378ef915edb6fde8d61eee31a120edb975bbe410adc26a09eac9cde85634655364006
|
7
|
+
data.tar.gz: ed68e566a05d39c6d0397e08a814dc9ba2587bf7798a331faa166c89eb349b818553723f56b5109a2a7cc2d59cc2fd6c7bd7673416e6a9becd46bb739022b2a9
|
data/bin/pod_updater
CHANGED
@@ -21,6 +21,12 @@ option_parser = OptionParser.new do |opts|
|
|
21
21
|
options[:cp_path] = cp_path
|
22
22
|
end
|
23
23
|
|
24
|
+
options[:message] = nil
|
25
|
+
opts.on('-m', '--message [message]', String, 'the message to descrie your pod for this version') do |message|
|
26
|
+
options[:message] = message
|
27
|
+
end
|
28
|
+
|
29
|
+
|
24
30
|
end.parse!
|
25
31
|
|
26
32
|
unless options[:version]
|
@@ -29,4 +35,4 @@ unless options[:version]
|
|
29
35
|
exit
|
30
36
|
end
|
31
37
|
|
32
|
-
PodUpdater.run(options[:version], options[:cp_path])
|
38
|
+
PodUpdater.run(options[:version], options[:cp_path], options[:message])
|
data/lib/pod_updater/pod_push.rb
CHANGED
@@ -7,7 +7,7 @@ require 'pod_updater/pod_updater_file'
|
|
7
7
|
module PodUpdater
|
8
8
|
|
9
9
|
# 给定pod库项目的路径,以及新版pod库的版本,将自己的pod提交到git,然后打上tag,再push trunk到pod服务器去,如果cp_path存在则将最后的podspec文件拷贝到cp_path下
|
10
|
-
def pushPodToSevice(path,version,cp_path)
|
10
|
+
def pushPodToSevice(path, version, cp_path, message)
|
11
11
|
|
12
12
|
podFilePath = pathWithPodspecSuffix(path)
|
13
13
|
|
@@ -31,7 +31,7 @@ module PodUpdater
|
|
31
31
|
return
|
32
32
|
end
|
33
33
|
|
34
|
-
msg = "for pod version:#{version}"
|
34
|
+
msg = "for pod version:#{version} #{message}"
|
35
35
|
|
36
36
|
modifyPodspec(path:podFilePath,version:version) #将podspec文件的版本号进行修改
|
37
37
|
|
@@ -59,7 +59,7 @@ module PodUpdater
|
|
59
59
|
end
|
60
60
|
end
|
61
61
|
|
62
|
-
if
|
62
|
+
if push_cmd_output =~ %r(ERROR|error)
|
63
63
|
UI.err("pod lib lint 发生错误")
|
64
64
|
else
|
65
65
|
UI.notification(title: "上传完成✅")
|
data/lib/pod_updater/version.rb
CHANGED
data/lib/pod_updater.rb
CHANGED
@@ -6,10 +6,9 @@ require "pod_updater/pod_push"
|
|
6
6
|
|
7
7
|
module PodUpdater
|
8
8
|
|
9
|
-
def self.run(version, cp_path)
|
9
|
+
def self.run(version, cp_path, message)
|
10
10
|
path = File.expand_path(Dir.pwd)
|
11
|
-
pushPodToSevice(path, version, cp_path)
|
11
|
+
pushPodToSevice(path, version, cp_path, message)
|
12
12
|
end
|
13
13
|
|
14
|
-
UI.notification_openurl(title: "GG", url: "https://cocoapods.org/pods/MCQRScan")
|
15
14
|
end
|