firespring_dev_commands 2.1.20.pre.alpha.1 → 2.1.20

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: 5e6f6e9665d308f1b5eaf8e583b58cec2aa6d8b7713467d4cf4fcd9b5344121e
4
- data.tar.gz: e90341c8c7504ab07a931a556a28efb69385f763b0867077815a429173406b7c
3
+ metadata.gz: 0f0890635dbc5e02fe76779902337c6435bafb6feca39615e44f6163e50e997e
4
+ data.tar.gz: 2f7aa3997ede91430a662be821f1c8b762cc2826ea2ae9db9961b960e08cb84b
5
5
  SHA512:
6
- metadata.gz: 885a57c44650a6b8341afab4368343245059ad095645f831725acf96b16c1f1cfc245cdeaceaed07e1ca25bbe925a4dcb824249cc6887e849915b4e10c655de5
7
- data.tar.gz: b8789921740596fcf49853e7e8d3baa5fde3506cfc90ba15580fdf15ed9e58afa7cf2bf35cbb0e8723a978b0503bb04d701eb11ad3ba238863140796fe090f78
6
+ metadata.gz: 555a9a43a8a2239ef92c32e8db031125135c280c208e2eef7a25298620f6f6e162b5e3f1de48ce250cf7eecd13fe0c025b7897f55ddb277551173f734a75ea8c
7
+ data.tar.gz: cc7b6953b961e75c67de30b4fb8f16aae19f915da42daa4a21028baf35a15f45e917b9c59b66fb267898106b5871cd6f913fe28e62a198dbd569c616b2c5ae0e
@@ -8,7 +8,7 @@ module Dev
8
8
  # Normalize the ruby platform to return a docker platform architecture format
9
9
  def determine_compute_architecture
10
10
  case RUBY_PLATFORM
11
- when /x86_64|amd64/
11
+ when /x86_64|amd64|x64-mingw/
12
12
  'linux/amd64' # 64-bit Intel/AMD architecture
13
13
  when /arm|aarch64/
14
14
  'linux/arm64' # ARM architecture
@@ -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
11
-
12
- # Allow for custom container path for the application
13
- def initialize(application, container_path: nil, local_path: nil, exclude: [])
10
+ attr_reader :php, :start_container_dependencies_on_test
11
+
12
+ # Create the templated rake tasks for the php 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
+ 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
11
-
12
- # Allow for custom container path for the application
13
- def initialize(application, container_path: nil, local_path: nil, exclude: [])
10
+ attr_reader :ruby, :start_container_dependencies_on_test
11
+
12
+ # Create the templated rake tasks for the ruby 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
+ 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.20.pre.alpha.1'.freeze
9
+ VERSION = '2.1.20'.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.20.pre.alpha.1
4
+ version: 2.1.20
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-08 00:00:00.000000000 Z
11
+ date: 2023-12-12 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: 1.3.1
408
+ version: '0'
409
409
  requirements: []
410
410
  rubygems_version: 3.4.10
411
411
  signing_key: