Skip to content

Commit cf7e124

Browse files
committed
Update BUNDLE_WITHOUT
- Update regex - Update comment
1 parent bac8b44 commit cf7e124

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Rakefile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ def generate_rails_rdoc
4747
cd 'rails' do
4848
Bundler.with_unbundled_env do
4949
# TODO: use `BUNDLE_ONLY`(require bundler 2.3.19+).
50-
ENV['BUNDLE_WITHOUT'] = 'db:job:storage:cable:ujs:test'
50+
ENV['BUNDLE_WITHOUT'] = %w[db job storage cable ujs test rubocop view].join(':')
5151

5252
# replace sdoc gem
5353
gemfile = File.read('Gemfile')
54-
gemfile.gsub!(/"sdoc.*$/, '"sdoc", github: "toshimaru/sdoc", branch: "railsdoc"')
54+
gemfile.gsub!(/"sdoc".*$/, '"sdoc", github: "toshimaru/sdoc", branch: "railsdoc"')
5555
File.write('Gemfile', gemfile)
5656

5757
sh 'bundle install && bundle update sdoc'
@@ -68,10 +68,9 @@ def generate_src(target_version: nil)
6868

6969
cd target_dir do
7070
cp INDEX_HTML, 'index.html'
71-
7271
return if target_version.nil?
7372

74-
# Replace absolute path in navigation.html
73+
# Prepend version number to the absolute path in navigation.html
7574
content = File.read('navigation.html')
7675
content.gsub!('<a href="/', "<a href=\"/#{target_version}/")
7776
File.write('navigation.html', content)

0 commit comments

Comments
 (0)