-
Ruby version: 2.4.x (latest)
-
Rails version: 5.2.x (latest)
- Run gem install rails if needed.
- Run rails 5.2.3 new rails_5.2_new.
- Run cd rails_5.2_new; echo 'rvm use 2.4.9@ruby2.4-rails5.2 --create' > .rvmrc
- Run git init to set up Git.
- Add .travis.yml file such as:
language: ruby
rvm:
- 2.4.9
before_install: gem install bundler
cache: bundler
- Remove Gemfile comments. (egrep -v "^#|^ #" Gemfile |uniq) For now, keep gem numbers.
- Optionally, add a LICENSE file.
- Add 3 sorbet gems.
gem 'sorbet-runtime'
gem 'sorbet-rails'
- Add 'dalli' and 'redis' gem to Gemfile to avoid sorbet error messages.
- Run "bundle" and fix any Gemfile syntax issues.
- Run "rails db:migrate" to avoid sorbet error messages.
- Then to push to GitHub.
- Run bundle with no errors.
- 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.
- When you go to "localhost:3000" in browser, you expect to see "Yay!: You're on Rails!" message and no errors.