firespring_dev_commands 3.1.6.pre.alpha.2 → 3.1.6.pre.alpha.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 +4 -4
- data/lib/firespring_dev_commands/templates/docker/node/application.rb +14 -8
- data/lib/firespring_dev_commands/templates/docker/php/application.rb +14 -9
- data/lib/firespring_dev_commands/templates/docker/ruby/application.rb +14 -9
- data/lib/firespring_dev_commands/version.rb +1 -1
- 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: eaabe6701d7e72d50517feb2289d5aa492930e974ab6c24e95f466d2c1586dd0
         | 
| 4 | 
            +
              data.tar.gz: 55fd567b433a4243039f0527cd12168b0ce3b50df75b3d0c8343f9b7daf1133c
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: e5d396bc7373909c02bbdb2f615efc1a834f0e865b664dc58aa16565ca26522159f7dcae1835f7ecda2c06f3e5a18924574034f66de1f3d8801bbcc36ee1efac
         | 
| 7 | 
            +
              data.tar.gz: 4bb03d8ee7623b4f8acc5dd3319c4739412912a51b4edd68646d11cc6060094eb3d70b375d157d92c3bc27fcb4976c665b2ef7d628a7374b99a4e7d8abde574b
         | 
| @@ -74,7 +74,8 @@ module Dev | |
| 74 74 | 
             
                                # Run the lint command
         | 
| 75 75 | 
             
                                options = []
         | 
| 76 76 | 
             
                                options << '-T' if Dev::Common.new.running_codebuild?
         | 
| 77 | 
            -
                                 | 
| 77 | 
            +
                                environment = ['OPTS']
         | 
| 78 | 
            +
                                Dev::Docker::Compose.new(services: application, options:, environment:).exec(*node.lint_command)
         | 
| 78 79 | 
             
                              ensure
         | 
| 79 80 | 
             
                                # Copy any defined artifacts back
         | 
| 80 81 | 
             
                                container = Dev::Docker::Compose.new.container_by_name(application)
         | 
| @@ -90,7 +91,8 @@ module Dev | |
| 90 91 |  | 
| 91 92 | 
             
                                  options = []
         | 
| 92 93 | 
             
                                  options << '-T' if Dev::Common.new.running_codebuild?
         | 
| 93 | 
            -
                                   | 
| 94 | 
            +
                                  environment = ['OPTS']
         | 
| 95 | 
            +
                                  Dev::Docker::Compose.new(services: application, options:, environment:).exec(*node.lint_fix_command)
         | 
| 94 96 | 
             
                                end
         | 
| 95 97 | 
             
                              end
         | 
| 96 98 | 
             
                            end
         | 
| @@ -134,7 +136,8 @@ module Dev | |
| 134 136 | 
             
                                  # Run the test command
         | 
| 135 137 | 
             
                                  options = []
         | 
| 136 138 | 
             
                                  options << '-T' if Dev::Common.new.running_codebuild?
         | 
| 137 | 
            -
                                   | 
| 139 | 
            +
                                  environment = %w(OPTS TESTS)
         | 
| 140 | 
            +
                                  Dev::Docker::Compose.new(services: application, options:, environment:).exec(*node.test_command)
         | 
| 138 141 | 
             
                                  node.check_test_coverage(application:)
         | 
| 139 142 | 
             
                                ensure
         | 
| 140 143 | 
             
                                  # Copy any defined artifacts back
         | 
| @@ -215,18 +218,21 @@ module Dev | |
| 215 218 | 
             
                                   "\n\tuse IGNORELIST=(comma delimited list of ids) removes the entry from the list." \
         | 
| 216 219 | 
             
                                   "\n\t(optional) use OPTS=... to pass additional options to the command"
         | 
| 217 220 | 
             
                              task audit: %w(init_docker up_no_deps) do
         | 
| 218 | 
            -
                                opts = []
         | 
