gonative-cli 0.3.0 → 0.3.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: 3083872f1c9594eb4960a669de5d2374e4911f6cba3cfa27d26e30edc3b1fa47
4
- data.tar.gz: 76ba3d5dc2220a237170f85ddffde6bce4c2d77499fca35d9b741e0d2c2bfa21
3
+ metadata.gz: 690305498ca8ab6181d0e80242d605e1b0e5973baa6a3fca46fe50b397dc1198
4
+ data.tar.gz: dc5ed22127d3202d50fe568b566de50a18437b8824c69e89ccb97de6088b06e0
5
5
  SHA512:
6
- metadata.gz: fc86e31ccd7ec5f2dab9faad2b30aaf59bf405fd5a0dedaf05af5b50e2a53f0a93fa38d0a084df204c637b6a542ba6f11de34b70a07d54d0cc0927d28fd8cbc1
7
- data.tar.gz: d747a8dd31c174fc62c4ef1140d4a071389496e17844d3137a3409257eb14941cb23d32b729fbe0add4958ad5968457fc71e58d7bb75bed7f19b5ad6d481b371
6
+ metadata.gz: d925ca5a5452a8e8f2ccbbf7d59afd6a69d098cfe3a64cceb03b497176c30725530ccb767b7d283efdbbff9542e3db894854c96232f765f6487aad0ffcf22211
7
+ data.tar.gz: 71d61a4112ad9a67545f846071952b27f353b5d019b89c59ae08b73015f031ea8e27ae1ae6bd41df9df35a91ea11d25dcff27ab52b70d9d0c432c1ab9d6ee038
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gonative-cli (0.2.0)
4
+ gonative-cli (0.3.0)
5
5
  cocoapods-release
6
6
  colorize
7
7
  dry-cli (~> 0.7)
data/lib/gonative.rb CHANGED
@@ -7,6 +7,7 @@ Zeitwerk::Loader.for_gem.tap do |loader|
7
7
  loader.inflector.inflect 'gonative' => 'GoNative'
8
8
  loader.inflector.inflect 'dsl' => 'DSL'
9
9
  loader.inflector.inflect 'ios' => 'IOS'
10
+ loader.inflector.inflect 'ui' => 'UI'
10
11
  loader.setup
11
12
  end
12
13
 
@@ -11,6 +11,7 @@ module GoNative
11
11
 
12
12
  def call
13
13
  assert_valid_plugin!
14
+ build_framework!
14
15
  release_pod!
15
16
  end
16
17
 
@@ -21,13 +22,17 @@ module GoNative
21
22
  end
22
23
 
23
24
  def build_framework!
24
- puts 'Building framework'.colorize(:green)
25
- system('sh create-framework.sh')
25
+ Utils::UI.info 'Building framework'
26
+ return if system('sh create-framework.sh >/dev/null 2>/dev/null')
27
+
28
+ raise Error, "Error building framework. Please run the create-framework file manually to fix any errors"
26
29
  end
27
30
 
28
31
  def release_pod!
29
- puts 'Linting and releasing pod'.colorize(:green)
30
- system('pod release')
32
+ Utils::UI.info 'Linting and releasing pod'
33
+ return if system('pod release')
34
+
35
+ raise Error, "Failed to release pod"
31
36
  end
32
37
  end
33
38
  end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true\
2
+
3
+ require 'colorize'
4
+
5
+ module GoNative
6
+ module Utils
7
+ module UI
8
+ class << self
9
+ def info(msg)
10
+ puts msg.colorize(:green)
11
+ end
12
+ end
13
+ end
14
+ end
15
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GoNative
4
- VERSION = "0.3.0"
4
+ VERSION = "0.3.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.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hunaid Hassan
@@ -183,6 +183,7 @@ files:
183
183
  - lib/gonative/plugins/ios/create.rb
184
184
  - lib/gonative/plugins/ios/publish.rb
185
185
  - lib/gonative/utils/template_inflator.rb
186
+ - lib/gonative/utils/ui.rb
186
187
  - lib/gonative/version.rb
187
188
  - templates/plugins/ios/.gitignore
188
189
  - templates/plugins/ios/LICENSE