orientepodspecpush 0.0.4 → 0.0.5
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 +18 -2
- 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: 49f215ab6185ba7407b060d7020d05105ce6564c52ac20f4af3f32c6ea3cdfcc
|
4
|
+
data.tar.gz: 35ed5d6d828855665c4b3cc6172c2ea95a7aa376346bf565d8098ff617187677
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf59d2a6c1fdee76284558fa8eaee92df70bfa635e6a40e27b2e9d184b5ea90714520f4da67c3674562eac1a9ee2b33ad5f19ae815e67683bedc1cc076458b9a
|
7
|
+
data.tar.gz: 5d8cf77d75f1bdac6126c6bf0bc88ba43604255973156603bb3314056df24d584fbec5cd77e3d441e5d26dd70ddc6c45485c4ae07dc384f54a491fb018e19f67
|
data/lib/orientepodspecpush.rb
CHANGED
@@ -27,6 +27,14 @@ module Orientepodspecpush
|
|
27
27
|
|
28
28
|
system cmd.join(' ')
|
29
29
|
end
|
30
|
+
|
31
|
+
def packageCodePush
|
32
|
+
cmd = []
|
33
|
+
cmd << ['bundle exec'] if shouldUseBundleExec
|
34
|
+
cmd << ["pod package #{specfile} --force"]
|
35
|
+
|
36
|
+
system cmd.join(' ')
|
37
|
+
end
|
30
38
|
|
31
39
|
def ensureGitClean
|
32
40
|
if `git status --porcelain`.length != 0
|
@@ -74,12 +82,20 @@ module Orientepodspecpush
|
|
74
82
|
puts "Please enter new a brief message to put in the git tag describing what's changed".blue
|
75
83
|
@podVersionMessage = gets.chomp.downcase
|
76
84
|
|
77
|
-
system "git
|
78
|
-
system "git
|
85
|
+
# system "git add ."
|
86
|
+
# system "git commit -m 'upload framework'"
|
87
|
+
#
|
88
|
+
# system "git tag -a #{@podVersion} -m '#{@podVersionMessage}'"
|
89
|
+
# system "git push --tags"
|
79
90
|
|
80
91
|
contents = File.read(specfile)
|
81
92
|
oldVersion = Regexp.new('[0-9.]{2,6}').match(Regexp.new('(s.version)\s*=.*\n').match(contents).to_s).to_s
|
82
93
|
File.write(specfile, contents.sub!(oldVersion, @podVersion))
|
94
|
+
system "git add ."
|
95
|
+
system "git commit -m 'upload framework'"
|
96
|
+
|
97
|
+
system "git tag -a #{@podVersion} -m '#{@podVersionMessage}'"
|
98
|
+
system "git push --tags"
|
83
99
|
end
|
84
100
|
|
85
101
|
def rollbackTag
|