boxing 0.6.4 → 0.7.2

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: fd427826998bb9df83b3955139e558ce7138d290714c1305950f2ef2a8a51b35
4
- data.tar.gz: 353786ff330d319bce5a5d84c21f594e7b7c7c6314e6afc6a23b55a64316c20c
3
+ metadata.gz: b091fd5571f50dba6d62046e28c106088420a71c600f9a6727fc1404a84a2d19
4
+ data.tar.gz: 575167c02a814facdbb558a7836c9e29f15c9f058e37cd71a0828fe011655840
5
5
  SHA512:
6
- metadata.gz: d1ae4a276fff20bf0730a7cc6988d1f6294446897976afc832d769389416097410a37e606007924547477187d1ba3bff64381c4090b6d6636956f290ce9738ed
7
- data.tar.gz: c466465e8b07c81728df9dc742ab372ea45b438764780d5936edb47d7b8129258653025e69e61ecfdd84950b8e852e92af3ef3d84d26e3495642d5fe0e6f560f
6
+ metadata.gz: 282bfa9bfa4fa4da1e43987fc1ed902403a9de8ea74b4f3607f04855edab1557fcc2a791c4033dcc0dc072a87d341b4d519853315a64d5e8882e794199030b62
7
+ data.tar.gz: 98d5df84a6455d92331ab48da7ebdd5d2aebacd2ba3cafac3b47e3e82fa7603477ab7f7a75507b0db51976ba3e970184b014097a49db7eacd404a91282c4945d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- boxing (0.6.4)
4
+ boxing (0.7.2)
5
5
  bundler (~> 2.0)
6
6
  thor (~> 1.0)
7
7
 
@@ -9,51 +9,51 @@ GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
11
  ast (2.4.2)
12
- bundler-audit (0.9.0.1)
12
+ bundler-audit (0.9.1)
13
13
  bundler (>= 1.2.0, < 3)
14
14
  thor (~> 1.0)
15
15
  childprocess (4.1.0)
16
- diff-lcs (1.4.4)
16
+ diff-lcs (1.5.0)
17
17
  docile (1.4.0)
18
18
  iniparse (1.5.0)
19
- overcommit (0.58.0)
19
+ overcommit (0.59.1)
20
20
  childprocess (>= 0.6.3, < 5)
21
21
  iniparse (~> 1.4)
22
22
  rexml (~> 3.2)
23
- parallel (1.21.0)
24
- parser (3.0.3.2)
23
+ parallel (1.22.1)
24
+ parser (3.1.2.0)
25
25
  ast (~> 2.4.1)
26
- rainbow (3.0.0)
26
+ rainbow (3.1.1)
27
27
  rake (13.0.6)
28
- regexp_parser (2.2.0)
28
+ regexp_parser (2.4.0)
29
29
  rexml (3.2.5)
30
- rspec (3.10.0)
31
- rspec-core (~> 3.10.0)
32
- rspec-expectations (~> 3.10.0)
33
- rspec-mocks (~> 3.10.0)
34
- rspec-core (3.10.1)
35
- rspec-support (~> 3.10.0)
36
- rspec-expectations (3.10.1)
30
+ rspec (3.11.0)
31
+ rspec-core (~> 3.11.0)
32
+ rspec-expectations (~> 3.11.0)
33
+ rspec-mocks (~> 3.11.0)
34
+ rspec-core (3.11.0)
35
+ rspec-support (~> 3.11.0)
36
+ rspec-expectations (3.11.0)
37
37
  diff-lcs (>= 1.2.0, < 2.0)
38
- rspec-support (~> 3.10.0)
39
- rspec-mocks (3.10.2)
38
+ rspec-support (~> 3.11.0)
39
+ rspec-mocks (3.11.1)
40
40
  diff-lcs (>= 1.2.0, < 2.0)
41
- rspec-support (~> 3.10.0)
42
- rspec-support (3.10.3)
43
- rubocop (1.23.0)
41
+ rspec-support (~> 3.11.0)
42
+ rspec-support (3.11.0)
43
+ rubocop (1.30.0)
44
44
  parallel (~> 1.10)
45
- parser (>= 3.0.0.0)
45
+ parser (>= 3.1.0.0)
46
46
  rainbow (>= 2.2.2, < 4.0)
47
47
  regexp_parser (>= 1.8, < 3.0)
48
- rexml
49
- rubocop-ast (>= 1.12.0, < 2.0)
48
+ rexml (>= 3.2.5, < 4.0)
49
+ rubocop-ast (>= 1.18.0, < 2.0)
50
50
  ruby-progressbar (~> 1.7)
51
51
  unicode-display_width (>= 1.4.0, < 3.0)
52
- rubocop-ast (1.15.0)
53
- parser (>= 3.0.1.1)
52
+ rubocop-ast (1.18.0)
53
+ parser (>= 3.1.1.0)
54
54
  rubocop-rake (0.6.0)
55
55
  rubocop (~> 1.0)
56
- rubocop-rspec (2.6.0)
56
+ rubocop-rspec (2.11.1)
57
57
  rubocop (~> 1.19)
58
58
  ruby-progressbar (1.11.0)
59
59
  simplecov (0.21.2)
@@ -61,8 +61,8 @@ GEM
61
61
  simplecov-html (~> 0.11)
62
62
  simplecov_json_formatter (~> 0.1)
63
63
  simplecov-html (0.12.3)
64
- simplecov_json_formatter (0.1.3)
65
- thor (1.1.0)
64
+ simplecov_json_formatter (0.1.4)
65
+ thor (1.2.1)
66
66
  unicode-display_width (2.1.0)
67
67
 
68
68
  PLATFORMS
@@ -82,4 +82,4 @@ DEPENDENCIES
82
82
  simplecov
83
83
 
84
84
  BUNDLED WITH
85
- 2.2.32
85
+ 2.3.14
data/README.md CHANGED
@@ -121,6 +121,8 @@ Boxing.config do |c|
121
121
  end
122
122
  ```
123
123
 
124
+ > When building the image, you have to add `--build-arg RAILS_MASTER_KEY=...` to set your production key to compile it correctly.
125
+
124
126
  ### Health Check
125
127
 
126
128
  ```ruby
@@ -50,7 +50,7 @@ module Boxing
50
50
  USER_PATH = Pathname.new(Gem.user_home).join('.local/share/ruby-boxing-db')
51
51
 
52
52
  # @since 0.3.0
53
- DEFAULT_PATH = ENV['BOXING_DB'] || USER_PATH
53
+ DEFAULT_PATH = ENV.fetch('BOXING_DB', USER_PATH)
54
54
 
55
55
  # @since 0.3.0
56
56
  attr_reader :path
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Boxing
4
- VERSION = '0.6.4'
4
+ VERSION = '0.7.2'
5
5
  end
@@ -15,19 +15,20 @@ RUN gem install bundler:<%= Bundler::VERSION %> \
15
15
  && bundle config --local deployment 'true' \
16
16
  && bundle config --local frozen 'true' \
17
17
  && bundle config --local no-cache 'true' \
18
- && bundle config --local system 'true' \
19
18
  && bundle config --local without 'development test' \
20
19
  && bundle install -j "$(getconf _NPROCESSORS_ONLN)" \
21
- && find /${APP_ROOT}/vendor/bundle -type f -name '*.c' -delete \
22
- && find /${APP_ROOT}/vendor/bundle -type f -name '*.o' -delete \
23
- && find /usr/local/bundle -type f -name '*.c' -delete \
24
- && find /usr/local/bundle -type f -name '*.o' -delete \
25
- && rm -rf /usr/local/bundle/cache/*.gem
20
+ && find ${APP_ROOT}/vendor/bundle -type f -name '*.c' -delete \
21
+ && find ${APP_ROOT}/vendor/bundle -type f -name '*.h' -delete \
22
+ && find ${APP_ROOT}/vendor/bundle -type f -name '*.o' -delete \
23
+ && find ${APP_ROOT}/vendor/bundle -type f -name '*.gem' -delete
26
24
 
27
25
  <%- if config.assets_precompile -%>
28
26
  FROM node:${NODE_VERSION}-alpine as node
29
27
  FROM ruby:${RUBY_VERSION}-alpine as assets
30
28
  ARG APP_ROOT
29
+ ARG RAILS_MASTER_KEY
30
+
31
+ ENV RAILS_MASTER_KEY $RAILS_MASTER_KEY
31
32
 
32
33
  <%- if packages.select(&:runtime?).any? -%>
33
34
  RUN apk add --no-cache <%= packages.select(&:runtime?).join(' ') %> yarn
@@ -37,7 +38,7 @@ COPY --from=node /usr/local/bin/node /usr/local/bin/node
37
38
 
38
39
  COPY --from=gem /usr/local/bundle/config /usr/local/bundle/config
39
40
  COPY --from=gem /usr/local/bundle /usr/local/bundle
40
- COPY --from=gem /${APP_ROOT}/vendor/bundle /${APP_ROOT}/vendor/bundle
41
+ COPY --from=gem ${APP_ROOT}/vendor/bundle ${APP_ROOT}/vendor/bundle
41
42
 
42
43
  RUN mkdir -p ${APP_ROOT}
43
44
  COPY . ${APP_ROOT}
@@ -56,7 +57,7 @@ RUN apk add --no-cache <%= packages.select(&:runtime?).join(' ') %>
56
57
  <%- end -%>
57
58
  COPY --from=gem /usr/local/bundle/config /usr/local/bundle/config
58
59
  COPY --from=gem /usr/local/bundle /usr/local/bundle
59
- COPY --from=gem /${APP_ROOT}/vendor/bundle /${APP_ROOT}/vendor/bundle
60
+ COPY --from=gem ${APP_ROOT}/vendor/bundle ${APP_ROOT}/vendor/bundle
60
61
 
61
62
  RUN mkdir -p ${APP_ROOT}
62
63
 
@@ -73,7 +74,8 @@ COPY . ${APP_ROOT}
73
74
 
74
75
  ARG REVISION
75
76
  ENV REVISION $REVISION
76
- RUN echo $REVISION > ${SERVER_ROOT}/REVISION
77
+ ENV COMMIT_SHORT_SHA $REVISION
78
+ RUN echo "${REVISION}" > ${APP_ROOT}/REVISION
77
79
 
78
80
  # Apply Execute Permission
79
81
  RUN adduser -h ${APP_ROOT} -D -s /bin/nologin ruby ruby && \
@@ -33,6 +33,8 @@ tmp/*
33
33
 
34
34
  # Frontend
35
35
  node_modules/
36
+ /app/assets/builds/*
37
+ !/app/assets/builds/.keep
36
38
 
37
39
  # Licensed
38
40
  .licensed.yml
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.4
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - 蒼時弦也
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-02-22 00:00:00.000000000 Z
11
+ date: 2022-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -91,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
91
  - !ruby/object:Gem::Version
92
92
  version: '0'
93
93
  requirements: []
94
- rubygems_version: 3.2.26
94
+ rubygems_version: 3.1.6
95
95
  signing_key:
96
96
  specification_version: 4
97
97
  summary: The zero-configuration Dockerfile generator for Ruby