orientepodspecpush 0.3.2 → 0.3.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 +4 -4
- data/lib/orientepodspecpush.rb +9 -12
- data/lib/orientepodspecpush/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c6397f9344c7b8830cd1787c3205f8366979260289ee793fe7483399d76f3bd
|
4
|
+
data.tar.gz: f34cd8c29d9bc592afd25add9a9c958c1d7159eb98873917b0307d36ab29b8b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7488f27982e79261ed997508b9642a607d682eb8da1c14611a2722a08b956e30b949c4302922b5aaf33fe0ceebf48e1a610aaac1e741b3ab8100c9ce9ed82ee
|
7
|
+
data.tar.gz: 10c168a613096654908addc5b17fe0eb1878ed9f36378db123a26b415203645d3dc7be8a85b1885e020240ca8ea3cc7b4a886bf17b7993f7aa62af803f0db56b
|
data/lib/orientepodspecpush.rb
CHANGED
@@ -88,7 +88,7 @@ module Orientepodspecpush
|
|
88
88
|
cmd.join(' ')
|
89
89
|
end
|
90
90
|
|
91
|
-
def updateVersion
|
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,
|
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
|
129
|
+
def rollbackTag
|
130
130
|
puts "Rolling back git tags".green
|
131
131
|
|
132
132
|
system "git checkout ."
|
133
|
-
system "git tag -d #{
|
134
|
-
system "git push -d origin #{
|
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
|
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
|
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
|
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
|
-
|
213
|
-
puts @podVersion
|
214
|
-
puts "------------------------------------------------"
|
215
|
-
updateVersion(opts)
|
212
|
+
updateVersion
|
216
213
|
|
217
214
|
# Cmds
|
218
215
|
@lintCmd = makeLintCmd(opts)
|