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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b177cbce7350d43ceab5ce3c4fed9fd610d0a5bb82fb8e57360fd47b829d0b77
4
- data.tar.gz: 82e9cfe8fe8ed2fa515c41cffdb21b7dceae094659e8210875dc23c14e80675d
3
+ metadata.gz: 2fc8c8556115bff1e895be1f1b0c0a4709f573784334b0ba97bab590105dc88f
4
+ data.tar.gz: 6dd7b666dac21a28420cf2c39f2ac63c4db0cccb17995982815f9314cb248a76
5
5
  SHA512:
6
- metadata.gz: 229d8d7c1658cf9c8ebd4a13516b416199874d88f3c070cd12b15455270e84a0771972786edb80f4999c3b1cc798e5b8b7ab29b80aa0208aa9b1b886abd1317b
7
- data.tar.gz: 280ca136f13288688e244ec63bddc9c51d716c90f05760898d94669f75cae3ab1b72d21ac3287f525bdc8d827f12cc4b75c4e1b729c0331ab92b632af58958eb
6
+ metadata.gz: 3a134aad58c03ec91128bc813d08f39f783985dfae2b4abfa8800202fdf39fd00b0a8488fbefec56bbfb6dd89e52581f577a4822452ab872265776aad250acf7
7
+ data.tar.gz: 5401d1b9dd4074ae97032e1f82897a4e83ad9f75b38a19c2c3341a424b4ae93c0dad4145984258a0e74701bafb19c21fb699230b7c7c9066f132838f839c73bc
@@ -1,3 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+
1
3
  unless File.directory?(".git/hooks")
2
4
  puts "Pasta .git/hooks não encontrada. Certifique-se de estar no diretório raiz do seu repositório Git."
3
5
  exit 1
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
- system('ruby hooks/install-hooks.rb')
37
- puts "✅ Hooks instalados com sucesso"
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.9
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-10 00:00:00.000000000 Z
11
+ date: 2024-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor