shellboxCLI 0.1.0 → 0.1.3

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: 06c2e6b62465a31efb5066be4ad0bdb90f7d241e86463976a87131260992ed2e
4
- data.tar.gz: b004616a6653ae856a346982f16224db23d8e37e415a8fb644054b0d43cd1c6a
3
+ metadata.gz: c3dc4494e0f8d10301b56a34252cc329103e6a114699413f33c3f5c5e4c4b245
4
+ data.tar.gz: 65a04aa1f719fc45fe67fb6b2a4743d6ffeefde86c62f69c0ad29c27481f1af8
5
5
  SHA512:
6
- metadata.gz: b2a2f75e8f8fa1bfba50ff14e2542ef13087149e0f36b5a105c7721e1125ebd7798b7d201a63c1fc4ee4b49e5dc1845c828098266006c2b2359efc990ecabe86
7
- data.tar.gz: 6ab250562132a4cbb75d57938495b5585ce3af8c0065eaec99f0f4b8bd564cdabbcad7dbf2506f7ea3d7fbe70ae9504f3d082e2eb9d176dad3950115dd034ff1
6
+ metadata.gz: 428a9b261a34ecf6b7e77088df19bb642608f298f47bbca0161e49ca6d5b56544885db572c859d369152b23a49758a691acb7885a9e375ecb6b7287afa5986fe
7
+ data.tar.gz: f3e0dc0602c32d9a710cb9f05e631e37a5385f29109beb41f9ce3d31816bd95d3566bcdd690b3246539bbe451a7c41312501fc5eaabb9c84e0ea9f3723925525
data/lib/ios/iosOption.rb CHANGED
@@ -19,7 +19,7 @@ module App
19
19
  system('brew update')
20
20
  else
21
21
  puts "Instalando Homebrew"
22
- system("ruby -e '$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)'")
22
+ system("/bin/bash -c \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)\"")
23
23
  end
24
24
  puts "Instalando swiftgen"
25
25
  system("brew install swiftgen")
@@ -87,6 +87,13 @@ module IOS
87
87
  podDevInjection += "\n pod '${POD_NAME}Interface', path: '../'"
88
88
  end
89
89
 
90
+ if @module_type == :feature
91
+ podDevInjection += "\n\n pod 'SBFoundation', path: '../../../CoreModules/SBFoundation'"
92
+ podDevInjection += "\n pod 'SBUIKit', path: '../../../CoreModules/SBUIKit'"
93
+ podDevInjection += "\n pod 'SBRouterServiceInterface', path: '../../../CoreModules/SBRouterService'"
94
+ podDevInjection += "\n pod 'SBDependencyInterface', path: '../../../CoreModules/SBDependency'"
95
+ end
96
+
90
97
  text = File.read projectFileName + "/Podfile"
91
98
  text.gsub!("${DEV_PODS}", podDevInjection)
92
99
  text.gsub!("${POD_NAME}", @configurator.pod_name)
@@ -214,14 +221,20 @@ module IOS
214
221
  if @has_test == :yes
215
222
  podTests = "# TESTS"
216
223
  podTests += "\n s.test_spec 'Tests' do |test_spec|"
217
- podTests += "\n test_spec.source_files = '${POD_NAME}Tests/**/*'"
218
- podTests += "\n test_spec.exclude_files = '${POD_NAME}Tests/Resources/*.plist'"
224
+ podTests += "\n test_spec.source_files = '${POD_NAME}Tests/**/*'"
225
+ podTests += "\n test_spec.exclude_files = '${POD_NAME}Tests/Resources/*.plist'"
219
226
  podTests += "\n end"
220
227
  end
221
228
 
222
- podInternal = ""
229
+ podInternal = "s.dependency 'SBFoundation'"
230
+
231
+ if @module_type == :feature
232
+ podInternal += "\n s.dependency 'SBUIKit'"
233
+ podInternal += "\n s.dependency 'SBDependencyInterface'"
234
+ end
235
+
223
236
  if @has_interface == :yes
224
- podInternal = "s.dependency '${POD_NAME}Interface'"
237
+ podInternal += "\n s.dependency '${POD_NAME}Interface'"
225
238
  end
226
239
 
227
240
  text.gsub!("${FEATURE_INTERNAL}", podInternal)
@@ -238,6 +251,13 @@ module IOS
238
251
  podspecFilename = "#{module_root_path}/#{@configurator.pod_name}Interface.podspec"
239
252
  FileUtils.cp(File.join(@configurator.template_path, "NAMEInterface.podspec"), podspecFilename)
240
253
  text = File.read podspecFilename
254
+
255
+ podInternal = ""
256
+ if @module_type == :feature
257
+ podInternal += "\n s.dependency 'SBRouterServiceInterface'"
258
+ end
259
+
260
+ text.gsub!("${FEATURE_INTERNAL}", podInternal)
241
261
  text.gsub!("${POD_NAME}", @configurator.pod_name)
242
262
  text.gsub!("${USER_NAME}", @configurator.user_name)
243
263
  text.gsub!("${USER_EMAIL}", @configurator.user_email)
@@ -14,7 +14,7 @@ Pod::Spec.new do |s|
14
14
 
15
15
 
16
16
  # INTERNAL DEPENDENCY
17
-
17
+ ${FEATURE_INTERNAL}
18
18
 
19
19
 
20
20
  # THIRTY PARTY
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.0
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - ShellBox App
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-25 00:00:00.000000000 Z
11
+ date: 2022-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -56,12 +56,10 @@ description: A ShellBox CLI to generate some patterns and templates
56
56
  email:
57
57
  - rodrigo.martins@raizen.com
58
58
  executables:
59
- - setup
60
59
  - shellbox
61
60
  extensions: []
62
61
  extra_rdoc_files: []
63
62
  files:
64
- - bin/setup
65
63
  - bin/shellbox
66
64
  - lib/ShellboxCLI.rb
67
65
  - lib/ios/iosOption.rb
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here