Skip to content

Commit fca5e9e

Browse files
authored
Merge pull request #93 from nimblehq/chore/cleanup-gems
Cleanup gems
2 parents 2df8b72 + 9082480 commit fca5e9e

File tree

6 files changed

+20
-47
lines changed

6 files changed

+20
-47
lines changed

rails_docker.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ def source_paths
7474
setup_config
7575

7676
# Setup Javascript and Stylesheets
77-
remove_file 'app/assets/javascripts/application.js'
77+
# Remove Turbolinks from `application.js` file
78+
gsub_file 'app/assets/javascripts/application.js', %r{^\/\/= require turbolinks\n}, ''
7879
directory 'shared/app/assets/javascripts', 'app/assets/javascripts'
7980

8081
remove_file 'app/assets/stylesheets/application.css'

rails_docker/Gemfile.txt

Lines changed: 17 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,19 @@ ruby '2.6.2'
55
gem 'rails', '5.2.3' # Latest stable
66
gem 'pg' # Use Postgresql as database
77
gem 'puma' # Use Puma as the app server
8-
gem 'active_model_serializers' # ActiveModel::Serializer implementation and Rails hooks
9-
gem 'carrierwave' # Classier solution for file uploads for Rails
10-
gem 'carrierwave-aws' # Use the officially supported AWS-SDK library for S3 storage
118
gem 'mini_magick' # A ruby wrapper for ImageMagick or GraphicsMagick command line
12-
gem 'kaminari' # A Scope & Engine based, clean, powerful, customizable and sophisticated paginator for Rails 3 and 4
13-
gem 'chronic' # Chronic is a pure Ruby natural language date parser.
9+
gem 'pagy' # A pagination gem that is very light and fast
1410
gem 'paranoia', '2.4.1' # Paranoia is a re-implementation of acts_as_paranoid for Rails 3 and Rails 4. Soft-deletion of records
1511
gem 'ffaker' # A library for generating fake data such as names, addresses, and phone numbers.
1612
gem 'fabrication' # Fabrication generates objects in Ruby. Fabricators are schematics for your objects, and can be created as needed anywhere in your app or specs.
1713
gem 'sidekiq' # background processing for Ruby
1814
gem 'bootsnap', require: false # Reduces boot times through caching; required in config/boot.rb
1915

20-
# Admin
21-
gem 'rails_admin'
22-
2316
# Authentications & Authorizations
2417
gem 'devise' # Authentication solution for Rails with Warden
2518
gem 'pundit' # Minimal authorization through OO design and pure Ruby classes
2619

2720
# Assets
28-
gem 'jquery-rails' # Use jquery as the JavaScript library
29-
gem 'font-awesome-sass' # Font-Awesome Sass gem for use in Ruby/Rails projects
3021
gem 'sass-rails' # SASS
3122
gem 'uglifier'
3223

@@ -36,29 +27,22 @@ group :development do
3627
gem 'binding_of_caller' # Retrieve the binding of a method's caller in MRI 1.9.2+
3728
gem 'awesome_print' # Pretty print your Ruby objects with style -- in full color and with proper indentation
3829
gem 'guard-rubocop'
30+
gem 'guard-rspec' # Auto-run specs
3931
gem 'roadie-rails' # Mailers
4032
gem 'rubycritic', require: false # A Ruby code quality reporter
41-
gem 'brakeman', require: false # A static analysis security vulnerability scanner for Ruby on Rails applications
33+
gem 'spring' # Spring speeds up development by keeping your application running in the background.
34+
gem 'spring-commands-rspec' # This gem implements the rspec command for Spring.
35+
gem 'spring-watcher-listen', '2.0.1' # Makes Spring watch the filesystem for changes using Listen
4236
end
4337

4438
group :development, :test do
4539
gem 'bullet' # help to kill N+1 queries and unused eager loading
4640
gem 'figaro' # Simple Rails app configuration
47-
gem 'rspec-rails' # Rails testing engine
48-
gem 'guard-rspec' # Auto-run specs
49-
gem 'shoulda-matchers' # Tests common Rails functionalities
50-
gem 'capybara', '>= 2.15' # Integration testing
51-
gem 'selenium-webdriver', '3.7.0' # Ruby bindings for Selenium/WebDriver
52-
gem 'database_cleaner' # Use Database Cleaner
53-
5441
gem 'pry-rails' # Call 'binding.pry' anywhere in the code to stop execution and get a debugger console
55-
gem 'spring' # Spring speeds up development by keeping your application running in the background.
56-
gem 'spring-commands-rspec' # This gem implements the rspec command for Spring.
57-
gem 'spring-watcher-listen', '2.0.1' # Makes Spring watch the filesystem for changes using Listen
5842
gem 'listen', '3.1.5' # Listens to file modifications
5943
gem 'letter_opener' # Preview mail in the browser instead of sending.
60-
6144
gem 'sassc-rails' # Gem to generate scss source maps
45+
gem 'brakeman', require: false # A static analysis security vulnerability scanner for Ruby on Rails applications
6246

6347
gem 'pronto'
6448
gem 'pronto-rubocop', require: false
@@ -73,15 +57,22 @@ group :development, :test do
7357
end
7458

7559
group :test do
60+
gem 'rspec-rails' # Rails testing engine
61+
gem 'rspec-retry' # Retry randomly failing rspec example.
62+
gem 'capybara', '>= 2.15' # Integration testing
63+
gem 'selenium-webdriver', '3.7.0' # Ruby bindings for Selenium/WebDriver
64+
gem 'database_cleaner' # Use Database Cleaner
65+
gem 'shoulda-matchers' # Tests common Rails functionalities
66+
gem 'json_matchers' # Validate the JSON returned by your Rails JSON APIs
7667
gem 'webmock' # Library for stubbing and setting expectations on HTTP requests in Ruby
7768
gem 'simplecov', require: false # code coverage analysis tool for Ruby
7869
gem 'vcr' # Gem for recording test suite's HTTP interactions
7970
gem 'timecop' # Gem for time travel
80-
gem 'json_matchers' # Validate the JSON returned by your Rails JSON APIs
81-
gem 'rspec-retry' # Retry randomly failing rspec example.
82-
gem 'rails-controller-testing' # add helpers for template testing
8371
end
8472

8573
group :production do
86-
gem 'rack-timeout' # Rack middleware which aborts requests that have been running for longer than a specified timeout.
74+
gem 'rack-timeout' # Rack middleware which aborts requests that have been running for longer than a specified timeout.
8775
end
76+
77+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
78+
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

shared/app/assets/javascripts/application.js

Lines changed: 0 additions & 15 deletions
This file was deleted.

shared/rspec/codebase/codebase_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
expect(`rubocop --format simple`).to include 'no offenses detected'
66
end
77

8-
it 'satisfies Breakman' do
8+
it 'satisfies Brakeman' do
99
expect(`brakeman -w2`).not_to include '+SECURITY WARNINGS+'
1010
end
1111

shared/rspec/support/capybara.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,3 @@
4444

4545
Capybara.javascript_driver = :chrome
4646
Capybara.default_max_wait_time = CAPYBARA_TIMEOUT
47-
Capybara.wait_on_first_by_default = true

shared/rspec/support/json_matchers.rb

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)