orientepodspecpush 0.0.5 → 0.0.6
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 -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: 011c7d14d6321354789c59f519fe898194fdbe456a4f54d59446482ac575cbac
|
4
|
+
data.tar.gz: dfe138e4890109b00f466dddf2ae2688f74987b417a2d5f4e56987c8678862e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4c9d1f7ac8c87a5038e90f0135390b32edbfb82e8100ffe132f0501f01aa0972e869ba655b3b7773ccf4cc351efbb931a61fb968b4c8e9bf283e5eae0055382
|
7
|
+
data.tar.gz: 164df3f003c4e00700bc809b006f546081ffcc5e059a19cd0b5bfccfafa66152db0876e05c9bc732cc0c8cf4f130e6e0cdc83a2459fe06095f98fe0afa0ab237
|
data/lib/orientepodspecpush.rb
CHANGED
@@ -91,6 +91,12 @@ module Orientepodspecpush
|
|
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
|
+
|
95
|
+
cmd = []
|
96
|
+
cmd << ['bundle exec'] if shouldUseBundleExec
|
97
|
+
cmd << ["pod package #{specfile} --force"]
|
98
|
+
|
99
|
+
system cmd.join(' ')
|
94
100
|
system "git add ."
|
95
101
|
system "git commit -m 'upload framework'"
|
96
102
|
|
@@ -156,7 +162,7 @@ module Orientepodspecpush
|
|
156
162
|
# Check
|
157
163
|
ensureGitClean
|
158
164
|
ensureSpecfile
|
159
|
-
packageCode
|
165
|
+
# packageCode
|
160
166
|
|
161
167
|
# User input
|
162
168
|
updateVersion
|