shellboxCLI 0.1.9 → 0.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/ios/hooks/install-hooks.rb +2 -0
- data/lib/ios/iosOption.rb +18 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2fc8c8556115bff1e895be1f1b0c0a4709f573784334b0ba97bab590105dc88f
|
4
|
+
data.tar.gz: 6dd7b666dac21a28420cf2c39f2ac63c4db0cccb17995982815f9314cb248a76
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a134aad58c03ec91128bc813d08f39f783985dfae2b4abfa8800202fdf39fd00b0a8488fbefec56bbfb6dd89e52581f577a4822452ab872265776aad250acf7
|
7
|
+
data.tar.gz: 5401d1b9dd4074ae97032e1f82897a4e83ad9f75b38a19c2c3341a424b4ae93c0dad4145984258a0e74701bafb19c21fb699230b7c7c9066f132838f839c73bc
|
data/lib/ios/iosOption.rb
CHANGED
@@ -3,7 +3,6 @@ require 'ios/module/setup/Template_Configurator'
|
|
3
3
|
require 'thor'
|
4
4
|
|
5
5
|
module App
|
6
|
-
|
7
6
|
class IOS_CLI < Thor
|
8
7
|
desc "module", "Create a new module to iOS platform"
|
9
8
|
def module
|
@@ -32,9 +31,25 @@ module App
|
|
32
31
|
private
|
33
32
|
|
34
33
|
def install_hooks
|
34
|
+
hooks_directory = File.expand_path(File.join(File.dirname(__FILE__), 'hooks'))
|
35
|
+
install_hooks_path = File.join(hooks_directory, 'install-hooks.rb')
|
36
|
+
|
37
|
+
unless File.exist?(install_hooks_path)
|
38
|
+
puts "O arquivo install-hooks.rb não foi encontrado em #{hooks_directory}."
|
39
|
+
return
|
40
|
+
end
|
41
|
+
|
35
42
|
puts "Executando install_hooks..."
|
36
|
-
|
37
|
-
|
43
|
+
|
44
|
+
Dir.chdir(hooks_directory) do
|
45
|
+
success = system('ruby install-hooks.rb')
|
46
|
+
|
47
|
+
if success
|
48
|
+
puts "✅ Hooks instalados com sucesso!"
|
49
|
+
else
|
50
|
+
puts "❌ Erro ao executar pre-hook"
|
51
|
+
end
|
52
|
+
end
|
38
53
|
end
|
39
54
|
end
|
40
55
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shellboxCLI
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ShellBox App
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-01-
|
11
|
+
date: 2024-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|