brut 0.21.0.pre.4 → 0.22.0.pre.1

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: 8cff0eb0b3ce46296da1c7045fa5a35374adb54559024074c4ca5e927c1a3ea7
4
- data.tar.gz: 2a7a04b47259bfc6f95cd8386e8f07040185aa1175d4c538de05412567e7b3dc
3
+ metadata.gz: ae86140851e4714417c118e6cf5560c060879fbe04e7051f5bc8dcc38ca36b80
4
+ data.tar.gz: 5984ae3588285b63de340d879fc134d5c98a14bef281afe19a68c1a23046e906
5
5
  SHA512:
6
- metadata.gz: 25ffd6054f5ac0385969b59ec549a31afcb1187c3dd2bf013bc50a7047880471ac03ad5720ce2f07bf0ed40bbd0ad951a1a196c34369da24cbfbcf79c24b5bfe
7
- data.tar.gz: 3c7ff73e3bbf9353e034ec7c8ed4174b52025df7976bc19fe3b846f28b6456d46ed875560237ef49418af4f60796c8e2510ea926e9f2ebfcb6cba4fa29d43888
6
+ metadata.gz: 1076d7440d1b17199f82c0f371e726f2c7fb9a42b9763c9df2e761bdba974e6ad395eb6ee16ad3f0e818cf638b15520e501ab77b0a15ca7f1cfff06ee6299c1c
7
+ data.tar.gz: ac8a4de20c8e30ac58927cfdebfbb5d1b7605107bc1ffa3aeae4981cbfc33aab1f78895c38c6a13a4352c1c33492c2f1ae11113dd9e1c65a26da571a9df0c3ba
@@ -279,25 +279,15 @@ class Brut::CLI::Apps::DB < Brut::CLI::Commands::BaseCommand
279
279
  def description = "Drop, re-create, and run migrations, effecitvely rebuilding the entire database"
280
280
  def default_rack_env = "development"
281
281
  def bootstrap? = false
282
- def opts = [
283
- [ "--seed", "Load seed data after rebuild" ]
284
- ]
285
282
  def sub_commands(execution_context)
286
- default_commands = [
283
+ [
287
284
  Drop.new,
288
285
  Create.new,
289
286
  Migrate.new,
290
287
  ]
291
- if execution_context.options.seed?
292
- default_commands + [ Seed.new ]
293
- else
294
- default_commands
295
- end
296
288
  end
297
289
  end
298
290
 
299
- # XXX
300
-
301
291
  class Seed < Brut::CLI::Commands::BaseCommand
302
292
  def description = "Load seed data into the database"
303
293
  def default_rack_env = "development"
@@ -36,7 +36,7 @@ class Brut::CLI::Apps::Deploy::DeployConfig
36
36
  # Generally, do not override this since it configures your
37
37
  # web process. Override {#additional_processes} instead.
38
38
  def processes = [
39
- process_description("web", ["bundle", "exec", "bin/run"])
39
+ process_description("web", ["bundle", "exec", "bin/run"]),
40
40
  ] + (additional_processes || [])
41
41
 
42
42
  private def process_description(name,cmd)
@@ -83,7 +83,7 @@ class Brut::CLI::Apps::Deploy < Brut::CLI::Commands::BaseCommand
83
83
  def registry_hostname = "registry.heroku.com"
84
84
 
85
85
  def processes = super + [
86
- process_description("release", "bin/release")
86
+ process_description("release", "bin/release"),
87
87
  ]
88
88
 
89
89
  def each_dockerfile(&block)
@@ -214,7 +214,7 @@ class Brut::CLI::Apps::Deploy < Brut::CLI::Commands::BaseCommand
214
214
  wrong[process_description] ||= {}
215
215
  wrong[process_description][:image] = {
216
216
  expected: expected_image_name,
217
- actual: image
217
+ actual: image,
218
218
  }
219
219
  failed = true
220
220
  end
@@ -222,7 +222,7 @@ class Brut::CLI::Apps::Deploy < Brut::CLI::Commands::BaseCommand
222
222
  wrong[process_description] ||= {}
223
223
  wrong[process_description][:command] = {
224
224
  expected: process_description.cmd,
225
- actual: cmd
225
+ actual: cmd,
226
226
  }
227
227
  failed = true
228
228
  end
@@ -6,7 +6,7 @@ class Brut::CLI::Commands::CompoundCommand < Brut::CLI::Commands::BaseCommand
6
6
  # commands will be executed with *this* commands `Brut::CLI::Commands::ExecutionContext`, so these commands
7
7
  # should all be able to work with whatever command line arguments and `argv` would be provided.
8
8
  #
9
- # @param [Array<Brut::CLI::Commands::BaseCommand>|nil] The list of commands to run when
9
+ # @param [Array<Brut::CLI::Commands::BaseCommand>|nil] commands The list of commands to run when
10
10
  # this command is executed. If nil, it is assumed you have overriden `commands` to
11
11
  # provide the list dynamically.
12
12
  def initialize(commands=nil)
data/lib/brut/version.rb CHANGED
@@ -1,4 +1,12 @@
1
1
  module Brut
2
2
  # @!visibility private
3
- VERSION = "0.21.0.pre.4"
3
+ #
4
+ # Gems:
5
+ # Semantic Versioning MAJOR.MINOR.PATCH
6
+ # Or pre-release X.Y.Z.pre.Q
7
+ #
8
+ # Node Modules:
9
+ # Semantic Versioning MAJOR.MINOR.PATCH
10
+ # Or pre-release X.Y.Z-pre.Q
11
+ VERSION = "0.22.0.pre.1"
4
12
  end
@@ -103,7 +103,7 @@ RUN npm clean-install --no-audit --no-fund --verbose
103
103
  COPY . .
104
104
 
105
105
  # Build all assets
106
- RUN brut build-assets && \
106
+ RUN BRUT_DEBUG=true bundle exec brut --log-level=debug build-assets all && \
107
107
  rm -rf node_modules
108
108
 
109
109
  # We are now switching back to building the image that will be deployed.
@@ -2,10 +2,6 @@
2
2
  # You own and maintain this file. It is `require`d by brut deploy docker
3
3
  class AppDeployConfig < Brut::CLI::Apps::Deploy::Heroku::DeployConfig
4
4
 
5
- # Can return a Docker platform is your deployment platform is not
6
- # linux/amd64. Note that --platform will override this value.
7
- def platform = nil
8
-
9
5
  # Return an array of ProcessDescription instances, that you can
10
6
  # create with the `process_description` method.
11
7
  #
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brut
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.21.0.pre.4
4
+ version: 0.22.0.pre.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Bryant Copeland
@@ -848,16 +848,16 @@ require_paths:
848
848
  - lib
849
849
  required_ruby_version: !ruby/object:Gem::Requirement
850
850
  requirements:
851
- - - ">="
851
+ - - "~>"
852
852
  - !ruby/object:Gem::Version
853
- version: '0'
853
+ version: '4.0'
854
854
  required_rubygems_version: !ruby/object:Gem::Requirement
855
855
  requirements:
856
856
  - - ">="
857
857
  - !ruby/object:Gem::Version
858
858
  version: '0'
859
859
  requirements: []
860
- rubygems_version: 4.0.8
860
+ rubygems_version: 4.0.14
861
861
  specification_version: 4
862
862
  summary: Web Framework Built around Ruby, Web Standards, Simplicity, and Object-Orientation
863
863
  test_files: []