Skip to content

jasnow/rails_5.2_new

Repository files navigation

README

  • Ruby version: 2.4.x (latest)

  • Rails version: 5.2.x (latest)

How to create this repo

  1. Run gem install rails if needed.
  2. Run rails 5.2.3 new rails_5.2_new.
  3. Run cd rails_5.2_new; echo 'rvm use 2.4.9@ruby2.4-rails5.2 --create' > .rvmrc
  4. Run git init to set up Git.
  5. Add .travis.yml file such as:
language: ruby
rvm:
  - 2.4.9
before_install: gem install bundler
cache: bundler
  1. Remove Gemfile comments. (egrep -v "^#|^ #" Gemfile |uniq) For now, keep gem numbers.
  2. Optionally, add a LICENSE file.
  3. Add 3 sorbet gems.
gem 'sorbet-runtime'
gem 'sorbet-rails'
  1. Add 'dalli' and 'redis' gem to Gemfile to avoid sorbet error messages.
  2. Run "bundle" and fix any Gemfile syntax issues.
  3. Run "rails db:migrate" to avoid sorbet error messages.
  4. Then to push to GitHub.

How to know if you have a sane repo

  1. Run bundle with no errors.
  2. Run rake (expect 0 tests) with no errors and 1 known warning.
WARN Selenium [DEPRECATION] Selenium::WebDriver::Chrome#driver_path=
is deprecated. Use Selenium::WebDriver::Chrome::Service#driver_path= instead.
  1. When you go to "localhost:3000" in browser, you expect to see "Yay!: You're on Rails!" message and no errors.

About

"Empty" ruby-on-ruby repo for testing purposes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published