gonative-cli 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/gonative/plugins/ios/publish.rb +7 -0
- data/lib/gonative/plugins/ios/publish/release.rb +1 -0
- data/lib/gonative/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: 4d2deeca61426ae85c2bdc6fbbf17cdcbf9c24e0ef0fdd53693ecc04cc8ead11
|
4
|
+
data.tar.gz: 0f8fa560093401a7f9e8bb8ba51d212ce118d0d49cd93c24540ffea45a8d8fec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0d269e6ae5ffae5da6c39563f20868ed79532683457805ab7483443aa8e4d1efcb724886c5bf5d393a87b8d7df31d8e1685984b9e9a60134d5c886a58cd9210
|
7
|
+
data.tar.gz: d1cb1ec74d7c03bfb7ac0d2c870aa7fa8a47ee0b1b40d1b5d81c474d26eede9d11a9ed0b3e20c1572a5253aa3b4be3c020e9b45d112eb622a68882063765aee1
|
data/Gemfile.lock
CHANGED
@@ -9,6 +9,7 @@ module GoNative
|
|
9
9
|
|
10
10
|
def call
|
11
11
|
assert_valid_plugin!
|
12
|
+
assert_staging_clear!
|
12
13
|
build_framework!
|
13
14
|
release_pod!
|
14
15
|
end
|
@@ -19,6 +20,12 @@ module GoNative
|
|
19
20
|
raise Error, "File 'create-framework.sh' does not exist. Please make sure this is a valid GoNative plugin directory"
|
20
21
|
end
|
21
22
|
|
23
|
+
def assert_staging_clear!
|
24
|
+
return if `git status --porcelain`.empty?
|
25
|
+
|
26
|
+
raise Error, "There are uncommitted changes in the repository"
|
27
|
+
end
|
28
|
+
|
22
29
|
def build_framework!
|
23
30
|
Utils::UI.info 'Building framework'
|
24
31
|
return if system('sh create-framework.sh >/dev/null 2>/dev/null')
|
@@ -42,6 +42,7 @@ module GoNative
|
|
42
42
|
|
43
43
|
def create_and_push_tag!
|
44
44
|
unless system("git tag | grep #{spec.version} > /dev/null")
|
45
|
+
system "git add -A && git commit -m \"Releases #{spec.version}.\""
|
45
46
|
system "git tag #{spec.version}"
|
46
47
|
system "git push && git push --tags"
|
47
48
|
end
|
data/lib/gonative/version.rb
CHANGED