pod_updater 0.3.10 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/bin/pod_updater +8 -3
- data/lib/pod_updater.rb +5 -5
- data/lib/pod_updater/pod_push.rb +8 -5
- data/lib/pod_updater/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ef49d031eb12eff738dc2a1ddbc4999916bc9e8
|
4
|
+
data.tar.gz: 7c19eaece756c61e913cd768fa0e82419f3d50ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e05d4468afe3694dbe9fd1e48a6c5b76d256c74f59d773df82f4a4c88eb506c5171db24315d33e6394208c1971571c245e9254b3acba7907424d26f0c9c6ad75
|
7
|
+
data.tar.gz: 13aedff41f6809c93e3baf8c1ebeac4e18dc8058b8c1b9fb168a6fd2fa3c62b9767fbe07eada2c81b50ae518d893a7e35f34f0c2cf043a7eea8d6dfc6b957323
|
data/Gemfile.lock
CHANGED
data/bin/pod_updater
CHANGED
@@ -6,12 +6,17 @@ require 'optparse'
|
|
6
6
|
options = {}
|
7
7
|
option_parser = OptionParser.new do |opts|
|
8
8
|
|
9
|
-
opts.banner = 'here is help messages of the command line tool'
|
9
|
+
opts.banner = 'here is help messages of the command line tool for pod_updater'
|
10
10
|
options[:version] = nil
|
11
|
-
opts.on('-v', '--version [version]', String, 'the podspec\'s version') do |version|
|
11
|
+
opts.on('-v', '--version [version]', String, 'the podspec\'s new version') do |version|
|
12
12
|
options[:version] = version
|
13
13
|
end
|
14
14
|
|
15
|
+
options[:cp_path] = nil
|
16
|
+
opts.on('-cp', '--cp_path [version]', String, 'the path where the podspec file need to copy') do |cp_path|
|
17
|
+
options[:cp_path] = cp_path
|
18
|
+
end
|
19
|
+
|
15
20
|
end.parse!
|
16
21
|
|
17
22
|
unless options[:version]
|
@@ -20,4 +25,4 @@ unless options[:version]
|
|
20
25
|
exit
|
21
26
|
end
|
22
27
|
|
23
|
-
PodUpdater.run(options[:version])
|
28
|
+
PodUpdater.run(options[:version], options[:cp_path])
|
data/lib/pod_updater.rb
CHANGED
@@ -1,18 +1,18 @@
|
|
1
1
|
|
2
|
-
lib = File.expand_path("../lib", __FILE__)
|
3
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
2
|
+
# lib = File.expand_path("../lib", __FILE__)
|
3
|
+
# $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
4
|
|
5
5
|
require "pod_updater/version"
|
6
6
|
require "pod_updater/pod_push"
|
7
7
|
|
8
8
|
module PodUpdater
|
9
9
|
|
10
|
-
def self.run(version)
|
10
|
+
def self.run(version, cp_path)
|
11
11
|
path = File.expand_path(Dir.pwd)
|
12
|
-
pushPodToSevice(path,version)
|
12
|
+
pushPodToSevice(path, version, cp_path)
|
13
13
|
end
|
14
14
|
|
15
|
-
|
16
15
|
end
|
17
16
|
|
17
|
+
# PodUpdater.run('3.0.2', 'Users/qwkj/Desktop/IOS_Pod_Spec_Repo/千网PodRepo/')
|
18
18
|
|
data/lib/pod_updater/pod_push.rb
CHANGED
@@ -1,11 +1,12 @@
|
|
1
|
-
require
|
2
|
-
require
|
1
|
+
require 'pod_updater/git_tag_flow'
|
2
|
+
require 'pod_updater/modify_podspec'
|
3
3
|
require 'pod_updater/ui'
|
4
|
+
require 'pod_updater/cp_podspec'
|
4
5
|
|
5
6
|
module PodUpdater
|
6
7
|
|
7
|
-
# 给定pod库项目的路径,以及新版pod库的版本,将自己的pod提交到git,然后打上tag,再push trunk到pod
|
8
|
-
def pushPodToSevice(path,version)
|
8
|
+
# 给定pod库项目的路径,以及新版pod库的版本,将自己的pod提交到git,然后打上tag,再push trunk到pod服务器去,如果cp_path存在则将最后的podspec文件拷贝到cp_path下
|
9
|
+
def pushPodToSevice(path,version,cp_path)
|
9
10
|
|
10
11
|
podFilePath = pathWithPodspecSuffix(path)
|
11
12
|
|
@@ -16,7 +17,9 @@ module PodUpdater
|
|
16
17
|
|
17
18
|
msg = "for pod version:#{version}"
|
18
19
|
|
19
|
-
modifyPodspec(path:podFilePath,version:version)
|
20
|
+
modifyPodspec(path:podFilePath,version:version) #将podspec文件的版本号进行修改
|
21
|
+
|
22
|
+
copy_podspec(podFilePath,cp_path,version)
|
20
23
|
|
21
24
|
git_tag_flow(path,msg,version)
|
22
25
|
|
data/lib/pod_updater/version.rb
CHANGED
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.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- hwzss
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-12-
|
11
|
+
date: 2017-12-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|