boxing 0.6.0 → 0.6.4

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: cd1ab96ae737b37be480b3d7d862a5925b951062f7ccae22eb200d26e55f3a14
4
- data.tar.gz: 8cd2271e0cb3fc6736c2440f978bdee63b0ba43c90a57596f9064f5b576788ae
3
+ metadata.gz: fd427826998bb9df83b3955139e558ce7138d290714c1305950f2ef2a8a51b35
4
+ data.tar.gz: 353786ff330d319bce5a5d84c21f594e7b7c7c6314e6afc6a23b55a64316c20c
5
5
  SHA512:
6
- metadata.gz: 0c4c43055ed9973e21b4e1660fff4bc5f6cd870f08f82339a0ea88be4edde2914c2e37086a5bf92a48e493c12fb2ba20c68bb28c936fcd2e3f77a6fe5e5edf29
7
- data.tar.gz: 25dd924fc89a7aa20361acbcdc2c52b0e320c007308ac1a79a227df9938c2b575f7ee468a0dac1dd5cda8d17a820ea0c6e2fcb18de3ad7e7c15c5fa8746205cd
6
+ metadata.gz: d1ae4a276fff20bf0730a7cc6988d1f6294446897976afc832d769389416097410a37e606007924547477187d1ba3bff64381c4090b6d6636956f290ce9738ed
7
+ data.tar.gz: c466465e8b07c81728df9dc742ab372ea45b438764780d5936edb47d7b8129258653025e69e61ecfdd84950b8e852e92af3ef3d84d26e3495642d5fe0e6f560f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- boxing (0.6.0)
4
+ boxing (0.6.4)
5
5
  bundler (~> 2.0)
6
6
  thor (~> 1.0)
7
7
 
data/lib/boxing/config.rb CHANGED
@@ -19,7 +19,7 @@ module Boxing
19
19
  @name = 'myapp'
20
20
  @root = '/srv/app'
21
21
  @port = 9292
22
- @health_path = '/status'
22
+ @health_check_path = '/status'
23
23
  @assets_precompile = false
24
24
 
25
25
  instance_exec(self, &block) if defined?(yield)
@@ -77,12 +77,11 @@ module Boxing
77
77
  #
78
78
  # @since 0.6.0
79
79
  def extra_packages
80
- Array[config.build_packages, config.runtime_packages].compact.flat_map do |name|
81
- mode = 0
82
- mode |= Package::BUILD if config.build_packages&.include?(name)
83
- mode |= Package::RUNTIME if config.runtime_packages&.include?(name)
84
- Package.new(name, mode: mode)
85
- end
80
+ Array[config.build_packages, config.runtime_packages].flatten.map do |name|
81
+ next if name.nil?
82
+
83
+ Package.new(name, mode: mode_of(name))
84
+ end.compact
86
85
  end
87
86
 
88
87
  # Return node.js version
@@ -104,5 +103,17 @@ module Boxing
104
103
  def to_binding
105
104
  binding
106
105
  end
106
+
107
+ # Check Package Mode
108
+ #
109
+ # @return [Number]
110
+ #
111
+ # @since 0.6.3
112
+ def mode_of(name)
113
+ mode = 0
114
+ mode |= Package::BUILD if config.build_packages&.include?(name)
115
+ mode |= Package::RUNTIME if config.runtime_packages&.include?(name)
116
+ mode
117
+ end
107
118
  end
108
119
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Boxing
4
- VERSION = '0.6.0'
4
+ VERSION = '0.6.4'
5
5
  end
@@ -68,7 +68,8 @@ ENV RAILS_SERVE_STATIC_FILES=yes
68
68
  ENV APP_ROOT=$APP_ROOT
69
69
 
70
70
  COPY . ${APP_ROOT}
71
- COPY --from=assets /${APP_ROOT}/public /${APP_ROOT}/public
71
+ <%- if config.assets_precompile -%>COPY --from=assets /${APP_ROOT}/public /${APP_ROOT}/public
72
+ <%- end -%>
72
73
 
73
74
  ARG REVISION
74
75
  ENV REVISION $REVISION
@@ -29,6 +29,7 @@ rspec.xml
29
29
  # Rails
30
30
  log/*
31
31
  tmp/*
32
+ /config/master.key
32
33
 
33
34
  # Frontend
34
35
  node_modules/
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: boxing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - 蒼時弦也
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-02-14 00:00:00.000000000 Z
11
+ date: 2022-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler