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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ea3a8b129e6cc7fed4a18a2fdf16457e4ea07cf9
4
- data.tar.gz: 53e6acf991569b2b6b2702377d8f7c9add776d8a
3
+ metadata.gz: 2ef49d031eb12eff738dc2a1ddbc4999916bc9e8
4
+ data.tar.gz: 7c19eaece756c61e913cd768fa0e82419f3d50ae
5
5
  SHA512:
6
- metadata.gz: ca6e68884648139499fb5142e63bbfe3375ee36f639712fa59f0361551ea68a79c7bcefd98576c0f2b4a7321d90a4b280a0fdac0efa8f7ebcb9b21b484bdafcf
7
- data.tar.gz: 9a243ea79832a4d3c6ff027e7fb373e191aa970ceb5256b626b287737df53222f7f8a8f4a7ac80f21978b79cce508acd54fbd6df45e40a45d887c2b85d9a2ef0
6
+ metadata.gz: e05d4468afe3694dbe9fd1e48a6c5b76d256c74f59d773df82f4a4c88eb506c5171db24315d33e6394208c1971571c245e9254b3acba7907424d26f0c9c6ad75
7
+ data.tar.gz: 13aedff41f6809c93e3baf8c1ebeac4e18dc8058b8c1b9fb168a6fd2fa3c62b9767fbe07eada2c81b50ae518d893a7e35f34f0c2cf043a7eea8d6dfc6b957323
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pod_updater (0.3.9)
4
+ pod_updater (0.3.10)
5
5
  colorize
6
6
 
7
7
  GEM
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
 
@@ -1,11 +1,12 @@
1
- require "pod_updater/git_tag_flow"
2
- require "pod_updater/modify_podspec"
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
 
@@ -1,3 +1,3 @@
1
1
  module PodUpdater
2
- VERSION = "0.3.10"
2
+ VERSION = "0.4.0"
3
3
  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.3.10
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-24 00:00:00.000000000 Z
11
+ date: 2017-12-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize