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 +4 -4
- data/lib/orientepodspecpush.rb +7 -6
- 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: ce4da4c3eba8c1142209d6adb058f7bc04a652c1c7314892c2e6c4ef002f112e
|
4
|
+
data.tar.gz: 40f8bfacc60c5df2ad99ea60cda2f58bbcc4e41e5f1feaa29a920b8f2f55cdf0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 279102481e104321855a51717a8caabe40fad9b09e16abd7dc6ef5e259834f65d5142c05fb0b6b0515aa0a0251a897a3b3ebcc4c04cc34b54e7ac766b6a7ae51
|
7
|
+
data.tar.gz: 694f197b8faf4bc8ca8821965def2fbc5aa1e992bf67b3e95836ff0f9934ba02c1c030f617075b05806ae1aacdb1716628c73602dbb4334a6924257271715aa4
|
data/lib/orientepodspecpush.rb
CHANGED
@@ -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
|
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
|
104
|
-
system "git tag -a #{
|
102
|
+
if @podVersionMessag == nil
|
103
|
+
system "git tag -a #{@podVersion} -m 'add new tag'"
|
105
104
|
else
|
106
|
-
system "git tag -a #{
|
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
|
-
|
209
|
+
@podVersion = '#{opts[:tag]}'
|
210
|
+
@podVersionMessage = '#{opts[:tagCommitMsg]}'
|
211
|
+
updateVersion
|
211
212
|
|
212
213
|
# Cmds
|
213
214
|
@lintCmd = makeLintCmd(opts)
|