gonative-cli 1.2.1 → 1.2.2

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: de98ab993a8962f18682d81561ffe9955b5820abb4ca6be4f3e07624d203aea2
4
- data.tar.gz: b374cefeca6c9329b4f3d531b6a0a331e6fa61edd25b66c19f1ed9d8deb6a36a
3
+ metadata.gz: 2b6ecdffb0ef7622a9e2c4bbab226dcfabb7fcfd6c2b812f0e9d4492af2ab78c
4
+ data.tar.gz: 61205ced579aa0787db3fc4cf88fd958d916c4a00a6aece6381f8114b234c4b0
5
5
  SHA512:
6
- metadata.gz: ea85323ef9fea3dbbc95d614ac78b04e8c14dbedc5591dbe5af703478377f892e3ede539a3087287065afb9fc95106ca06df86f2850835172f623b40681c0d53
7
- data.tar.gz: 32bb8a22a19dc8d60bdb708c5f351c4a81821faa21748f6caec2049e905c5256dff801b5fc49f0c6feb1a0db9dee14542a6e9f55c58b42a9e3f0b3b796cd4713
6
+ metadata.gz: 2ebb2cf3a39e5e4a4390a4427b74443aff3f4f4bfdadb2b9e409e88fe4009340608a34ad801dc52e2e66bf622f9c74f2f27b7d3af85ed5a29e196d87eecbaace
7
+ data.tar.gz: 9703f0d27285ee645e3311cead965481442957b47bc0d1e9396c95667a87dc780d9250b8af70af30434f9f55499a97c889fb34b078445ddda508edd78223248c
data/.rubocop.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  AllCops:
2
- TargetRubyVersion: 2.6
2
+ TargetRubyVersion: 3.1
3
3
 
4
4
  Style/StringLiterals:
5
5
  Enabled: true
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gonative-cli (1.2.1)
4
+ gonative-cli (1.2.2)
5
5
  activesupport (~> 6.0)
6
6
  cocoapods (~> 1.10)
7
7
  colorize (~> 0.8.0)
@@ -20,7 +20,7 @@ module GoNative
20
20
  private
21
21
 
22
22
  def gradle_files
23
- @gradle_files ||= `find . -iname build.gradle`.split("\n")
23
+ @gradle_files ||= `find . -maxdepth 2 -iname build.gradle`.split("\n")
24
24
  end
25
25
 
26
26
  def version
@@ -1,4 +1,3 @@
1
-
2
1
  # frozen_string_literal: true
3
2
 
4
3
  module GoNative
@@ -7,8 +6,9 @@ module GoNative
7
6
  def call(...)
8
7
  super(...)
9
8
  rescue Error => e
10
- warn e.message
9
+ Utils::UI.error e.message
10
+ exit 1
11
11
  end
12
12
  end
13
13
  end
14
- end
14
+ end
@@ -8,4 +8,4 @@ module GoNative
8
8
  end
9
9
  end
10
10
  end
11
- end
11
+ end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # frozen_string_literal: true\
2
4
 
3
5
  require 'colorize'
@@ -13,6 +15,10 @@ module GoNative
13
15
  def output(msg)
14
16
  puts msg
15
17
  end
18
+
19
+ def error(msg)
20
+ puts msg.colorize(:red)
21
+ end
16
22
  end
17
23
  end
18
24
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GoNative
4
- VERSION = '1.2.1'
4
+ VERSION = '1.2.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gonative-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hunaid Hassan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-03 00:00:00.000000000 Z
11
+ date: 2023-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-cli