Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion rails_docker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ def source_paths
setup_config

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

remove_file 'app/assets/stylesheets/application.css'
Expand Down
43 changes: 17 additions & 26 deletions rails_docker/Gemfile.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,19 @@ ruby '2.6.2'
gem 'rails', '5.2.3' # Latest stable
gem 'pg' # Use Postgresql as database
gem 'puma' # Use Puma as the app server
gem 'active_model_serializers' # ActiveModel::Serializer implementation and Rails hooks
gem 'carrierwave' # Classier solution for file uploads for Rails
gem 'carrierwave-aws' # Use the officially supported AWS-SDK library for S3 storage
gem 'mini_magick' # A ruby wrapper for ImageMagick or GraphicsMagick command line
gem 'kaminari' # A Scope & Engine based, clean, powerful, customizable and sophisticated paginator for Rails 3 and 4
gem 'chronic' # Chronic is a pure Ruby natural language date parser.
gem 'pagy' # A pagination gem that is very light and fast
gem 'paranoia', '2.4.1' # Paranoia is a re-implementation of acts_as_paranoid for Rails 3 and Rails 4. Soft-deletion of records
gem 'ffaker' # A library for generating fake data such as names, addresses, and phone numbers.
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.
gem 'sidekiq' # background processing for Ruby
gem 'bootsnap', require: false # Reduces boot times through caching; required in config/boot.rb

# Admin
gem 'rails_admin'

# Authentications & Authorizations
gem 'devise' # Authentication solution for Rails with Warden
gem 'pundit' # Minimal authorization through OO design and pure Ruby classes

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

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

group :development, :test do
gem 'bullet' # help to kill N+1 queries and unused eager loading
gem 'figaro' # Simple Rails app configuration
gem 'rspec-rails' # Rails testing engine
gem 'guard-rspec' # Auto-run specs
gem 'shoulda-matchers' # Tests common Rails functionalities
gem 'capybara', '>= 2.15' # Integration testing
gem 'selenium-webdriver', '3.7.0' # Ruby bindings for Selenium/WebDriver
gem 'database_cleaner' # Use Database Cleaner

gem 'pry-rails' # Call 'binding.pry' anywhere in the code to stop execution and get a debugger console
gem 'spring' # Spring speeds up development by keeping your application running in the background.
gem 'spring-commands-rspec' # This gem implements the rspec command for Spring.
gem 'spring-watcher-listen', '2.0.1' # Makes Spring watch the filesystem for changes using Listen
gem 'listen', '3.1.5' # Listens to file modifications
gem 'letter_opener' # Preview mail in the browser instead of sending.

gem 'sassc-rails' # Gem to generate scss source maps
gem 'brakeman', require: false # A static analysis security vulnerability scanner for Ruby on Rails applications

gem 'pronto'
gem 'pronto-rubocop', require: false
Expand All @@ -73,15 +57,22 @@ group :development, :test do
end

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

group :production do
gem 'rack-timeout' # Rack middleware which aborts requests that have been running for longer than a specified timeout.
gem 'rack-timeout' # Rack middleware which aborts requests that have been running for longer than a specified timeout.
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
15 changes: 0 additions & 15 deletions shared/app/assets/javascripts/application.js

This file was deleted.

2 changes: 1 addition & 1 deletion shared/rspec/codebase/codebase_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
expect(`rubocop --format simple`).to include 'no offenses detected'
end

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

Expand Down
1 change: 0 additions & 1 deletion shared/rspec/support/capybara.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,3 @@

Capybara.javascript_driver = :chrome
Capybara.default_max_wait_time = CAPYBARA_TIMEOUT
Capybara.wait_on_first_by_default = true
3 changes: 0 additions & 3 deletions shared/rspec/support/json_matchers.rb

This file was deleted.