firespring_dev_commands 2.1.16 → 2.1.17.pre.alpha.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: a76815afd1e3b494fd7ba20ff9340bd247509baf62b9735cf78da2c94cf03739
4
- data.tar.gz: 9e0d08dbe5a3dd36c5731dccb86e01815d70b1b6b79e2876ed618d647abb6fb5
3
+ metadata.gz: 89d5169f6888e539ee4b25071c7e39923de22f1715a1a4828c1fa53fde05170a
4
+ data.tar.gz: a1858225b8f95bf91d5f30fb1a7d7471c3fbb7cc3838712314f9f9bf43b69310
5
5
  SHA512:
6
- metadata.gz: 780323d83fce097f68cefc3a5a593e2630db8a585f39d6816915638a5ca3390a6aaa63ae9f759472e8eabe43ceacf3d2395f26a2d9aa539aa604a7abc7be4d81
7
- data.tar.gz: 775ba3d95cb591fa540882f588dc038e080cccd11dda040006380c1c0cfba8f05b39cf3a596edd49fc9c7902e9afde56581e481da087322765cdc42bbb127185
6
+ metadata.gz: db9c91a9918bc6d3fa989e5cf66e4b46eb8fe8baeddcb069ef5000a2268741454603147877a7e117c0ba53bbaa18c94745e04f218cf134b5b9cf5d9be2f4cd1a
7
+ data.tar.gz: fae9df31072a86cee1ee6ae55f9f6345e25e8feeed8490fd74a77de499f1addc5ccc92e30ce32aa7e66c592afb169bf2b054c533e942e9e84fa74362ee43c73a
@@ -72,7 +72,7 @@ module Dev
72
72
  return if exclude.include?(:sh)
73
73
 
74
74
  desc "Open a shell into a running #{application} container"