| 219 | 
            -
                                opts << '-T' if Dev::Common.new.running_codebuild?
         | 
| 220 | 
            -
             | 
| 221 221 | 
             
                                # Run the audit command and retrieve the results
         | 
| 222 | 
            -
                                 | 
| 222 | 
            +
                                options = []
         | 
| 223 | 
            +
                                options << '-T' if Dev::Common.new.running_codebuild?
         | 
| 224 | 
            +
                                environment = ['OPTS']
         | 
| 225 | 
            +
                                data = Dev::Docker::Compose.new(services: application, options:, environment:, capture: true).exec(*node.audit_command)
         | 
| 223 226 | 
             
                                Dev::Node::Audit.new(data).to_report.check
         | 
| 224 227 | 
             
                              end
         | 
| 225 228 |  | 
| 226 229 | 
             
                              namespace :audit do
         | 
| 227 230 | 
             
                                desc 'Run NPM Audit fix command'
         | 
| 228 231 | 
             
                                task fix: %w(init_docker up_no_deps) do
         | 
| 229 | 
            -
                                   | 
| 232 | 
            +
                                  options = []
         | 
| 233 | 
            +
                                  options << '-T' if Dev::Common.new.running_codebuild?
         | 
| 234 | 
            +
                                  environment = ['OPTS']
         | 
| 235 | 
            +
                                  Dev::Docker::Compose.new(services: application, options:, environment:).exec(*node.audit_fix_command)
         | 
| 230 236 | 
             
                                end
         | 
| 231 237 | 
             
                              end
         | 
| 232 238 | 
             
                            end
         | 
| @@ -118,7 +118,8 @@ module Dev | |
| 118 118 | 
             
                                # Run the lint command
         | 
| 119 119 | 
             
                                options = []
         | 
| 120 120 | 
             
                                options << '-T' if Dev::Common.new.running_codebuild?
         | 
| 121 | 
            -
                                 | 
| 121 | 
            +
                                environment = ['OPTS']
         | 
| 122 | 
            +
                                Dev::Docker::Compose.new(services: application, options:, environment:).exec(*php.lint_command)
         | 
| 122 123 | 
             
                              ensure
         | 
| 123 124 | 
             
                                # Copy any defined artifacts back
         | 
| 124 125 | 
             
                                container = Dev::Docker::Compose.new.container_by_name(application)
         | 
| @@ -135,7 +136,8 @@ module Dev | |
| 135 136 | 
             
                                  # Run the lint fix command
         | 
| 136 137 | 
             
                                  options = []
         | 
| 137 138 | 
             
                                  options << '-T' if Dev::Common.new.running_codebuild?
         | 
| 138 | 
            -
                                   | 
| 139 | 
            +
                                  environment = ['OPTS']
         | 
| 140 | 
            +
                                  Dev::Docker::Compose.new(services: application, options:, environment:).exec(*php.lint_fix_command)
         | 
| 139 141 | 
             
                                end
         | 
| 140 142 | 
             
                              end
         | 
| 141 143 | 
             
                            end
         | 
| @@ -179,7 +181,8 @@ module Dev | |
| 179 181 | 
             
                                  # Run the test command
         | 
| 180 182 | 
             
                                  options = []
         | 
| 181 183 | 
             
                                  options << '-T' if Dev::Common.new.running_codebuild?
         | 
| 182 | 
            -
                                   | 
| 184 | 
            +
                                  environment = %w(OPTS TESTS)
         | 
| 185 | 
            +
                                  Dev::Docker::Compose.new(services: application, options:, environment:).exec(*php.test_command)
         | 
| 183 186 | 
             
                                  php.check_test_coverage(application:)
         | 
| 184 187 | 
             
                                ensure
         | 
| 185 188 | 
             
                                  # Copy any defined artifacts back
         | 
| @@ -232,7 +235,8 @@ module Dev | |
| 232 235 | 
             
                            namespace :php do
         | 
