dockerfile-rails 1.6.0 → 1.6.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 563c6043b8c8890edd114a6fe77b543dc745a43e18f59585ae945dbbe9a31bb2
|
4
|
+
data.tar.gz: 16ebea3a573d36330c4b38105d3d49391b7ca751f737298bda61bd70c41df35d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62bed853707b519c58e8e242cf7b3a0011f82fcd4523799ce35942e2d960df750483c8cf9f40face14c1cb356d6852cc117559afb903b5acebd4f0e5d637fbf1
|
7
|
+
data.tar.gz: d0029262a06767acebfbf93b5cc46d46550098191167733717eba7f23e4e9631fe6cac13651bb1cbff2a4197a7114f457ccea56a99f9535e5b7e9a82699fe24d
|
@@ -415,7 +415,8 @@ private
|
|
415
415
|
|
416
416
|
def using_node?
|
417
417
|
return @using_node if @using_node != nil
|
418
|
-
|
418
|
+
return if using_bun?
|
419
|
+
@using_node = File.exist?("package.json")
|
419
420
|
end
|
420
421
|
|
421
422
|
def using_bun?
|
@@ -455,7 +456,7 @@ private
|
|
455
456
|
end
|
456
457
|
|
457
458
|
def parallel?
|
458
|
-
using_node? && options.parallel
|
459
|
+
(using_node? || using_bun?) && options.parallel
|
459
460
|
end
|
460
461
|
|
461
462
|
def has_mysql_gem?
|
@@ -622,7 +623,6 @@ private
|
|
622
623
|
|
623
624
|
unless using_execjs? || using_puppeteer?
|
624
625
|
packages << "curl"
|
625
|
-
packages << "unzip" if using_bun?
|
626
626
|
end
|
627
627
|
|
628
628
|
# module build process depends on Python, and debian changed
|
@@ -647,6 +647,10 @@ private
|
|
647
647
|
end
|
648
648
|
end
|
649
649
|
|
650
|
+
if using_bun?
|
651
|
+
packages += %w(curl unzip)
|
652
|
+
end
|
653
|
+
|
650
654
|
if options.alpine?
|
651
655
|
alpinize(packages)
|
652
656
|
else
|
@@ -143,7 +143,7 @@ COPY --from=node /usr/local/node /usr/local/node
|
|
143
143
|
ENV PATH=/usr/local/node/bin:$PATH
|
144
144
|
<% end -%>
|
145
145
|
|
146
|
-
<% elsif using_node? -%>
|
146
|
+
<% elsif using_node? || using_bun? -%>
|
147
147
|
<%= render partial: 'npm_install', locals: {sources: Dir[*%w(.npmrc .yarnrc package.json package-lock.json yarn.lock bun.lockb)]} %>
|
148
148
|
|
149
149
|
<% end -%>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dockerfile-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Ruby
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-12-
|
11
|
+
date: 2023-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|