8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# File 'lib/generators/boring/audit/install/install_generator.rb', line 8
def add_bullet_gem
say "Adding audit gems", :green
Bundler.with_unbundled_env do
audit_gems_content = <<~RUBY
\n
\t# Patch-level verification for Bundler. https://github.com/rubysec/bundler-audit
\tgem "bundler-audit", require: false
\t# vulnerability checker for Ruby itself. https://github.com/civisanalytics/ruby_audit
\tgem "ruby_audit", require: false
RUBY
insert_into_file "Gemfile", audit_gems_content, after: /group :development do/
run "bundle install"
end
end
|