pod_updater 0.5.2 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.DS_Store +0 -0
- data/Gemfile.lock +1 -1
- data/lib/.DS_Store +0 -0
- data/lib/.vscode/launch.json +14 -0
- data/lib/pod_updater/git_tag_flow.rb +12 -2
- data/lib/pod_updater/pod_push.rb +17 -0
- data/lib/pod_updater/version.rb +1 -1
- data/lib/pod_updater.rb +7 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: f30167a6729cf62f05f58be9f4471c0b911d3d83a7d3ee503ebefe2b7caba4f6
|
4
|
+
data.tar.gz: 075d2df1d42b6ac73ccb698152a80d11bfa88c19261837f2e6f2e95fd6afc875
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7dfa332266cbd8bbae63157d97ff7a9e70e7ee17ecddf29516796af9cc3641d2e4b2619837d00ca15fddab8afdf61ddbd7f9ef7a3f03337c6a7b3e264c0a484
|
7
|
+
data.tar.gz: beeced709a4a395349b6555ba5bf1e581fd20e8cefb8490813a7f03a89262226487cd7265350851a9b9f620910a0e56746ced4d970a1ac26b64d00154dd2fb40
|
data/.DS_Store
CHANGED
Binary file
|
data/Gemfile.lock
CHANGED
data/lib/.DS_Store
CHANGED
Binary file
|
@@ -0,0 +1,14 @@
|
|
1
|
+
{
|
2
|
+
// Use IntelliSense to learn about possible attributes.
|
3
|
+
// Hover to view descriptions of existing attributes.
|
4
|
+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
5
|
+
"version": "0.2.0",
|
6
|
+
"configurations": [
|
7
|
+
{
|
8
|
+
"name": "Debug Local File",
|
9
|
+
"type": "Ruby",
|
10
|
+
"request": "launch",
|
11
|
+
"program": "${workspaceRoot}/pod_updater.rb",
|
12
|
+
}
|
13
|
+
]
|
14
|
+
}
|
@@ -11,8 +11,6 @@ module PodUpdater
|
|
11
11
|
cmd << 'git add .'
|
12
12
|
cmd << %(git commit -m "#{msg}")
|
13
13
|
cmd << 'git push'
|
14
|
-
cmd << %(git tag -a #{tag_version} -m "#{msg}")
|
15
|
-
cmd << 'git push --tags'
|
16
14
|
|
17
15
|
UI.log_cmd(cmd)
|
18
16
|
IO.popen(cmd.join(" && ")) do |io|
|
@@ -22,6 +20,18 @@ module PodUpdater
|
|
22
20
|
io.close
|
23
21
|
end
|
24
22
|
|
23
|
+
tag_cmd = []
|
24
|
+
tag_cmd << %(git tag -a #{tag_version} -m "#{msg}")
|
25
|
+
tag_cmd << 'git push --tags'
|
26
|
+
|
27
|
+
UI.log_cmd(tag_cmd)
|
28
|
+
IO.popen(tag_cmd.join(" && ")) do |io|
|
29
|
+
io.each do |line|
|
30
|
+
UI.msg line
|
31
|
+
end
|
32
|
+
io.close
|
33
|
+
end
|
34
|
+
|
25
35
|
end
|
26
36
|
|
27
37
|
module_function :git_tag_flow
|
data/lib/pod_updater/pod_push.rb
CHANGED
@@ -3,6 +3,7 @@ require 'pod_updater/modify_podspec'
|
|
3
3
|
require 'pod_updater/ui'
|
4
4
|
require 'pod_updater/cp_podspec'
|
5
5
|
require 'pod_updater/pod_updater_file'
|
6
|
+
require 'Cocoapods'
|
6
7
|
|
7
8
|
module PodUpdater
|
8
9
|
|
@@ -15,6 +16,22 @@ module PodUpdater
|
|
15
16
|
return # 未找到相应的podspec文件
|
16
17
|
end
|
17
18
|
|
19
|
+
# pod lib lint 检查
|
20
|
+
lib_cmd = %(pod lib lint #{podFilePath} --allow-warnings)
|
21
|
+
output = ""
|
22
|
+
UI.log_cmd(lib_cmd)
|
23
|
+
IO.popen(lib_cmd) do |io|
|
24
|
+
io.each do |line|
|
25
|
+
UI.msg(line)
|
26
|
+
output += line.to_s
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
if output =~ %r(ERROR|error)
|
31
|
+
UI.err("pod lib lint 发生错误")
|
32
|
+
return
|
33
|
+
end
|
34
|
+
|
18
35
|
msg = "for pod version:#{version}"
|
19
36
|
|
20
37
|
modifyPodspec(path:podFilePath,version:version) #将podspec文件的版本号进行修改
|
data/lib/pod_updater/version.rb
CHANGED
data/lib/pod_updater.rb
CHANGED
@@ -2,13 +2,19 @@
|
|
2
2
|
# $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
3
|
|
4
4
|
require "pod_updater/version"
|
5
|
-
require "pod_updater/pod_push"
|
5
|
+
# require "pod_updater/pod_push"
|
6
|
+
load "/Users/kaifa/Desktop/Working/GitLab/pod_updater/lib/pod_updater/pod_push.rb"
|
6
7
|
|
7
8
|
module PodUpdater
|
8
9
|
|
9
10
|
def self.run(version, cp_path)
|
10
11
|
path = File.expand_path(Dir.pwd)
|
12
|
+
path = "/Users/kaifa/Desktop/Working/GitLab/WZ_HelloKit/"
|
11
13
|
pushPodToSevice(path, version, cp_path)
|
12
14
|
end
|
13
15
|
|
16
|
+
puts "开始"
|
17
|
+
PodUpdater.run('5.5.5', nil)
|
18
|
+
puts "结束"
|
19
|
+
|
14
20
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pod_updater
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- hwzss
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-01-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|
@@ -81,6 +81,7 @@ files:
|
|
81
81
|
- bin/pod_updater
|
82
82
|
- bin/setup
|
83
83
|
- lib/.DS_Store
|
84
|
+
- lib/.vscode/launch.json
|
84
85
|
- lib/pod_updater.rb
|
85
86
|
- lib/pod_updater/.DS_Store
|
86
87
|
- lib/pod_updater/cp_podspec.rb
|
@@ -111,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
111
112
|
version: '0'
|
112
113
|
requirements: []
|
113
114
|
rubyforge_project:
|
114
|
-
rubygems_version: 2.
|
115
|
+
rubygems_version: 2.7.8
|
115
116
|
signing_key:
|
116
117
|
specification_version: 4
|
117
118
|
summary: iOS开发中帮助您快速的将自己的开发的pod库代码上传到git,并帮你push到podspec repo库去
|