orientepodspecpush 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/orientepodspecpush/version.rb +1 -1
- data/lib/orientepodspecpush.rb +7 -5
- 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: febaada3fa09e21f240f81e29f14f33ede491ff6c3f3fc604b6dbe3cd0f8090e
|
4
|
+
data.tar.gz: f2df7d6e631b0c3821b595c7e79d46e9a8ea55b0c1e5f7f71e78650c9bc44310
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 411dde01beecf8e68d721afdf9e186c94127a3128281ca69b968e0d7552856dc056588ddf9a01d2962912d6990af82c0e789a15e1716a499b994b42e2edcd5d6
|
7
|
+
data.tar.gz: 49f0f4bdb71f5d46fcb924620fbf36e70e76e95659bf64d5a1e5e3fe5d10ffb6c7ad06a7c13d85903dce1fc32cd0ae2d51a910a540fb551dd678e0977a3517ac
|
data/lib/orientepodspecpush.rb
CHANGED
@@ -98,18 +98,19 @@ module Orientepodspecpush
|
|
98
98
|
# system "git add ."
|
99
99
|
# system "git commit -m 'upload framework'"
|
100
100
|
#
|
101
|
-
|
102
|
-
|
103
|
-
|
101
|
+
# @podVersion = opts[:tag]
|
102
|
+
# @podVersionMessage = opts[:tagCommitMsg]
|
103
|
+
if @podVersionMessage == nil
|
104
|
+
system "git tag -a #{@podVersion} -m 'add new tag'"
|
104
105
|
else
|
105
|
-
system "git tag -a #{
|
106
|
+
system "git tag -a #{@podVersion} -m '#{@podVersionMessage}'"
|
106
107
|
end
|
107
108
|
# system "git tag -a #{@podVersion} -m '#{@podVersionMessage}'"
|
108
109
|
system "git push --tags"
|
109
110
|
|
110
111
|
contents = File.read(specfile)
|
111
112
|
oldVersion = Regexp.new('[0-9.]{2,6}').match(Regexp.new('(s.version)\s*=.*\n').match(contents).to_s).to_s
|
112
|
-
File.write(specfile, contents.sub!(oldVersion,
|
113
|
+
File.write(specfile, contents.sub!(oldVersion, @podVersion))
|
113
114
|
|
114
115
|
# cmd = []
|
115
116
|
# cmd << ['bundle exec'] if shouldUseBundleExec
|
@@ -207,6 +208,7 @@ module Orientepodspecpush
|
|
207
208
|
|
208
209
|
# User input
|
209
210
|
@podVersion = opts[:tag]
|
211
|
+
@podVersionMessage = opts[:tagCommitMsg]
|
210
212
|
puts "----------------------------"
|
211
213
|
puts @podVersion
|
212
214
|
puts "------------------------------------------------"
|