Skip to content

Instantly share code, notes, and snippets.

@pvalena
Created November 25, 2019 16:39
Show Gist options
  • Save pvalena/d3e549fa99396415804a9290c2d08e3f to your computer and use it in GitHub Desktop.
Save pvalena/d3e549fa99396415804a9290c2d08e3f to your computer and use it in GitHub Desktop.
advanced Gemfile
bash-4.2$ rails new app
create
create README.md
create Rakefile
create .ruby-version
create config.ru
create .gitignore
create Gemfile
run git init from "."
Initialized empty Git repository in /opt/app-root/src/test/app/.git/
create package.json
create app
create app/assets/config/manifest.js
create app/assets/javascripts/application.js
create app/assets/javascripts/cable.js
create app/assets/stylesheets/application.css
create app/channels/application_cable/channel.rb
create app/channels/application_cable/connection.rb
create app/controllers/application_controller.rb
create app/helpers/application_helper.rb
create app/jobs/application_job.rb
create app/mailers/application_mailer.rb
create app/models/application_record.rb
create app/views/layouts/application.html.erb
create app/views/layouts/mailer.html.erb
create app/views/layouts/mailer.text.erb
create app/assets/images/.keep
create app/assets/javascripts/channels
create app/assets/javascripts/channels/.keep
create app/controllers/concerns/.keep
create app/models/concerns/.keep
create bin
create bin/bundle
create bin/rails
create bin/rake
create bin/setup
create bin/update
create bin/yarn
create config
create config/routes.rb
create config/application.rb
create config/environment.rb
create config/cable.yml
create config/puma.rb
create config/spring.rb
create config/storage.yml
create config/environments
create config/environments/development.rb
create config/environments/production.rb
create config/environments/test.rb
create config/initializers
create config/initializers/application_controller_renderer.rb
create config/initializers/assets.rb
create config/initializers/backtrace_silencers.rb
create config/initializers/content_security_policy.rb
create config/initializers/cookies_serializer.rb
create config/initializers/cors.rb
create config/initializers/filter_parameter_logging.rb
create config/initializers/inflections.rb
create config/initializers/mime_types.rb
create config/initializers/new_framework_defaults_5_2.rb
create config/initializers/wrap_parameters.rb
create config/locales
create config/locales/en.yml
create config/master.key
append .gitignore
create config/boot.rb
create config/database.yml
create db
create db/seeds.rb
create lib
create lib/tasks
create lib/tasks/.keep
create lib/assets
create lib/assets/.keep
create log
create log/.keep
create public
create public/404.html
create public/422.html
create public/500.html
create public/apple-touch-icon-precomposed.png
create public/apple-touch-icon.png
create public/favicon.ico
create public/robots.txt
create tmp
create tmp/.keep
create tmp/cache
create tmp/cache/assets
create vendor
create vendor/.keep
create test/fixtures
create test/fixtures/.keep
create test/fixtures/files
create test/fixtures/files/.keep
create test/controllers
create test/controllers/.keep
create test/mailers
create test/mailers/.keep
create test/models
create test/models/.keep
create test/helpers
create test/helpers/.keep
create test/integration
create test/integration/.keep
create test/test_helper.rb
create test/system
create test/system/.keep
create test/application_system_test_case.rb
create storage
create storage/.keep
create tmp/storage
create tmp/storage/.keep
remove config/initializers/cors.rb
remove config/initializers/new_framework_defaults_5_2.rb
run bundle install
Fetching gem metadata from https://rubygems.org/.............
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Resolving dependencies...............
Using rake 13.0.1
Using concurrent-ruby 1.1.5
Using minitest 5.13.0
Using thread_safe 0.3.6
Using builder 3.2.3
Using erubi 1.9.0
Using mini_portile2 2.4.0
Using crass 1.0.5
Using rack 2.0.7
Using nio4r 2.5.2
Using websocket-extensions 0.1.4
Using mini_mime 1.0.2
Using arel 9.0.0
Using mimemagic 0.3.3
Installing public_suffix 4.0.1
Installing io-like 0.3.0
Installing bindex 0.8.1 with native extensions
Installing msgpack 1.3.1 with native extensions
Using bundler 1.13.7
Installing byebug 11.0.1 with native extensions
Installing regexp_parser 1.6.0
Installing childprocess 3.0.0
Installing coffee-script-source 1.12.2
Installing execjs 2.7.0
Using method_source 0.9.2
Using thor 0.20.3
Installing ffi 1.11.3 with native extensions
Installing rb-fsevent 0.10.3
Installing ruby_dep 1.5.0
Installing puma 3.12.1 with native extensions
Installing rubyzip 2.0.0
Installing tilt 2.0.10
Installing spring 2.1.0
Installing sqlite3 1.4.1 with native extensions
Installing turbolinks-source 5.2.0
Using i18n 1.7.0
Using tzinfo 1.2.5
Using nokogiri 1.10.5
Using rack-test 1.1.0
Using sprockets 3.7.2
Using websocket-driver 0.7.1
Using mail 2.7.1
Using marcel 0.3.3
Installing addressable 2.7.0
Installing archive-zip 0.12.0
Installing bootsnap 1.4.5 with native extensions
Installing coffee-script 2.4.1
Installing uglifier 4.2.0
Installing rb-inotify 0.10.0
Installing selenium-webdriver 3.142.6
Installing turbolinks 5.2.1
Using activesupport 5.2.3
Using loofah 2.3.1
Installing xpath 3.2.0
Installing chromedriver-helper 2.1.1
Installing listen 3.1.5
Installing sass-listen 4.0.0
Using rails-dom-testing 2.0.3
Using globalid 0.4.2
Using activemodel 5.2.3
Installing jbuilder 2.9.1
Using rails-html-sanitizer 1.3.0
Installing capybara 3.29.0
Installing spring-watcher-listen 2.0.1
Installing sass 3.7.4
Using activejob 5.2.3
Using activerecord 5.2.3
Using actionview 5.2.3
Using actionpack 5.2.3
Using actioncable 5.2.3
Using actionmailer 5.2.3
Using activestorage 5.2.3
Using railties 5.2.3
Using sprockets-rails 3.2.1
Installing coffee-rails 4.2.2
Installing web-console 3.7.0
Using rails 5.2.3
Installing sass-rails 5.1.0
Bundle complete! 18 Gemfile dependencies, 78 gems now installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
Post-install message from chromedriver-helper:
+--------------------------------------------------------------------+
| |
| NOTICE: chromedriver-helper is deprecated after 2019-03-31. |
| |
| Please update to use the 'webdrivers' gem instead. |
| See https://github.com/flavorjones/chromedriver-helper/issues/83 |
| |
+--------------------------------------------------------------------+
Post-install message from sass:
Ruby Sass has reached end-of-life and should no longer be used.
* If you use Sass as a command-line tool, we recommend using Dart Sass, the new
primary implementation: https://sass-lang.com/install
* If you use Sass as a plug-in for a Ruby web framework, we recommend using the
sassc gem: https://github.com/sass/sassc-ruby#readme
* For more details, please refer to the Sass blog:
https://sass-lang.com/blog/posts/7828841
run bundle exec spring binstub --all
* bin/rake: Spring inserted
* bin/rails: Spring inserted
bash-4.2$ cd app
bash-4.2$ cat Gemfile
source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
ruby '2.4.6'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.2.3'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
# Use Puma as the app server
gem 'puma', '~> 3.11'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# See https://github.com/rails/execjs#readme for more supported runtimes
# gem 'mini_racer', platforms: :ruby
# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', '~> 4.2'
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
gem 'turbolinks', '~> 5'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.5'
# Use Redis adapter to run Action Cable in production
# gem 'redis', '~> 4.0'
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'
# Use ActiveStorage variant
# gem 'mini_magick', '~> 4.8'
# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development
# Reduces boot times through caching; required in config/boot.rb
gem 'bootsnap', '>= 1.1.0', require: false
group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
end
group :development do
# Access an interactive console on exception pages or by calling 'console' anywhere in the code.
gem 'web-console', '>= 3.3.0'
gem 'listen', '>= 3.0.5', '< 3.2'
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring'
gem 'spring-watcher-listen', '~> 2.0.0'
end
group :test do
# Adds support for Capybara system testing and selenium driver
gem 'capybara', '>= 2.15'
gem 'selenium-webdriver'
# Easy installation and use of chromedriver to run system tests with Chrome
gem 'chromedriver-helper'
end
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
bash-4.2$ rails s
=> Booting Puma
=> Rails 5.2.3 application starting in development
=> Run `rails server -h` for more startup options
Puma starting in single mode...
* Version 3.12.1 (ruby 2.4.6-p354), codename: Llamas in Pajamas
* Min threads: 5, max threads: 5
* Environment: development
* Listening on tcp://localhost:3000
Use Ctrl-C to stop
^C- Gracefully stopping, waiting for requests to finish
=== puma shutdown: 2019-11-25 16:33:23 +0000 ===
- Goodbye!
Exiting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment