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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 91d5f40eacd16a1c47eaec64d06f5dee2b3bf080
4
- data.tar.gz: 6e94eabd002c5f09e4fd1563c2b1765e7fcb6504
3
+ metadata.gz: e4a0000703d652a6d7a274e3f97b59a0fa9b51e3
4
+ data.tar.gz: ab6b5e72320375b0ba1837fa71bab94405d4bf16
5
5
  SHA512:
6
- metadata.gz: a7eae2231ab892a1f0738287ba814973b847e1a4df4f8acd712254ad35188020e5da0bc46b00ef4f9466b1bc4bddc3f69b0c4afa627060b76ae931b9e99c894e
7
- data.tar.gz: cd5cb74322a1cd8eb54391f58198e28afd18ab86a2ba98d47e5fbfa5a1ea60a41a3fca5f2b9e2b812ac8b59f2ef36e92635ac6ae4c52a10f229d938d391a5df1
6
+ metadata.gz: 6925f5f162e4fab77b8ceec58fa719bc653b119ab9b275ecfbe965ea1b7d28c7675eda6be5e8f1626a23ead840a0a9645d2077b6cb7133258682eab3513de8a5
7
+ data.tar.gz: a6ce931310186557242e0488e916e229fa3ff1c3746443e5927bdecf73aa2a752bb2cb99686e43d9999336113126d175c1742fd5246cd47c6bf23d58500398b2
data/bin/podUpdater CHANGED
@@ -2,6 +2,6 @@
2
2
 
3
3
  require "podUpdater.rb"
4
4
 
5
- include PodUpdater
6
5
 
7
- puts "哈哈"
6
+ PodUpdater.run(ARGV[0])
7
+
data/lib/.DS_Store CHANGED
Binary file
@@ -1,6 +1,6 @@
1
1
 
2
2
  module PodUpdater
3
-
3
+
4
4
  # 提供路径,然后将项目打包上git,标记tag
5
5
  def git_tag_flow(path,msg,tag_version)
6
6
 
@@ -22,4 +22,6 @@ module PodUpdater
22
22
  end
23
23
 
24
24
  end
25
+
26
+
25
27
  end
@@ -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
@@ -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
@@ -1,3 +1,3 @@
1
1
  module PodUpdater
2
- VERSION = "0.1.13"
2
+ VERSION = "0.2.0"
3
3
  end
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/pod_push"
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
- class Run
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.1.13
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