75
- task sh: %W(init_docker #{application}:up _pre_sh_hooks) do
75
+ task sh: %W(init_docker #{application}:up_no_deps _pre_sh_hooks) do
76
76
  Dev::Docker::Compose.new(services: [application]).sh
77
77
  Rake::Task[:_post_sh_hooks].execute
78
78
  end
@@ -154,7 +154,7 @@ module Dev
154
154
  return if exclude.include?(:reload)
155
155
 
156
156
  desc "Reloads the #{application} container"
157
- task reload: %w(init_docker _pre_reload_hooks down up) do
157
+ task reload: %w(init_docker _pre_reload_hooks down up_no_deps) do
158
158
  Rake::Task[:_post_reload_hooks].execute
159
159
  end
160
160
  end
@@ -7,11 +7,24 @@ module Dev
7
7
  module Node
8
8
  # Class for default rake tasks associated with a node project
9
9
  class Application < Dev::Template::ApplicationInterface
10
- attr_reader :node
11
-
12
- # Allow for custom container path for the application
13
- def initialize(application, container_path: nil, local_path: nil, exclude: [])
10
+ attr_reader :node, :start_container_dependencies_on_test
11
+
12
+ # Create the templated rake tasks for the node application
13
+ #
14
+ # @param application [String] The name of the application
15
+ # @param container_path [String] The path to the application inside of the container
16
+ # @param local_path [String] The path to the application on your local system
17
+ # @param start_container_dependencies_on_test [Boolean] Whether or not to start up container dependencies when running tests
18
+ # @param exclude [Array<Symbol>] An array of default template tasks to exclude
19
+ def initialize(
20
+ application,
21
+ container_path: nil,
22
+ local_path: nil,
23
+ start_container_dependencies_on_test: true,
24
+ exclude: []
25
+ )
14
26
  @node = Dev::Node.new(container_path:, local_path:)
27
+ @start_container_dependencies_on_test = start_container_dependencies_on_test
15
28
  super(application, exclude:)
16
29
  end
17
30
 
@@ -59,6 +72,7 @@ module Dev
59
72
  application = @name
60
73
  node = @node
61
74
  exclude = @exclude
75
+ up_cmd = @start_container_dependencies_on_test ? :up : :up_no_deps
62
76
  return if exclude.include?(:test)
63
77
 
64
78
  DEV_COMMANDS_TOP_LEVEL.instance_eval do
@@ -70,7 +84,7 @@ module Dev
70
84
 
71
85
  namespace :node do
72
86
  desc "Run all node tests against the #{application}'s codebase"
73
- task test: %w(init_docker up) do
87
+ task test: %W(init_docker #{up_cmd}) do
74
88
  LOG.debug("Running all node tests in the #{application} codebase")
75
89
 
76
90
  options = []
@@ -7,11 +7,23 @@ module Dev
7
7
  module Php
8
8
  # Class for default rake tasks associated with a php project
9
9
  class Application < Dev::Template::ApplicationInterface
10
- attr_reader :php
10
+ attr_reader :php, :start_container_dependencies_on_test
11
11
 
12
12
  # Allow for custom container path for the application
13
- def initialize(application, container_path: nil, local_path: nil, exclude: [])
13
+ #
14
+ # @param application [String] The name of the application
15
+ # @param container_path [String] The path to the application inside of the container
16
+ # @param local_path [String] The path to the application on your local system
17
+ # @param start_container_dependencies_on_test [Boolean] Whether or not to start up container dependencies when running tests
18
+ def initialize(
19
+ application,
20
+ container_path: nil,
21
+ local_path: nil,
22
+ start_container_dependencies_on_test: true,
23
+ exclude: []
24
+ )
14
25
  @php = Dev::Php.new(container_path:, local_path:)
26
+ @start_container_dependencies_on_test = start_container_dependencies_on_test
15
27
  super(application, exclude:)
16
28
  end
17
29
 
@@ -103,6 +115,7 @@ module Dev
103
115
  application = @name
104
116
  php = @php
105
117
  exclude = @exclude
118
+ up_cmd = @start_container_dependencies_on_test ? :up : :up_no_deps
106
119
  return if exclude.include?(:test)
107
120
 
108
121
  DEV_COMMANDS_TOP_LEVEL.instance_eval do
@@ -114,7 +127,7 @@ module Dev
114
127
 
115
128
  namespace :php do
116
129
  desc "Run all php tests against the #{application}'s codebase"
117
- task test: %w(init_docker up) do
130
+ task test: %W(init_docker #{up_cmd}) do
118
131
  LOG.debug("Running all php tests in the #{application} codebase")
119
132
 
120
133
  options = []
@@ -7,11 +7,23 @@ module Dev
7
7
  module Ruby
8
8
  # Class for default rake tasks associated with a ruby project
9
9
  class Application < Dev::Template::ApplicationInterface
10
- attr_reader :ruby
10
+ attr_reader :ruby, :start_container_dependencies_on_test
11
11
 
12
12
  # Allow for custom container path for the application
13
- def initialize(application, container_path: nil, local_path: nil, exclude: [])
13
+ #
14
+ # @param application [String] The name of the application
15
+ # @param container_path [String] The path to the application inside of the container
16
+ # @param local_path [String] The path to the application on your local system
17
+ # @param start_container_dependencies_on_test [Boolean] Whether or not to start up container dependencies when running tests
18
+ def initialize(
19
+ application,
20
+ container_path: nil,
21
+ local_path: nil,
22
+ start_container_dependencies_on_test: true,
23
+ exclude: []
24
+ )
14
25
  @ruby = Dev::Ruby.new(container_path:, local_path:)
26
+ @start_container_dependencies_on_test = start_container_dependencies_on_test
15
27
  super(application, exclude:)
16
28
  end
17
29
 
@@ -59,6 +71,7 @@ module Dev
59
71
  application = @name
60
72
  ruby = @ruby
61
73
  exclude = @exclude
74
+ up_cmd = @start_container_dependencies_on_test ? :up : :up_no_deps
62
75
  return if exclude.include?(:test)
63
76
 
64
77
  DEV_COMMANDS_TOP_LEVEL.instance_eval do
@@ -70,7 +83,7 @@ module Dev
70
83
 
71
84
  namespace :ruby do
72
85
  desc "Run all ruby tests against the #{application}'s codebase"
73
- task test: %w(init_docker up_no_deps) do
86
+ task test: %W(init_docker #{up_cmd}) do
74
87
  LOG.debug("Running all ruby tests in the #{application} codebase")
75
88
 
76
89
  options = []
@@ -6,6 +6,6 @@ module Dev
6
6
  # Use 'v.v.v.pre.alpha.v' for pre-release vesions
7
7
  # Use 'v.v.v.beta.v for beta versions
8
8
  # Use semantic versioning for any releases (https://semver.org/)
9
- VERSION = '2.1.16'.freeze
9
+ VERSION = '2.1.17.pre.alpha.2'.freeze
10
10
  end
11
11
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: firespring_dev_commands
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.16
4
+ version: 2.1.17.pre.alpha.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Firespring
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-05 00:00:00.000000000 Z
11
+ date: 2023-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -403,9 +403,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
403
403
  version: '3.1'
404
404
  required_rubygems_version: !ruby/object:Gem::Requirement
405
405
  requirements:
406
- - - ">="
406
+ - - ">"
407
407
  - !ruby/object:Gem::Version
408
- version: '0'
408
+ version: 1.3.1
409
409
  requirements: []
410
410
  rubygems_version: 3.4.10
411
411
  signing_key: