orientepodspecpush 0.2.5 → 0.2.6

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: 8ce2eacefd238a8078072af3a2ae93e246b5584f3f340a5a3f678c071f068bef
4
- data.tar.gz: bb757752cb37a65d0e30db0f63d8c632d65b4e68d3efc6778b66ec9fc02ee921
3
+ metadata.gz: ce4da4c3eba8c1142209d6adb058f7bc04a652c1c7314892c2e6c4ef002f112e
4
+ data.tar.gz: 40f8bfacc60c5df2ad99ea60cda2f58bbcc4e41e5f1feaa29a920b8f2f55cdf0
5
5
  SHA512:
6
- metadata.gz: 7f245e4f362dc8eacf9af3b41baff87e87aaf92022ef243fe6dca5bf03d2aadf4e3692056d2c532c2fa65765ea39630660edbc09991bc534e2e1277cd157f876
7
- data.tar.gz: 76c67d6c2eebaca7a0c9832c6482b3ee86a5ef0fcd3e2bed15e29dfd6c4907b94ea30eb5638d4c0e126ff3b7a2180ddaa7801c1689e14215b4cf323cb3b6dfbd
6
+ metadata.gz: 279102481e104321855a51717a8caabe40fad9b09e16abd7dc6ef5e259834f65d5142c05fb0b6b0515aa0a0251a897a3b3ebcc4c04cc34b54e7ac766b6a7ae51
7
+ data.tar.gz: 694f197b8faf4bc8ca8821965def2fbc5aa1e992bf67b3e95836ff0f9934ba02c1c030f617075b05806ae1aacdb1716628c73602dbb4334a6924257271715aa4
@@ -38,7 +38,6 @@ module Orientepodspecpush
38
38
  end
39
39
 
40
40
  def ensureGitClean
41
- puts "test:ensureGitClean".blue
42
41
  if `git status --porcelain`.length != 0
43
42
  puts "Repo is not clean; will not push new version".red
44
43
  exit
@@ -89,7 +88,7 @@ module Orientepodspecpush
89
88
  cmd.join(' ')
90
89
  end
91
90
 
92
- def updateVersion(opts)
91
+ def updateVersion
93
92
  # puts "Please enter new version of the pod so we can tag, lint and push it! (e.g. 1.2.0)".blue
94
93
  # @podVersion = gets.chomp.downcase
95
94
  #
@@ -100,10 +99,10 @@ module Orientepodspecpush
100
99
  # system "git commit -m 'upload framework'"
101
100
  #
102
101
 
103
- if opts[:versionCommitMsg] == nil
104
- system "git tag -a #{opts[:tag]} -m 'add new tag'"
102
+ if @podVersionMessag == nil
103
+ system "git tag -a #{@podVersion} -m 'add new tag'"
105
104
  else
106
- system "git tag -a #{opts[:version]} -m '#{opts[:tagCommitMsg]}'"
105
+ system "git tag -a #{@podVersion} -m '#{@podVersionMessage}'"
107
106
  end
108
107
  # system "git tag -a #{@podVersion} -m '#{@podVersionMessage}'"
109
108
  system "git push --tags"
@@ -207,7 +206,9 @@ module Orientepodspecpush
207
206
  # packageCode
208
207
 
209
208
  # User input
210
- updateVersion(opts)
209
+ @podVersion = '#{opts[:tag]}'
210
+ @podVersionMessage = '#{opts[:tagCommitMsg]}'
211
+ updateVersion
211
212
 
212
213
  # Cmds
213
214
  @lintCmd = makeLintCmd(opts)
@@ -1,3 +1,3 @@
1
1
  module Orientepodspecpush
2
- VERSION = "0.2.5"
2
+ VERSION = "0.2.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: orientepodspecpush
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - John wang