orientepodspecpush 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: febaada3fa09e21f240f81e29f14f33ede491ff6c3f3fc604b6dbe3cd0f8090e
4
- data.tar.gz: f2df7d6e631b0c3821b595c7e79d46e9a8ea55b0c1e5f7f71e78650c9bc44310
3
+ metadata.gz: 5c6397f9344c7b8830cd1787c3205f8366979260289ee793fe7483399d76f3bd
4
+ data.tar.gz: f34cd8c29d9bc592afd25add9a9c958c1d7159eb98873917b0307d36ab29b8b3
5
5
  SHA512:
6
- metadata.gz: 411dde01beecf8e68d721afdf9e186c94127a3128281ca69b968e0d7552856dc056588ddf9a01d2962912d6990af82c0e789a15e1716a499b994b42e2edcd5d6
7
- data.tar.gz: 49f0f4bdb71f5d46fcb924620fbf36e70e76e95659bf64d5a1e5e3fe5d10ffb6c7ad06a7c13d85903dce1fc32cd0ae2d51a910a540fb551dd678e0977a3517ac
6
+ metadata.gz: e7488f27982e79261ed997508b9642a607d682eb8da1c14611a2722a08b956e30b949c4302922b5aaf33fe0ceebf48e1a610aaac1e741b3ab8100c9ce9ed82ee
7
+ data.tar.gz: 10c168a613096654908addc5b17fe0eb1878ed9f36378db123a26b415203645d3dc7be8a85b1885e020240ca8ea3cc7b4a886bf17b7993f7aa62af803f0db56b
@@ -88,7 +88,7 @@ module Orientepodspecpush
88
88
  cmd.join(' ')
89
89
  end
90
90
 
91
- def updateVersion(opts)
91
+ def updateVersion
92
92
  # puts "Please enter new version of the pod so we can tag, lint and push it! (e.g. 1.2.0)".blue
93
93
  # @podVersion = gets.chomp.downcase
94
94
  #
@@ -109,7 +109,7 @@ module Orientepodspecpush
109
109
  system "git push --tags"
110
110
 
111
111
  contents = File.read(specfile)
112
- oldVersion = Regexp.new('[0-9.]{2,6}').match(Regexp.new('(s.version)\s*=.*\n').match(contents).to_s).to_s
112
+ oldVersion = Regexp.new('[0-9.]{2,8}').match(Regexp.new('(s.version)\s*=.*\n').match(contents).to_s).to_s
113
113
  File.write(specfile, contents.sub!(oldVersion, @podVersion))
114
114
 
115
115
  # cmd = []
@@ -126,12 +126,12 @@ module Orientepodspecpush
126
126
  # system "git push --tags"
127
127
  end
128
128
 
129
- def rollbackTag(opts)
129
+ def rollbackTag
130
130
  puts "Rolling back git tags".green
131
131
 
132
132
  system "git checkout ."
133
- system "git tag -d #{opts[:tag]}"
134
- system "git push -d origin #{opts[:tag]}"
133
+ system "git tag -d #{@podVersion}"
134
+ system "git push -d origin #{@podVersion}"
135
135
  exit
136
136
  end
137
137
 
@@ -147,10 +147,10 @@ module Orientepodspecpush
147
147
  if success == false && withWarnings == false
148
148
  # Try again?
149
149
  puts "Linting failed, try again by allowing warnings? [Y/n]".blue
150
- gets.chomp.downcase == "y" ? executeLint(true,opts) : rollbackTag(opts)
150
+ gets.chomp.downcase == "y" ? executeLint(true,opts) : rollbackTag
151
151
  elsif success == false && withWarnings == true
152
152
  puts "Even with warnings, something is wrong. Look for any errors".red
153
- rollbackTag(opts)
153
+ rollbackTag
154
154
  else
155
155
  unless opts[:noPackage] == true
156
156
  package(opts)
@@ -164,7 +164,7 @@ module Orientepodspecpush
164
164
 
165
165
  if success == false
166
166
  puts "Push failed, see errors.".red
167
- rollbackTag(opts)
167
+ rollbackTag
168
168
  end
169
169
  end
170
170
 
@@ -209,10 +209,7 @@ module Orientepodspecpush
209
209
  # User input
210
210
  @podVersion = opts[:tag]
211
211
  @podVersionMessage = opts[:tagCommitMsg]
212
- puts "----------------------------"
213
- puts @podVersion
214
- puts "------------------------------------------------"
215
- updateVersion(opts)
212
+ updateVersion
216
213
 
217
214
  # Cmds
218
215
  @lintCmd = makeLintCmd(opts)
@@ -1,3 +1,3 @@
1
1
  module Orientepodspecpush
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
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.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - John wang