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: 1a7a5c96358c0e7974364e0b23c6a6b15542c05e67c352b917c36619d7bf8618
4
- data.tar.gz: 69df0f5095152bf72c20ec9b9607d2597b10225a9e7da584785c2ab147d619a7
3
+ metadata.gz: 563c6043b8c8890edd114a6fe77b543dc745a43e18f59585ae945dbbe9a31bb2
4
+ data.tar.gz: 16ebea3a573d36330c4b38105d3d49391b7ca751f737298bda61bd70c41df35d
5
5
  SHA512:
6
- metadata.gz: d57bfbad64083ec22060f19ba971d3ab71383a1111cefc2a053b01cd670ef2b8652702b802e1ec6670e07dd93a19a46e534e22ed12b775913ed2042b8377a3e1
7
- data.tar.gz: e7e6b18c708121fd4c9e7aaadff5c05a32e291e139ffdb4c72f1d8fe0eaaf8b9ca9bd93a742d112fd119d634c08f3ddcce89c21db38560073f462ab9e3e09447
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
- @using_node = File.exist? "package.json"
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.0
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-17 00:00:00.000000000 Z
11
+ date: 2023-12-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails