pod_updater 0.6.2 → 0.6.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
  SHA256:
3
- metadata.gz: bd6ded73a3a52d8ad9683899651db75c19c000376f86472fb1a41154d4ae2623
4
- data.tar.gz: 8740fdf85a3e4f305270579a2a7d96189351b31c9da1921e2b392838db4023a4
3
+ metadata.gz: 2dcb65d881af17d076b8a9e3168256c18b811337547c8910aca35f7ac2520f6b
4
+ data.tar.gz: c362c73ac8c9e877b53db442e0df42077fc88b5893a6535b108bc5b3a0d06f18
5
5
  SHA512:
6
- metadata.gz: 53e2593c0a5b1c2e6672d347bd232be45dc25d694b4f18a3a0fd50f8bbddf74436514c050897ab754dfe2c5d1cf2b7521d4845d59eaebe73e8037f0537c2dbca
7
- data.tar.gz: 33bebd20ddedd255c73772fe25affc75d0b5ab16d0dc8b5fb5416ec3cb54201741246290e9c5facf6964f2644370b9272a1a724826993685e23e630f6af669ca
6
+ metadata.gz: 7080486ec4ea7cbd30b7c2dfe2ff83dea1dc27f3b5286dd771c28b4098a378ef915edb6fde8d61eee31a120edb975bbe410adc26a09eac9cde85634655364006
7
+ data.tar.gz: ed68e566a05d39c6d0397e08a814dc9ba2587bf7798a331faa166c89eb349b818553723f56b5109a2a7cc2d59cc2fd6c7bd7673416e6a9becd46bb739022b2a9
data/bin/pod_updater CHANGED
@@ -21,6 +21,12 @@ option_parser = OptionParser.new do |opts|
21
21
  options[:cp_path] = cp_path
22
22
  end
23
23
 
24
+ options[:message] = nil
25
+ opts.on('-m', '--message [message]', String, 'the message to descrie your pod for this version') do |message|
26
+ options[:message] = message
27
+ end
28
+
29
+
24
30
  end.parse!
25
31
 
26
32
  unless options[:version]
@@ -29,4 +35,4 @@ unless options[:version]
29
35
  exit
30
36
  end
31
37
 
32
- PodUpdater.run(options[:version], options[:cp_path])
38
+ PodUpdater.run(options[:version], options[:cp_path], options[:message])
@@ -7,7 +7,7 @@ require 'pod_updater/pod_updater_file'
7
7
  module PodUpdater
8
8
 
9
9
  # 给定pod库项目的路径,以及新版pod库的版本,将自己的pod提交到git,然后打上tag,再push trunk到pod服务器去,如果cp_path存在则将最后的podspec文件拷贝到cp_path下
10
- def pushPodToSevice(path,version,cp_path)
10
+ def pushPodToSevice(path, version, cp_path, message)
11
11
 
12
12
  podFilePath = pathWithPodspecSuffix(path)
13
13
 
@@ -31,7 +31,7 @@ module PodUpdater
31
31
  return
32
32
  end
33
33
 
34
- msg = "for pod version:#{version}"
34
+ msg = "for pod version:#{version} #{message}"
35
35
 
36
36
  modifyPodspec(path:podFilePath,version:version) #将podspec文件的版本号进行修改
37
37
 
@@ -59,7 +59,7 @@ module PodUpdater
59
59
  end
60
60
  end
61
61
 
62
- if output =~ %r(ERROR|error)
62
+ if push_cmd_output =~ %r(ERROR|error)
63
63
  UI.err("pod lib lint 发生错误")
64
64
  else
65
65
  UI.notification(title: "上传完成✅")
@@ -1,3 +1,3 @@
1
1
  module PodUpdater
2
- VERSION = "0.6.2"
2
+ VERSION = "0.6.3"
3
3
  end
data/lib/pod_updater.rb CHANGED
@@ -6,10 +6,9 @@ require "pod_updater/pod_push"
6
6
 
7
7
  module PodUpdater
8
8
 
9
- def self.run(version, cp_path)
9
+ def self.run(version, cp_path, message)
10
10
  path = File.expand_path(Dir.pwd)
11
- pushPodToSevice(path, version, cp_path)
11
+ pushPodToSevice(path, version, cp_path, message)
12
12
  end
13
13
 
14
- UI.notification_openurl(title: "GG", url: "https://cocoapods.org/pods/MCQRScan")
15
14
  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.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - hwzss