orientepodspecpush 0.2.8 → 0.2.9
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/version.rb +1 -1
- data/lib/orientepodspecpush.rb +8 -15
- 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: b816e466e1409cf742c4e36856fd65a0e1676aac7bf53fec228fa3e4a64fde7e
|
4
|
+
data.tar.gz: cde6d65974f23244843f910ea946862ea81ba4188fcd9467db8e916a2a25f21b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a0c0e8420aa7bc66a63b726971ef70377405a335407c5528086be7da3dfdddc7457cc4805d50a6a43d23df4b0e484761f38838e65834856633b30b2ab49116a
|
7
|
+
data.tar.gz: 73d1afcd64d5e802744d86060cb811f4eec13835a855ee89423694312517e4dde5af61441eb483ed78e24a46854b84d4ec93baa4e7186443c84892e58171e9f8
|
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(opts)
|
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
|
#
|
@@ -99,19 +99,17 @@ module Orientepodspecpush
|
|
99
99
|
# system "git commit -m 'upload framework'"
|
100
100
|
#
|
101
101
|
|
102
|
-
if
|
103
|
-
|
104
|
-
system "git tag -a 0.2.2.2 -m 'add new tag'"
|
102
|
+
if opts[:versionCommitMsg] == nil
|
103
|
+
system "git tag -a #{opts[:version]} -m 'add new tag'"
|
105
104
|
else
|
106
|
-
|
107
|
-
system "git tag -a 0.2.2.3 -m 'test 0.2.2.3'"
|
105
|
+
system "git tag -a #{opts[:version]} -m '#{opts[:versionCommitMsg]}'"
|
108
106
|
end
|
109
107
|
# system "git tag -a #{@podVersion} -m '#{@podVersionMessage}'"
|
110
108
|
system "git push --tags"
|
111
109
|
|
112
110
|
contents = File.read(specfile)
|
113
111
|
oldVersion = Regexp.new('[0-9.]{2,6}').match(Regexp.new('(s.version)\s*=.*\n').match(contents).to_s).to_s
|
114
|
-
File.write(specfile, contents.sub!(oldVersion,
|
112
|
+
File.write(specfile, contents.sub!(oldVersion, opts[:version]))
|
115
113
|
|
116
114
|
# cmd = []
|
117
115
|
# cmd << ['bundle exec'] if shouldUseBundleExec
|
@@ -131,8 +129,8 @@ module Orientepodspecpush
|
|
131
129
|
puts "Rolling back git tags".green
|
132
130
|
|
133
131
|
system "git checkout ."
|
134
|
-
system "git tag -d #{
|
135
|
-
system "git push -d origin #{
|
132
|
+
system "git tag -d #{opts[:version]}"
|
133
|
+
system "git push -d origin #{opts[:version]}"
|
136
134
|
exit
|
137
135
|
end
|
138
136
|
|
@@ -208,12 +206,7 @@ module Orientepodspecpush
|
|
208
206
|
# packageCode
|
209
207
|
|
210
208
|
# User input
|
211
|
-
|
212
|
-
# "#{opts[:lint]}"
|
213
|
-
@podVersion = "#{opts[:tag]}"
|
214
|
-
puts "tag--------'#{@podVersion}'"
|
215
|
-
# @podVersionMessage = "#{opts[:tagCommitMsg]}"
|
216
|
-
updateVersion
|
209
|
+
updateVersion(opts)
|
217
210
|
|
218
211
|
# Cmds
|
219
212
|
@lintCmd = makeLintCmd(opts)
|