| 233 236 | 
             
                              desc 'Install all composer packages'
         | 
| 234 237 | 
             
                              task install: %w(init_docker up_no_deps) do
         | 
| 235 | 
            -
                                 | 
| 238 | 
            +
                                environment = ['OPTS']
         | 
| 239 | 
            +
                                Dev::Docker::Compose.new(services: application, environment:).exec(*php.install_command)
         | 
| 236 240 | 
             
                              end
         | 
| 237 241 | 
             
                            end
         | 
| 238 242 | 
             
                          end
         | 
| @@ -260,11 +264,11 @@ module Dev | |
| 260 264 | 
             
                                   "\n\tuse IGNORELIST=(comma delimited list of cwe numbers) removes the entry from the list." \
         | 
| 261 265 | 
             
                                   "\n\t(optional) use OPTS=... to pass additional options to the command"
         | 
| 262 266 | 
             
                              task audit: %w(init_docker up_no_deps) do
         | 
| 263 | 
            -
                                opts = []
         | 
| 264 | 
            -
                                opts << '-T' if Dev::Common.new.running_codebuild?
         | 
| 265 | 
            -
             | 
| 266 267 | 
             
                                # Run the audit command and retrieve the results
         | 
| 267 | 
            -
                                 | 
| 268 | 
            +
                                options = []
         | 
| 269 | 
            +
                                options << '-T' if Dev::Common.new.running_codebuild?
         | 
| 270 | 
            +
                                environment = ['OPTS']
         | 
| 271 | 
            +
                                data = Dev::Docker::Compose.new(services: application, options:, environment:, capture: true).exec(*php.audit_command)
         | 
| 268 272 | 
             
                                Dev::Php::Audit.new(data).to_report.check
         | 
| 269 273 | 
             
                              end
         | 
| 270 274 |  | 
| @@ -272,7 +276,8 @@ module Dev | |
| 272 276 | 
             
                              #   desc 'Fix the composer vulnerabilities that were found'
         | 
| 273 277 | 
             
                              #   task fix: %w(init_docker up_no_deps) do
         | 
| 274 278 | 
             
                              #     raise 'not implemented'
         | 
| 275 | 
            -
                              #     #  | 
| 279 | 
            +
                              #     # environment = ['OPTS']
         | 
| 280 | 
            +
                              #     # Dev::Docker::Compose.new(services: application, environment:).exec(*php.audit_fix_command)
         | 
| 276 281 | 
             
                              #   end
         | 
| 277 282 | 
             
                              # end
         | 
| 278 283 | 
             
                            end
         | 
| @@ -74,7 +74,8 @@ module Dev | |
| 74 74 | 
             
                                # Run the lint command
         | 
| 75 75 | 
             
                                options = []
         | 
| 76 76 | 
             
                                options << '-T' if Dev::Common.new.running_codebuild?
         | 
| 77 | 
            -
                                 | 
| 77 | 
            +
                                environment = ['OPTS']
         | 
| 78 | 
            +
                                Dev::Docker::Compose.new(services: application, options:, environment:).exec(*ruby.lint_command)
         | 
| 78 79 | 
             
                              ensure
         | 
| 79 80 | 
             
                                # Copy any defined artifacts back
         | 
| 80 81 | 
             
                                container = Dev::Docker::Compose.new.container_by_name(application)
         | 
| @@ -91,7 +92,8 @@ module Dev | |
| 91 92 | 
             
                                  # Run the lint fix command
         | 
| 92 93 | 
             
                                  options = []
         | 
| 93 94 | 
             
                                  options << '-T' if Dev::Common.new.running_codebuild?
         | 
| 94 | 
            -
                                   | 
| 95 | 
            +
                                  environment = ['OPTS']
         | 
| 96 | 
            +
                                  Dev::Docker::Compose.new(services: application, options:, environment:).exec(*ruby.lint_fix_command)
         | 
