orientepodspecpush 0.2.2 → 0.2.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: 11171d26608dfda45221624401841b345badc8d29a222a42c3a83941a3e51a41
4
- data.tar.gz: 9a716a124d0316bc70ce016a69ebb2993ba35aee0ef973b51b10f0584b201acd
3
+ metadata.gz: fab65096283fd33ad915deb1e4ec3011858b1d6955e393731dc4eede0e81fd1b
4
+ data.tar.gz: be518b78458b31cc64614217efc6799876bb830f313f2a85983f1f0b2200b819
5
5
  SHA512:
6
- metadata.gz: fbb80b830580fbcd4061831a7bbaaf0ca6dc9bb0d198f6df08d132a00d9b9db5a72451b7bbdee921628db40f5d76d8f05bb3b97be0077835dcb659d4b6a2e8eb
7
- data.tar.gz: de0c697c0d32e40c83847b346cfd3ba642d6914492bef11554205cf46566eea7c7cb1fb52c5fb29eb6e675de1f85868365fe2919d3f7c9850dd532f55707555c
6
+ metadata.gz: fc339ca0efaca6426e5cd30e58565d1750a85a97c52e32354c2014255564d641ec0eefb3a28f44cfdc188a8b28714d52b95675310736ee88c6b9204e1e0ef65e
7
+ data.tar.gz: 83d2508b60c796b4ddfb21e21eb12e1cd7d657678aa077348c00f7d1aad0ba59616d1d92dd1385f1ea3b02dd4b15884478f9add237444cf10d80f92a54cc230e
@@ -88,17 +88,23 @@ module Orientepodspecpush
88
88
  cmd.join(' ')
89
89
  end
90
90
 
91
- def updateVersion
92
- puts "Please enter new version of the pod so we can tag, lint and push it! (e.g. 1.2.0)".blue
93
- @podVersion = gets.chomp.downcase
94
-
95
- puts "Please enter new a brief message to put in the git tag describing what's changed".blue
96
- @podVersionMessage = gets.chomp.downcase
91
+ def updateVersion(opts)
92
+ # puts "Please enter new version of the pod so we can tag, lint and push it! (e.g. 1.2.0)".blue
93
+ # @podVersion = gets.chomp.downcase
94
+ #
95
+ # puts "Please enter new a brief message to put in the git tag describing what's changed".blue
96
+ # @podVersionMessage = gets.chomp.downcase
97
97
 
98
98
  # system "git add ."
99
99
  # system "git commit -m 'upload framework'"
100
100
  #
101
- system "git tag -a #{@podVersion} -m '#{@podVersionMessage}'"
101
+
102
+ if opts[:versionCommitMsg] == nil
103
+ system "git tag -a #{opts[:version]} -m 'add new tag'"
104
+ else
105
+ system "git tag -a #{opts[:version]} -m '#{opts[:versionCommitMsg]}'"
106
+ end
107
+ # system "git tag -a #{@podVersion} -m '#{@podVersionMessage}'"
102
108
  system "git push --tags"
103
109
 
104
110
  contents = File.read(specfile)
@@ -121,6 +127,8 @@ module Orientepodspecpush
121
127
 
122
128
  def rollbackTag
123
129
  puts "Rolling back git tags".green
130
+
131
+ system "git checkout ."
124
132
  system "git tag -d #{@podVersion}"
125
133
  system "git push -d origin #{@podVersion}"
126
134
  exit
@@ -173,6 +181,8 @@ module Orientepodspecpush
173
181
  opt :workspace, "Path to cocoapod workspace", :type => :string
174
182
  opt :sources, "Comma delimited list of private repo sources to consider when linting private repo. Master is included by default so private repos can source master", :type => :string
175
183
  opt :private, "If set, assume the cocoapod is private and skip public checks"
184
+ opt :version, "version of the repo push to", :type => :string
185
+ opt :versionCommitMsg, "commit message of this version", :type => :string
176
186
  opt :lint, "pod spec lint 情况下所需要的参数,需要用引号括起来,例如'--allow-warnings --sources=some source address'",:type => :string
177
187
  opt :package, "pod package 情况下所需要的参数,需要用引号括起来,例如'--force --no-mangle'",:type => :string
178
188
  opt :push, "pod repo push 情况下所需要的参数,需要用引号括起来,例如'--verbose --use-libraries'",:type => :string
@@ -186,6 +196,7 @@ module Orientepodspecpush
186
196
  # Need these two
187
197
  Trollop::die :specRepo, "Spec Repo must be provided" if opts[:specRepo] == nil
188
198
  Trollop::die :workspace, "Workspace path must be provided" if opts[:workspace] == nil
199
+ Trollop::die :version, "version must be provided" if opts[:version] == nil
189
200
 
190
201
  Dir.chdir(opts[:workspace]) do
191
202
  # Check
@@ -194,7 +205,7 @@ module Orientepodspecpush
194
205
  # packageCode
195
206
 
196
207
  # User input
197
- updateVersion
208
+ updateVersion(opts)
198
209
 
199
210
  # Cmds
200
211
  @lintCmd = makeLintCmd(opts)
@@ -1,3 +1,3 @@
1
1
  module Orientepodspecpush
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: orientepodspecpush
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - John wang
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-13 00:00:00.000000000 Z
11
+ date: 2018-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: trollop