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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 409f92d9c03c97da1340ab786447a40e3af3a51676a11e2f1005c3552bdad1c1
4
- data.tar.gz: e42bd2f0bf847b47ca705096d571fefc16541e511b9fe7663423b601037e660a
3
+ metadata.gz: 4d2deeca61426ae85c2bdc6fbbf17cdcbf9c24e0ef0fdd53693ecc04cc8ead11
4
+ data.tar.gz: 0f8fa560093401a7f9e8bb8ba51d212ce118d0d49cd93c24540ffea45a8d8fec
5
5
  SHA512:
6
- metadata.gz: a068137b15c168995c30c26bb59853c1032e162da06c5d7c804dfde181621e76c88d11ed91d285037202b4935c264f1e6feffdfd7bda0e886add8c0c1667e7e3
7
- data.tar.gz: a35cd033721b764e4883089db018ab6b4e61bb8cda0bec8d757fff3e17723d1c7b3262ed494247080ca6c8e18f0d481457cea7c6a684b8f1829fb4cdfbf304d7
6
+ metadata.gz: a0d269e6ae5ffae5da6c39563f20868ed79532683457805ab7483443aa8e4d1efcb724886c5bf5d393a87b8d7df31d8e1685984b9e9a60134d5c886a58cd9210
7
+ data.tar.gz: d1cb1ec74d7c03bfb7ac0d2c870aa7fa8a47ee0b1b40d1b5d81c474d26eede9d11a9ed0b3e20c1572a5253aa3b4be3c020e9b45d112eb622a68882063765aee1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gonative-cli (0.3.1)
4
+ gonative-cli (0.4.0)
5
5
  cocoapods (~> 1.10)
6
6
  colorize
7
7
  dry-cli (~> 0.7)
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GoNative
4
- VERSION = "0.4.0"
4
+ VERSION = "0.4.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gonative-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hunaid Hassan