podUpdater 0.1.13 → 0.2.0
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/podUpdater +2 -2
- data/lib/.DS_Store +0 -0
- data/lib/podUpdater/git_tag_flow.rb +3 -1
- data/lib/podUpdater/modify_podspec.rb +46 -0
- data/lib/podUpdater/pod_push.rb +9 -0
- data/lib/podUpdater/version.rb +1 -1
- data/lib/podUpdater.rb +14 -10
- metadata +1 -4
- data/podUpdater-0.1.0.gem +0 -0
- data/podUpdater-0.1.1.gem +0 -0
- data/podUpdater-0.1.2.gem +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e4a0000703d652a6d7a274e3f97b59a0fa9b51e3
|
4
|
+
data.tar.gz: ab6b5e72320375b0ba1837fa71bab94405d4bf16
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6925f5f162e4fab77b8ceec58fa719bc653b119ab9b275ecfbe965ea1b7d28c7675eda6be5e8f1626a23ead840a0a9645d2077b6cb7133258682eab3513de8a5
|
7
|
+
data.tar.gz: a6ce931310186557242e0488e916e229fa3ff1c3746443e5927bdecf73aa2a752bb2cb99686e43d9999336113126d175c1742fd5246cd47c6bf23d58500398b2
|
data/bin/podUpdater
CHANGED
data/lib/.DS_Store
CHANGED
Binary file
|
@@ -41,4 +41,50 @@ module PodUpdater
|
|
41
41
|
end
|
42
42
|
|
43
43
|
end
|
44
|
+
|
45
|
+
# 找到指定路径下的podspec文件名
|
46
|
+
def pathWithPodspecSuffix(path)
|
47
|
+
|
48
|
+
# path = "/Users/qwkj/Desktop/IOS_Pod_Spec_Repo/千网PodRepo/QWCrashReporter/1.0.8/"
|
49
|
+
path = File.expand_path(path)
|
50
|
+
return nil unless File.exist?(path)
|
51
|
+
|
52
|
+
unless path =~ /.podspec$/
|
53
|
+
|
54
|
+
if File.directory?(path)
|
55
|
+
podfiles = Dir.glob("#{path}/*.podspec")
|
56
|
+
puts "#{podfiles}"
|
57
|
+
if podfiles.length == 0
|
58
|
+
puts %('#{path}'下无法找到'.podspec'文件)
|
59
|
+
return nil
|
60
|
+
elsif podfiles.length == 1
|
61
|
+
path = podfiles.first
|
62
|
+
else
|
63
|
+
puts "目录下找到多个podspec文件!"
|
64
|
+
podfiles.each_with_index do |elem, index|
|
65
|
+
basename = File.basename(elem)
|
66
|
+
puts %(#{index}.#{basename} )
|
67
|
+
end
|
68
|
+
puts "请指定您当前需要的操作的文件,输入它的序号:"
|
69
|
+
i = gets.to_i
|
70
|
+
|
71
|
+
case i
|
72
|
+
when 0 .. (podfiles.length-1)
|
73
|
+
path = podfiles[i.to_i]
|
74
|
+
else
|
75
|
+
puts "输入错误❌"
|
76
|
+
path = nil
|
77
|
+
end
|
78
|
+
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
path
|
84
|
+
|
85
|
+
end
|
86
|
+
|
87
|
+
module_function :pathWithPodspecSuffix
|
88
|
+
module_function :modifyPodspec
|
89
|
+
|
44
90
|
end
|
data/lib/podUpdater/pod_push.rb
CHANGED
@@ -1,9 +1,15 @@
|
|
1
1
|
|
2
|
+
# require "/Users/qwkj/Documents/WZ_GitHub/podUpdater/podUpdater/lib/podUpdater/git_tag_flow.rb"
|
3
|
+
# require "/Users/qwkj/Documents/WZ_GitHub/podUpdater/podUpdater/lib/podUpdater/modify_podspec.rb"
|
2
4
|
require "podUpdater/git_tag_flow"
|
3
5
|
require "podUpdater/modify_podspec"
|
4
6
|
|
5
7
|
module PodUpdater
|
6
8
|
|
9
|
+
def sayHi
|
10
|
+
puts "heiehieheihehie"
|
11
|
+
aPath = File.expand_path('./');puts "哈哈哈#{aPath}"
|
12
|
+
end
|
7
13
|
# 给定pod库项目的路径,以及新版pod库的版本,将自己的pod提交到git,然后打上tag,再push trunk到pod服务器去
|
8
14
|
def pushPodToSevice(path,version)
|
9
15
|
# FOR_DEBUG:
|
@@ -33,4 +39,7 @@ module PodUpdater
|
|
33
39
|
end
|
34
40
|
|
35
41
|
end
|
42
|
+
|
43
|
+
module_function :pushPodToSevice
|
44
|
+
module_function :sayHi
|
36
45
|
end
|
data/lib/podUpdater/version.rb
CHANGED
data/lib/podUpdater.rb
CHANGED
@@ -1,18 +1,22 @@
|
|
1
|
+
|
2
|
+
# puts "打印_FILE_#{__FILE__}"
|
3
|
+
lib = File.expand_path('../', __FILE__)
|
4
|
+
# puts "打印lib:"
|
5
|
+
# puts lib
|
6
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
7
|
+
|
1
8
|
require "podUpdater/version"
|
2
|
-
require "podUpdater/
|
9
|
+
require "podUpdater/git_tag_flow"
|
10
|
+
|
3
11
|
|
4
12
|
module PodUpdater
|
5
13
|
|
14
|
+
def self.run(version)
|
15
|
+
path = File.expand_path(Dir.pwd)
|
16
|
+
pushPodToSevice(path,version)
|
17
|
+
end
|
6
18
|
|
7
19
|
end
|
8
20
|
|
9
21
|
|
10
|
-
|
11
|
-
|
12
|
-
include PodUpdater
|
13
|
-
end
|
14
|
-
|
15
|
-
runner = Run.new()
|
16
|
-
path = Dir.pwd;
|
17
|
-
runner.pushPodToSevice(path,'1.0.3')
|
18
|
-
# PodUpdater.run
|
22
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: podUpdater
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- hwzss
|
@@ -64,9 +64,6 @@ files:
|
|
64
64
|
- lib/podUpdater/modify_podspec.rb
|
65
65
|
- lib/podUpdater/pod_push.rb
|
66
66
|
- lib/podUpdater/version.rb
|
67
|
-
- podUpdater-0.1.0.gem
|
68
|
-
- podUpdater-0.1.1.gem
|
69
|
-
- podUpdater-0.1.2.gem
|
70
67
|
- podUpdater.gemspec
|
71
68
|
homepage: https://github.com/hwzss/podUpdater
|
72
69
|
licenses:
|
data/podUpdater-0.1.0.gem
DELETED
Binary file
|
data/podUpdater-0.1.1.gem
DELETED
Binary file
|
data/podUpdater-0.1.2.gem
DELETED
Binary file
|