Skip to content

Commit

Permalink
KBP-134 #time 3h - intagrete important gems
Browse files Browse the repository at this point in the history
  • Loading branch information
FatihAvsan committed Oct 27, 2017
1 parent 3f132b4 commit 3e3da9b
Show file tree
Hide file tree
Showing 4 changed files with 102 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
.bundle/
*.bundle/install.log
Gemfile.lock
tmp/
tmp/
.DS_Store
40 changes: 40 additions & 0 deletions spec/features/new_default_project_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'/)
Expand Down
40 changes: 40 additions & 0 deletions spec/features/new_not_default_project_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'/)
Expand Down
20 changes: 20 additions & 0 deletions templates/Gemfile.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3e3da9b

Please sign in to comment.