spec/applications/universal_gemfile.rb in tabulous-2.1.3 vs spec/applications/universal_gemfile.rb in tabulous-2.1.4

- old
+ new

@@ -17,45 +17,12 @@ group :test do gem 'capybara', "~> 2.2.0" gem 'launchy' end CODE - if rails_version? '3.0' + if rails_version? '4.0' gemfile += <<-CODE.strip_heredoc - gem 'rails', '~> 3.0.0' - CODE - elsif rails_version? '3.1' - gemfile += <<-CODE.strip_heredoc - gem 'rails', '~> 3.1.0' - group :assets do - gem 'sass-rails', '~> 3.1.4' - gem 'coffee-rails', '~> 3.1.1' - gem 'uglifier', '>= 1.0.3' - end - gem 'jquery-rails' - group :test do - gem 'turn', :require => false - gem 'minitest' - end - CODE - elsif rails_version? '3.2' - gemfile += <<-CODE.strip_heredoc - gem 'rails', '~> 3.2.0' - group :assets do - gem 'sass-rails', '~> 3.2.3' - gem 'bootstrap-sass', '= 2.3.1.0' - gem 'coffee-rails', '~> 3.2.1' - gem 'uglifier', '>= 1.0.3' - end - gem 'jquery-rails' - group :test do - gem 'turn', :require => false - gem 'minitest' - end - CODE - elsif rails_version? '4.0' - gemfile += <<-CODE.strip_heredoc gem 'rails', '~> 4.0.5' gem 'sass-rails', '~> 4.0.2' gem 'bootstrap-sass', '~> 3.0.2.0' gem 'coffee-rails', '~> 4.0.0' gem 'uglifier', '>= 1.3.0' @@ -101,9 +68,31 @@ end group :development do gem 'web-console', '~> 2.0' gem 'spring' end + CODE + elsif rails_version? '5.0' + gemfile += <<-CODE.strip_heredoc + gem 'rails', '~> 5.0.0' + gem 'puma', '~> 3.0' + gem 'sass-rails', '~> 5.0' + gem 'bootstrap-sass', '~> 3.0.2.0' + gem 'uglifier', '>= 1.3.0' + gem 'coffee-rails', '~> 4.2' + gem 'jquery-rails' + gem 'turbolinks', '~> 5' + gem 'jbuilder', '~> 2.5' + group :development, :test do + gem 'byebug', platform: :mri + end + group :development do + gem 'web-console' + gem 'listen', '~> 3.0.5' + gem 'spring' + gem 'spring-watcher-listen', '~> 2.0.0' + end + gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] CODE end add_file 'Gemfile', gemfile