Gemfile in blacklight-6.0.0.pre5 vs Gemfile in blacklight-6.0.0

- old
+ new

@@ -23,14 +23,23 @@ Bundler.ui.warn e.message end else Bundler.ui.warn "[EngineCart] Unable to find test application dependencies in #{file}, using placeholder dependencies" - gem 'rails', ENV['RAILS_VERSION'] if ENV['RAILS_VERSION'] + if ENV['RAILS_VERSION'] + if ENV['RAILS_VERSION'] == 'edge' + gem 'rails', github: 'rails/rails' + ENV['ENGINE_CART_RAILS_OPTIONS']= "--edge --skip-turbolinks" + else + gem 'rails', ENV['RAILS_VERSION'] + end + end - if ENV['RAILS_VERSION'].nil? || ENV['RAILS_VERSION'] =~ /^4.2/ + if ENV['RAILS_VERSION'].nil? || ENV['RAILS_VERSION'] =~ /^4\.2/ gem 'responders', "~> 2.0" gem 'sass-rails', ">= 5.0" + elsif ENV['RAILS_VERSION'] =~ /^5\.0/ || ENV['RAILS_VERSION'] == 'edge' + # nop else gem 'bootstrap-sass', '< 3.3.5' # 3.3.5 requires sass 3.3, incompatible with sass-rails 4.x gem 'sass-rails', "< 5.0" end end