pod_updater 0.4.2 → 0.4.3

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: 5fcec84f74a1419df18ec1f93c5420b3df4032b9
4
- data.tar.gz: 6d7b8f2b01774eaf47c19c2f4a3bf66080ac21f6
3
+ metadata.gz: 2f1a574a6ee2c5d8884ac7495621b53629763b9a
4
+ data.tar.gz: d514fa495bf3f36f6151f7d4ac705fa9bfadc0a7
5
5
  SHA512:
6
- metadata.gz: a56ab38eec565cd7dede52b3e389fb049707984fa457221b1efc402c676cb04c42446a63b47be088dcf5dbe350245895e92f0e21f4f9305dc4920d64d0e738d9
7
- data.tar.gz: 63d7595209260736809f1d6e48defc153215c1bdf06f4a87cbdc31cb8b390faef5de01254a2dc75d13c5139015c2206293e0f82ff5eb4f540c85cc1421b20c44
6
+ metadata.gz: 791e8ddfa11ff265fecbdfc3ea0228d312f141855ea078e749cfff9ff0ffbeb8ac22f96d5de5eeb85490b56c74c5c60a56d68fc581ef4c1205057129d0291136
7
+ data.tar.gz: 4ce49849b7c3d9d14d98d26c6451fbfca612df941ddfa6183d8a4fc9f33daeda339e8fcb9a3a8b6bda5ab94c2e2365aea05e9f6c8813d77a4b75d9ef1f84854d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pod_updater (0.4.1)
4
+ pod_updater (0.4.2)
5
5
  colorize
6
6
 
7
7
  GEM
@@ -14,6 +14,7 @@ module PodUpdater
14
14
  cmd << %(git tag -a #{tag_version} -m "#{msg}")
15
15
  cmd << 'git push --tags'
16
16
 
17
+ UI.log_cmd(cmd)
17
18
  # TODO: 尝试在每次即将执行该命令时,打印出这次的命令
18
19
  IO.popen(cmd.join(" && ")) do |io|
19
20
  io.each do |line|
@@ -24,17 +24,17 @@ module PodUpdater
24
24
  end
25
25
 
26
26
 
27
- # git_tag_flow(path,msg,version)
28
- #
29
- # cmd = []
30
- # cmd << %(pod trunk push #{podFilePath} --allow-warnings)
31
- #
32
- # IO.popen(cmd.join('')) do |io|
33
- # io.each do |line|
34
- # UI.msg(line)
35
- # end
36
- # end
37
-
27
+ git_tag_flow(path,msg,version)
28
+
29
+ cmd = []
30
+ cmd << %(pod trunk push #{podFilePath} --allow-warnings)
31
+ UI.log_cmd(cmd)
32
+ IO.popen(cmd.join('')) do |io|
33
+ io.each do |line|
34
+ UI.msg(line)
35
+ end
36
+ end
37
+
38
38
  end
39
39
 
40
40
  module_function :pushPodToSevice
@@ -18,7 +18,20 @@ module PodUpdater
18
18
  def self.warning(msg)
19
19
  puts msg.colorize(:yellow)
20
20
  end
21
+
22
+ def self.log_cmd(msg)
23
+ if msg.kind_of?(Array)
24
+ msg = msg.join(' && ')
25
+ end
26
+ puts msg.to_s.colorize(:blue)
27
+ end
21
28
  end
22
29
 
23
-
24
- end
30
+
31
+ end
32
+
33
+ include PodUpdater
34
+ cmd = []
35
+ cmd << %(pod trunk push --allow-warnings)
36
+ UI.log_cmd(cmd)
37
+ UI.err('哈哈')
@@ -1,3 +1,3 @@
1
1
  module PodUpdater
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pod_updater
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - hwzss