dockerfile-rails 1.7.3 → 1.7.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: 45a9050bf01761b7e8542d0a5a98b757ba10ad8237169a2c5adde8ef0defb68b
4
- data.tar.gz: ef2572435e69a2a38bbc40c1b7c5f6e8b2be9e68148be509d382b4f02f327e4d
3
+ metadata.gz: be3d1ce9566496c167fba7241e1f1e07ed7efbad7945c6a86d3ff282bb1b8229
4
+ data.tar.gz: 27f6342c3e4cc7bc92195139347938d75bc0cf0b77bfc53627cbfd7611b149b4
5
5
  SHA512:
6
- metadata.gz: bf4676f2c8b5f2eb9a41c52d9ec7b48527ed90b1659f8786b70518fee5961ab0f7762577893acc6266de2830d658a0385d3385fd989bce7de32b12826326b0df
7
- data.tar.gz: 9547ff75541f16a457368d51bd3840f6e318e87dfa35a12c8db7b71928920ca5f6e1ee64b53a9d0e38fe565a4f49eb9cc4de608e2eb6b0391373f662a05bb920
6
+ metadata.gz: 6bb0a8358622932c93120e5779b6eb3b43b5e7b2b10fb292ede16303800189322b2c56ea86a539fc79803c6fd2ea07c328266e00a3ab6ecfaeab8a00cfdf9550
7
+ data.tar.gz: a66522cf4672acbbb377ee85feb42cab5443300df5fc2327a1c8034cc4f3bf49665f7d16612ebf02c719c27213f2652c372352c002ed0e4ee030f2b74361aab6
@@ -1255,7 +1255,7 @@ private
1255
1255
  client = api_client_dir
1256
1256
  return unless client
1257
1257
 
1258
- Dir["#{client}/{package.json,package-lock.json,yarn.lock,bun.lockb}"]
1258
+ Dir["#{client}/{package.json,package-lock.json,yarn.lock,bun.lockb,bun.lock}"]
1259
1259
  end
1260
1260
 
1261
1261
  def dbprep_command
@@ -1600,7 +1600,7 @@ private
1600
1600
  def fix_database_config
1601
1601
  yaml = IO.read("config/database.yml")
1602
1602
 
1603
- production = YAML.load(yaml, aliases: true)["production"]
1603
+ production = YAML.load(yaml, aliases: true)["production"] rescue nil
1604
1604
  return unless production.is_a?(Hash) && production.values.all?(Hash)
1605
1605
  return if production.keys == [ "primary" ]
1606
1606
 
@@ -70,7 +70,7 @@ FROM base AS <%= parallel? ? 'pre' : '' %>build
70
70
  FROM prebuild AS <% if using_bun? %>bun<% else %>node<% end %>
71
71
 
72
72
  <% end -%>
73
- <% if using_bun? and (!using_execjs? || File.exist?('bun.lockb')) -%>
73
+ <% if using_bun? and (!using_execjs? || File.exist?('bun.lockb') || File.exist?('bun.lock')) -%>
74
74
  <%= render partial: 'install_node', locals: {bun_version: using_execjs? ? nil : bun_version} %>
75
75
 
76
76
  <% elsif using_node? and (!using_execjs? || File.exist?('yarn.lock')) -%>
@@ -78,7 +78,7 @@ FROM prebuild AS <% if using_bun? %>bun<% else %>node<% end %>
78
78
 
79
79
  <% end -%>
80
80
  <% if parallel? -%>
81
- <%= render partial: 'npm_install', locals: {sources: Dir[*%w(package.json yarn.lock bun.lockb)]} %>
81
+ <%= render partial: 'npm_install', locals: {sources: Dir[*%w(package.json yarn.lock bun.lockb bun.lock)]} %>
82
82
 
83
83
 
84
84
  FROM prebuild AS build
@@ -149,7 +149,7 @@ ENV PATH=/usr/local/node/bin:$PATH
149
149
  <% end -%>
150
150
 
151
151
  <% elsif using_node? || using_bun? -%>
152
- <%= render partial: 'npm_install', locals: {sources: Dir[*%w(.npmrc .yarnrc package.json package-lock.json yarn.lock bun.lockb)]} %>
152
+ <%= render partial: 'npm_install', locals: {sources: Dir[*%w(.npmrc .yarnrc package.json package-lock.json yarn.lock bun.lockb bun.lock)]} %>
153
153
 
154
154
  <% end -%>
155
155
  # Copy application code
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dockerfile-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.3
4
+ version: 1.7.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Ruby
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-01-20 00:00:00.000000000 Z
10
+ date: 2025-01-31 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: rails