dockerfile-rails 1.0.3 → 1.0.5
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 +4 -4
- data/lib/dockerfile-rails/scanner.rb +3 -0
- data/lib/generators/dockerfile_generator.rb +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8ba9e32f73859b08e1876b21b139dd371172091f0e5f076665f3137d90b2f632
|
|
4
|
+
data.tar.gz: 182fb094c2a84e3dd941d693198fcce698fa10ef7fa01e91db061d8f1fb4ca56
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 16ca4f49e2904da2286e8a1443b50f07fc98c2946ebaca12478fa4005f05bae613806337aa67ffa278e8e1b26c72fb858f127751eec2d231255511757cf482bc
|
|
7
|
+
data.tar.gz: 29eb5d2ae52c00c16ef4be0297b419667f65dc42eb7adad0e7f804fb4542449acc5cfd9fbc8a86cfe05768c9ecd73e40e9a153bb52d9cfdf0170499fb6c41dfc
|
|
@@ -25,6 +25,9 @@ module DockerfileRails
|
|
|
25
25
|
if File.exist? 'Gemfile.lock'
|
|
26
26
|
parser = Bundler::LockfileParser.new(Bundler.read_file('Gemfile.lock'))
|
|
27
27
|
@gemfile += parser.specs.map { |spec, version| spec.name }
|
|
28
|
+
@git ||= ENV['RAILS_ENV'] != 'test' && parser.specs.any? do |spec|
|
|
29
|
+
spec.source.instance_of? Bundler::Source::Git
|
|
30
|
+
end
|
|
28
31
|
end
|
|
29
32
|
|
|
30
33
|
if File.exist? 'Gemfile'
|
|
@@ -203,6 +203,10 @@ private
|
|
|
203
203
|
packages += %w(curl gnupg)
|
|
204
204
|
end
|
|
205
205
|
|
|
206
|
+
# charlock_holmes. Placed here as the library itself is
|
|
207
|
+
# libicu63 in buster, libicu67 in bullseye, libiclu72 in bookworm...
|
|
208
|
+
packages << "libicu-dev" if @gemfile.include? 'charlock_holmes'
|
|
209
|
+
|
|
206
210
|
packages.sort.uniq
|
|
207
211
|
end
|
|
208
212
|
|
|
@@ -210,6 +214,7 @@ private
|
|
|
210
214
|
requirements = []
|
|
211
215
|
requirements << 'nodejs' if using_execjs?
|
|
212
216
|
requirements << 'chrome' if using_puppeteer?
|
|
217
|
+
requirements << "charlock_holmes" if @gemfile.include? 'charlock_holmes'
|
|
213
218
|
requirements.join(' and ')
|
|
214
219
|
end
|
|
215
220
|
|
|
@@ -329,6 +334,7 @@ private
|
|
|
329
334
|
|
|
330
335
|
if using_puppeteer?
|
|
331
336
|
env << 'GROVER_NO_SANDBOX="true"' if @gemfile.include? 'grover'
|
|
337
|
+
env << 'PUPPETEER_RUBY_NO_SANDBOX="1"' if @gemfile.include? 'puppeteer-ruby'
|
|
332
338
|
env << 'PUPPETEER_EXECUTABLE_PATH="/usr/bin/google-chrome"'
|
|
333
339
|
end
|
|
334
340
|
|
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.0.
|
|
4
|
+
version: 1.0.5
|
|
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-02-
|
|
11
|
+
date: 2023-02-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|