Skip to content

Commit 9738e2b

Browse files
committed
chore: Update BUNDLE_WITHOUT
Do not install unnecessary gems [`BUNDLE_ONLY` can't used] `BUNDLE_ONLY=doc` doesn't work since the doc generation requires additional gems (e.g. rails, rake...) along with doc gems
1 parent 5693478 commit 9738e2b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Rakefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,9 @@ end
4646
def generate_rails_rdoc
4747
cd 'rails' do
4848
Bundler.with_unbundled_env do
49-
# TODO: use `BUNDLE_ONLY`(require bundler 2.3.19+).
50-
ENV['BUNDLE_WITHOUT'] = %w[db job storage cable ujs test rubocop view].join(':')
49+
ENV['BUNDLE_WITHOUT'] = %w[db view job storage cable ujs test rubocop lint mdl].join(':')
5150

52-
# replace sdoc gem
51+
# Replace sdoc gem with my forked one
5352
gemfile = File.read('Gemfile')
5453
gemfile.gsub!(/"sdoc".*$/, '"sdoc", github: "toshimaru/sdoc", branch: "railsdoc"')
5554
File.write('Gemfile', gemfile)

0 commit comments

Comments
 (0)