├── .gitignore ├── README.md ├── hello_app ├── Gemfile └── Gemfile_final ├── sample_app ├── Gemfile └── Gemfile_initial └── toy_app └── Gemfile /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Ruby on Rails Tutorial 7th Edition Gemfiles 2 | 3 | These are the latest Gemfiles for the [*Ruby on Rails Tutorial*](https://www.railstutorial.org/) (7th Ed.) by [Michael Hartl](https://www.michaelhartl.com/). To the extent that there’s any difference, readers of the *Ruby on Rails Tutorial* should always use these Gemfiles in preference to the ones listed in the book. 4 | 5 | The Gemfiles in the [online version](https://www.railstutorial.org/book) should always match those shown below. Ebooks purchased from [railstutorial.org](https://www.railstutorial.org/) or [Learn Enough](https://www.learnenough.com) should also match automatically as long as you’ve downloaded the latest version, which you can find on your [Purchases page](https://www.learnenough.com/account/edit#settings-purchases). (You may have to [clear your browser cache](https://www.digitaltrends.com/computing/how-to-clear-your-browser-cache/) first.) 6 | 7 | ## The Gemfiles 8 | 9 | * `hello_app` from Chapter 1 10 | - Initial [`Gemfile`](https://github.com/learnenough/rails_tutorial_7th_edition_gemfiles/blob/master/hello_app/Gemfile) 11 | - Final [`Gemfile`](https://github.com/learnenough/rails_tutorial_7th_edition_gemfiles/blob/master/hello_app/Gemfile_final) 12 | * `toy_app` from Chapter 2 13 | - [`Gemfile`](https://github.com/learnenough/rails_tutorial_7th_edition_gemfiles/blob/master/toy_app/Gemfile) 14 | * `sample_app` from Chapters 3–14 15 | - Initial [`Gemfile`](https://github.com/learnenough/rails_tutorial_7th_edition_gemfiles/blob/master/sample_app/Gemfile_initial) 16 | - Final [`Gemfile`](https://github.com/learnenough/rails_tutorial_7th_edition_gemfiles/blob/master/sample_app/Gemfile) 17 | 18 | *Note*: The easiest way to copy a Gemfile is to click on the relevant link and then select “Raw”. 19 | 20 | ![Finding the raw version of a Gemfile](https://cdn.learnenough.com/finding_raw_version_7th.png) 21 | 22 | Selecting all (Ctrl/Cmd-A, depending on system) and copying (Ctrl/Cmd-C) then lets you paste (Ctrl/Cmd-V) into your application’s Gemfile. 23 | -------------------------------------------------------------------------------- /hello_app/Gemfile: -------------------------------------------------------------------------------- 1 | source "https://rubygems.org" 2 | git_source(:github) { |repo| "https://github.com/#{repo}.git" } 3 | 4 | ruby "3.1.2" 5 | 6 | gem "rails", "7.0.4" 7 | gem "sassc-rails", "2.1.2" 8 | gem "sprockets-rails", "3.4.2" 9 | gem "importmap-rails", "1.1.0" 10 | gem "turbo-rails", "1.1.1" 11 | gem "stimulus-rails", "1.0.4" 12 | gem "jbuilder", "2.11.5" 13 | gem "puma", "5.6.4" 14 | gem "bootsnap", "1.12.0", require: false 15 | 16 | group :development, :test do 17 | gem "sqlite3", "1.4.2" 18 | gem "debug", "1.5.0", platforms: %i[ mri mingw x64_mingw ] 19 | end 20 | 21 | group :development do 22 | gem "web-console", "4.2.0" 23 | end 24 | 25 | group :test do 26 | gem "capybara", "3.37.1" 27 | gem "selenium-webdriver", "4.2.0" 28 | gem "webdrivers", "5.0.0" 29 | end 30 | 31 | # Windows does not include zoneinfo files, so bundle the tzinfo-data gem. 32 | # Uncomment the following line if you're running Rails 33 | # on a native Windows system: 34 | # gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby] 35 | -------------------------------------------------------------------------------- /hello_app/Gemfile_final: -------------------------------------------------------------------------------- 1 | source "https://rubygems.org" 2 | git_source(:github) { |repo| "https://github.com/#{repo}.git" } 3 | 4 | ruby "3.1.2" 5 | 6 | gem "rails", "7.0.4" 7 | gem "sprockets-rails", "3.4.2" 8 | gem "importmap-rails", "1.1.0" 9 | gem "turbo-rails", "1.1.1" 10 | gem "stimulus-rails", "1.0.4" 11 | gem "jbuilder", "2.11.5" 12 | gem "puma", "5.6.4" 13 | gem "bootsnap", "1.12.0", require: false 14 | 15 | group :development, :test do 16 | gem "sqlite3", "1.4.2" 17 | gem "debug", "1.5.0", platforms: %i[ mri mingw x64_mingw ] 18 | end 19 | 20 | group :development do 21 | gem "web-console", "4.2.0" 22 | end 23 | 24 | group :test do 25 | gem "capybara", "3.37.1" 26 | gem "selenium-webdriver", "4.2.0" 27 | gem "webdrivers", "5.0.0" 28 | end 29 | 30 | group :production do 31 | gem "pg", "1.3.5" 32 | end 33 | 34 | # Windows does not include zoneinfo files, so bundle the tzinfo-data gem. 35 | # Uncomment the following line if you're running Rails 36 | # on a native Windows system: 37 | # gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby] 38 | -------------------------------------------------------------------------------- /sample_app/Gemfile: -------------------------------------------------------------------------------- 1 | source "https://rubygems.org" 2 | git_source(:github) { |repo| "https://github.com/#{repo}.git" } 3 | 4 | ruby "3.1.2" 5 | 6 | gem "rails", "7.0.4" 7 | gem "image_processing", "1.12.2" 8 | gem "active_storage_validations", "0.9.8" 9 | gem "bcrypt", "3.1.18" 10 | gem "faker", "2.21.0" 11 | gem "will_paginate", "3.3.1" 12 | gem "bootstrap-will_paginate", "1.0.0" 13 | gem "bootstrap-sass", "3.4.1" 14 | gem "sassc-rails", "2.1.2" 15 | gem "sprockets-rails", "3.4.2" 16 | gem "importmap-rails", "1.1.0" 17 | gem "turbo-rails", "1.1.1" 18 | gem "stimulus-rails", "1.0.4" 19 | gem "jbuilder", "2.11.5" 20 | gem "puma", "5.6.4" 21 | gem "bootsnap", "1.12.0", require: false 22 | 23 | group :development, :test do 24 | gem "sqlite3", "1.4.2" 25 | gem "debug", "1.5.0", platforms: %i[ mri mingw x64_mingw ] 26 | end 27 | 28 | group :development do 29 | gem "web-console", "4.2.0" 30 | end 31 | 32 | group :test do 33 | gem "capybara", "3.37.1" 34 | gem "selenium-webdriver", "4.2.0" 35 | gem "webdrivers", "5.0.0" 36 | gem "rails-controller-testing", "1.0.5" 37 | gem "minitest", "5.15.0" 38 | gem "minitest-reporters", "1.5.0" 39 | gem "guard", "2.18.0" 40 | gem "guard-minitest", "2.4.6" 41 | end 42 | 43 | group :production do 44 | gem "pg", "1.3.5" 45 | gem "aws-sdk-s3", "1.114.0", require: false 46 | end 47 | 48 | # Windows does not include zoneinfo files, so bundle the tzinfo-data gem. 49 | # Uncomment the following line if you're running Rails 50 | # on a native Windows system: 51 | # gem "tzinfo-data", platforms: %i[ mingw mswin x64_mingw jruby ] 52 | -------------------------------------------------------------------------------- /sample_app/Gemfile_initial: -------------------------------------------------------------------------------- 1 | source "https://rubygems.org" 2 | git_source(:github) { |repo| "https://github.com/#{repo}.git" } 3 | 4 | ruby "3.1.2" 5 | 6 | gem "rails", "7.0.4" 7 | gem "sassc-rails", "2.1.2" 8 | gem "sprockets-rails", "3.4.2" 9 | gem "importmap-rails", "1.1.0" 10 | gem "turbo-rails", "1.1.1" 11 | gem "stimulus-rails", "1.0.4" 12 | gem "jbuilder", "2.11.5" 13 | gem "puma", "5.6.4" 14 | gem "bootsnap", "1.12.0", require: false 15 | 16 | group :development, :test do 17 | gem "sqlite3", "1.4.2" 18 | gem "debug", "1.5.0", platforms: %i[ mri mingw x64_mingw ] 19 | end 20 | 21 | group :development do 22 | gem "web-console", "4.2.0" 23 | end 24 | 25 | group :test do 26 | gem "capybara", "3.37.1" 27 | gem "selenium-webdriver", "4.2.0" 28 | gem "webdrivers", "5.0.0" 29 | gem "rails-controller-testing", "1.0.5" 30 | gem "minitest", "5.15.0" 31 | gem "minitest-reporters", "1.5.0" 32 | gem "guard", "2.18.0" 33 | gem "guard-minitest", "2.4.6" 34 | end 35 | 36 | group :production do 37 | gem "pg", "1.3.5" 38 | end 39 | 40 | # Windows does not include zoneinfo files, so bundle the tzinfo-data gem. 41 | # Uncomment the following line if you're running Rails 42 | # on a native Windows system: 43 | # gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby] 44 | -------------------------------------------------------------------------------- /toy_app/Gemfile: -------------------------------------------------------------------------------- 1 | source "https://rubygems.org" 2 | git_source(:github) { |repo| "https://github.com/#{repo}.git" } 3 | 4 | ruby "3.1.2" 5 | 6 | gem "rails", "7.0.4" 7 | gem "sassc-rails", "2.1.2" 8 | gem "sprockets-rails", "3.4.2" 9 | gem "importmap-rails", "1.1.0" 10 | gem "turbo-rails", "1.1.1" 11 | gem "stimulus-rails", "1.0.4" 12 | gem "jbuilder", "2.11.5" 13 | gem "puma", "5.6.4" 14 | gem "bootsnap", "1.12.0", require: false 15 | 16 | group :development, :test do 17 | gem "sqlite3", "1.4.2" 18 | gem "debug", "1.5.0", platforms: %i[ mri mingw x64_mingw ] 19 | end 20 | 21 | group :development do 22 | gem "web-console", "4.2.0" 23 | end 24 | 25 | group :test do 26 | gem "capybara", "3.37.1" 27 | gem "selenium-webdriver", "4.2.0" 28 | gem "webdrivers", "5.0.0" 29 | end 30 | 31 | group :production do 32 | gem "pg", "1.3.5" 33 | end 34 | 35 | # Windows does not include zoneinfo files, so bundle the tzinfo-data gem. 36 | # Uncomment the following line if you're running Rails 37 | # on a native Windows system: 38 | # gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby] 39 | --------------------------------------------------------------------------------