orientepodspecpush 0.0.6 → 0.0.7
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 +21 -10
- 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: f352ed76358223a11392b206a64d702041c8adbc1dec3897200ceb7a8a07af3a
|
4
|
+
data.tar.gz: afa9f2a7982b805e08640fb578ff6a0f0a4c8f0a5e7d5f42ff4d240a35530b38
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 336dabe93b625942e2dee1399f6829c795ee8f6fe5f13a6352a1ac3ca62ef243b6e2cd7388759ddc30f3e162bf039523cf13d35d024fdd76eddf8dd060a8b319
|
7
|
+
data.tar.gz: b865fc91c285be2e9857d0239efae52e6e71eff48cee0c1e852bc375e2be5d0e4385f86794c3ac6fb962c842c6a8d406abd639741fde7bafeb4b81fac7c357dd
|
data/lib/orientepodspecpush.rb
CHANGED
@@ -85,20 +85,22 @@ module Orientepodspecpush
|
|
85
85
|
# system "git add ."
|
86
86
|
# system "git commit -m 'upload framework'"
|
87
87
|
#
|
88
|
-
|
89
|
-
|
88
|
+
system "git tag -a #{@podVersion} -m '#{@podVersionMessage}'"
|
89
|
+
system "git push --tags"
|
90
90
|
|
91
91
|
contents = File.read(specfile)
|
92
92
|
oldVersion = Regexp.new('[0-9.]{2,6}').match(Regexp.new('(s.version)\s*=.*\n').match(contents).to_s).to_s
|
93
93
|
File.write(specfile, contents.sub!(oldVersion, @podVersion))
|
94
94
|
|
95
|
-
cmd = []
|
96
|
-
cmd << ['bundle exec'] if shouldUseBundleExec
|
97
|
-
cmd << ["pod package #{specfile} --force"]
|
98
|
-
|
99
|
-
system cmd.join(' ')
|
100
|
-
system "git add ."
|
101
|
-
system "git commit -m 'upload framework'"
|
95
|
+
# cmd = []
|
96
|
+
# cmd << ['bundle exec'] if shouldUseBundleExec
|
97
|
+
# cmd << ["pod package #{specfile} --force"]
|
98
|
+
#
|
99
|
+
# system cmd.join(' ')
|
100
|
+
# system "git add ."
|
101
|
+
# system "git commit -m 'upload framework'"
|
102
|
+
# system "git push origin master"
|
103
|
+
|
102
104
|
|
103
105
|
system "git tag -a #{@podVersion} -m '#{@podVersionMessage}'"
|
104
106
|
system "git push --tags"
|
@@ -127,6 +129,15 @@ module Orientepodspecpush
|
|
127
129
|
elsif success == false && withWarnings == true
|
128
130
|
puts "Even with warnings, something is wrong. Look for any errors".red
|
129
131
|
rollbackTag
|
132
|
+
else
|
133
|
+
cmd = []
|
134
|
+
cmd << ['bundle exec'] if shouldUseBundleExec
|
135
|
+
cmd << ["pod package #{specfile} --force"]
|
136
|
+
|
137
|
+
system cmd.join(' ')
|
138
|
+
system "git add ."
|
139
|
+
system "git commit -m 'upload framework'"
|
140
|
+
system "git push origin master"
|
130
141
|
end
|
131
142
|
end
|
132
143
|
|
@@ -172,7 +183,7 @@ module Orientepodspecpush
|
|
172
183
|
@pushCmd = makePushCmd(opts)
|
173
184
|
|
174
185
|
# execute
|
175
|
-
|
186
|
+
x(false)
|
176
187
|
executePush
|
177
188
|
|
178
189
|
# Tidy up this repo!!
|