Skip to content

Commit

Permalink
Add webdrivers to gemfile if not present
Browse files Browse the repository at this point in the history
  • Loading branch information
JonRowe committed Oct 11, 2023
1 parent 606f1b9 commit 05a6e5e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions example_app_generator/generate_app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
gsub_file "Gemfile", /.*gem..sqlite3.*/, "gem 'sqlite3', '~> 1.4'"

gsub_file "Gemfile", /.*chromedriver-helper.*/, "gem 'webdrivers'"
if File.read('Gemfile') !=~ /gem 'webdrivers'/
append_to_file 'Gemfile', "gem 'webdrivers'\n"
end

if RUBY_ENGINE == "jruby"
gsub_file "Gemfile", /.*jdbc.*/, ''
Expand Down

0 comments on commit 05a6e5e

Please sign in to comment.