| 95 97 | 
             
                                end
         | 
| 96 98 | 
             
                              end
         | 
| 97 99 | 
             
                            end
         | 
| @@ -134,7 +136,8 @@ module Dev | |
| 134 136 |  | 
| 135 137 | 
             
                                  options = []
         | 
| 136 138 | 
             
                                  options << '-T' if Dev::Common.new.running_codebuild?
         | 
| 137 | 
            -
                                   | 
| 139 | 
            +
                                  environment = %w(OPTS TESTS)
         | 
| 140 | 
            +
                                  Dev::Docker::Compose.new(services: application, options:, environment:).exec(*ruby.test_command)
         | 
| 138 141 | 
             
                                  ruby.check_test_coverage(application:)
         | 
| 139 142 | 
             
                                ensure
         | 
| 140 143 | 
             
                                  # Copy any defined artifacts back
         | 
| @@ -187,7 +190,8 @@ module Dev | |
| 187 190 | 
             
                            namespace :ruby do
         | 
| 188 191 | 
             
                              desc 'Install all bundled gems'
         | 
| 189 192 | 
             
                              task install: %w(init_docker up_no_deps) do
         | 
| 190 | 
            -
                                 | 
| 193 | 
            +
                                environment = ['OPTS']
         | 
| 194 | 
            +
                                Dev::Docker::Compose.new(services: application, environment:).exec(*ruby.install_command)
         | 
| 191 195 | 
             
                              end
         | 
| 192 196 | 
             
                            end
         | 
| 193 197 | 
             
                          end
         | 
| @@ -215,11 +219,11 @@ module Dev | |
| 215 219 | 
             
                                   "\n\tuse IGNORELIST=(comma delimited list of ids) removes the entry from the list." \
         | 
| 216 220 | 
             
                                   "\n\t(optional) use OPTS=... to pass additional options to the command"
         | 
| 217 221 | 
             
                              task audit: %w(init_docker up_no_deps) do
         | 
| 218 | 
            -
                                opts = []
         | 
| 219 | 
            -
                                opts << '-T' if Dev::Common.new.running_codebuild?
         | 
| 220 | 
            -
             | 
| 221 222 | 
             
                                # Retrieve results of the scan.
         | 
| 222 | 
            -
                                 | 
| 223 | 
            +
                                options = []
         | 
| 224 | 
            +
                                options << '-T' if Dev::Common.new.running_codebuild?
         | 
| 225 | 
            +
                                environment = ['OPTS']
         | 
| 226 | 
            +
                                data = Dev::Docker::Compose.new(services: application, options:, environment:, capture: true).exec(*ruby.audit_command)
         | 
| 223 227 | 
             
                                Dev::Ruby::Audit.new(data).to_report.check
         | 
| 224 228 | 
             
                              end
         | 
| 225 229 |  | 
| @@ -227,7 +231,8 @@ module Dev | |
| 227 231 | 
             
                              #   desc 'Run NPM Audit fix command'
         | 
| 228 232 | 
             
                              #   task fix: %w(init_docker up_no_deps) do
         | 
| 229 233 | 
             
                              #     raise 'not implemented'
         | 
| 230 | 
            -
                              #     #  | 
| 234 | 
            +
                              #     # environment = ['OPTS']
         | 
| 235 | 
            +
                              #     # Dev::Docker::Compose.new(services: application, environment:).exec(*ruby.audit_fix_command)
         | 
| 231 236 | 
             
                              #   end
         | 
| 232 237 | 
             
                              # end
         | 
| 233 238 | 
             
                            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: 3.1.6.pre.alpha. | 
| 4 | 
            +
              version: 3.1.6.pre.alpha.3
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Firespring
         | 
| 8 8 | 
             
            autorequire:
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2024-08- | 
| 11 | 
            +
            date: 2024-08-13 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: activesupport
         |