diff --git a/.gitignore b/.gitignore index d4f8479..8602e15 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,5 @@ .bundle/ *.bundle/install.log Gemfile.lock -tmp/ \ No newline at end of file +tmp/ +.DS_Store \ No newline at end of file diff --git a/spec/features/new_default_project_spec.rb b/spec/features/new_default_project_spec.rb index b1e1a7a..1321516 100644 --- a/spec/features/new_default_project_spec.rb +++ b/spec/features/new_default_project_spec.rb @@ -75,6 +75,46 @@ expect(config_file).to match(/^Rollbar.configure/) end + it 'uses ransack' do + gemfile_file = content('Gemfile') + expect(gemfile_file).to match(/^gem 'ransack'/) + end + + it 'uses will_paginate' do + gemfile_file = content('Gemfile') + expect(gemfile_file).to match(/^gem 'will_paginate'/) + end + + it 'uses to_xls' do + gemfile_file = content('Gemfile') + expect(gemfile_file).to match(/^gem 'to_xls'/) + end + + it 'uses roo' do + gemfile_file = content('Gemfile') + expect(gemfile_file).to match(/^gem 'roo'/) + end + + it 'uses roo-xls' do + gemfile_file = content('Gemfile') + expect(gemfile_file).to match(/^gem 'roo-xls'/) + end + + it 'uses write_xlsx' do + gemfile_file = content('Gemfile') + expect(gemfile_file).to match(/^gem 'write_xlsx'/) + end + + it 'uses colorize' do + gemfile_file = content('Gemfile') + expect(gemfile_file).to match("gem 'colorize'") + end + + it 'uses better_errors' do + gemfile_file = content('Gemfile') + expect(gemfile_file).to match("gem 'better_errors'") + end + it 'uses config and staging file' do gemfile_file = content('Gemfile') expect(gemfile_file).to match(/^gem 'config'/) diff --git a/spec/features/new_not_default_project_spec.rb b/spec/features/new_not_default_project_spec.rb index 260c5ef..06f3d9a 100644 --- a/spec/features/new_not_default_project_spec.rb +++ b/spec/features/new_not_default_project_spec.rb @@ -66,6 +66,46 @@ expect(config_file).to match(/^Rollbar.configure/) end + it 'uses ransack' do + gemfile_file = content('Gemfile') + expect(gemfile_file).to match(/^gem 'ransack'/) + end + + it 'uses will_paginate' do + gemfile_file = content('Gemfile') + expect(gemfile_file).to match(/^gem 'will_paginate'/) + end + + it 'uses to_xls' do + gemfile_file = content('Gemfile') + expect(gemfile_file).to match(/^gem 'to_xls'/) + end + + it 'uses roo' do + gemfile_file = content('Gemfile') + expect(gemfile_file).to match(/^gem 'roo'/) + end + + it 'uses roo-xls' do + gemfile_file = content('Gemfile') + expect(gemfile_file).to match(/^gem 'roo-xls'/) + end + + it 'uses write_xlsx' do + gemfile_file = content('Gemfile') + expect(gemfile_file).to match(/^gem 'write_xlsx'/) + end + + it 'uses colorize' do + gemfile_file = content('Gemfile') + expect(gemfile_file).to match("gem 'colorize'") + end + + it 'uses better_errors' do + gemfile_file = content('Gemfile') + expect(gemfile_file).to match("gem 'better_errors'") + end + it 'uses config and staging file' do gemfile_file = content('Gemfile') expect(gemfile_file).to match(/^gem 'config'/) diff --git a/templates/Gemfile.erb b/templates/Gemfile.erb index 2711cfb..b733e14 100644 --- a/templates/Gemfile.erb +++ b/templates/Gemfile.erb @@ -7,3 +7,23 @@ gem 'config', '~> 1.5' # Rollbar is an error tracking service. gem 'rollbar', '~> 2.15', '>= 2.15.4' + +# Ransack is the successor to the MetaSearch gem. +gem 'ransack', '~> 1.8', '>= 1.8.4' + +gem 'will_paginate', '~> 3.1', '>= 3.1.6' + +# Excell export +gem 'to_xls', '~> 1.5', '>= 1.5.3' + +# write_xlsx is a gem to create a new file in the Excel 2007+ XLSX format. +gem 'write_xlsx', '~> 0.85.1' + +# Roo can access the contents of various spreadsheet files. +gem 'roo-xls', '~> 1.1' +gem 'roo', '~> 2.7', '>= 2.7.1' + +group :development, :test do + gem 'colorize', '~> 0.8.1' + gem 'better_errors', '~> 2.4' +end \ No newline at end of file