Skip to content

Commit 6d93656

Browse files
committed
6.1.0.rc1
1 parent 60054c5 commit 6d93656

26 files changed

+126
-53
lines changed

Diff for: .gitattributes

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# See https://git-scm.com/docs/gitattributes for more about git attribute files.
2+
3+
# Mark the database schema as having been generated.
4+
db/schema.rb linguist-generated
5+
6+
# Mark the yarn lockfile as having been generated.
7+
yarn.lock linguist-generated
8+
9+
# Mark any vendored files as having been vendored.
10+
vendor/* linguist-vendored

Diff for: .gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
# Ignore the default SQLite database.
1111
/db/*.sqlite3
12-
/db/*.sqlite3-journal
1312
/db/*.sqlite3-*
1413

1514
# Ignore all logfiles and tempfiles.

Diff for: Gemfile

+10-8
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
33

44
ruby 'your-ruby-version'
55

6-
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails', branch: 'main'
7-
gem 'rails', '~> 6.0.6', '>= 6.0.6.1'
6+
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
7+
gem 'rails', '~> 6.1.0.rc1'
88
# Use sqlite3 as the database for Active Record
99
gem 'sqlite3', '~> 1.4'
1010
# Use Puma as the app server
11-
gem 'puma', '~> 4.1'
11+
gem 'puma', '~> 5.0'
1212
# Use SCSS for stylesheets
1313
gem 'sass-rails', '>= 6'
1414
# Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker
15-
gem 'webpacker', '~> 4.0'
15+
gem 'webpacker', '~> 5.0'
1616
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
1717
gem 'turbolinks', '~> 5'
1818
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
@@ -26,7 +26,7 @@ gem 'jbuilder', '~> 2.7'
2626
# gem 'image_processing', '~> 1.2'
2727

2828
# Reduces boot times through caching; required in config/boot.rb
29-
gem 'bootsnap', '>= 1.4.2', require: false
29+
gem 'bootsnap', '>= 1.4.4', require: false
3030

3131
group :development, :test do
3232
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
@@ -35,16 +35,18 @@ end
3535

3636
group :development do
3737
# Access an interactive console on exception pages or by calling 'console' anywhere in the code.
38-
gem 'web-console', '>= 3.3.0'
38+
gem 'web-console', '>= 4.0.3'
39+
# Display performance information such as SQL time and flame graphs for each request in your browser.
40+
# Can be configured to work on production as well see: https://github.com/MiniProfiler/rack-mini-profiler/blob/master/README.md
41+
gem 'rack-mini-profiler', '~> 2.0'
3942
gem 'listen', '~> 3.2'
4043
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
4144
gem 'spring'
42-
gem 'spring-watcher-listen', '~> 2.0.0'
4345
end
4446

4547
group :test do
4648
# Adds support for Capybara system testing and selenium driver
47-
gem 'capybara', '>= 2.15'
49+
gem 'capybara', '>= 3.26'
4850
gem 'selenium-webdriver'
4951
# Easy installation and use of web drivers to run system tests with browsers
5052
gem 'webdrivers'

Diff for: Rakefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Add your own tasks in files placed in lib/tasks ending in .rake,
22
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
33

4-
require_relative 'config/application'
4+
require_relative "config/application"
55

66
Rails.application.load_tasks

Diff for: app/javascript/channels/consumer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Action Cable provides the framework to deal with WebSockets in Rails.
2-
// You can generate new channels where WebSocket features live using the `rails generate channel` command.
2+
// You can generate new channels where WebSocket features live using the `bin/rails generate channel` command.
33

44
import { createConsumer } from "@rails/actioncable"
55

Diff for: app/javascript/packs/application.js

+7-4
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@
33
// a relevant structure within app/javascript and only use these pack files to reference
44
// that code so it'll be compiled.
55

6-
require("@rails/ujs").start()
7-
require("turbolinks").start()
8-
require("@rails/activestorage").start()
9-
require("channels")
6+
import Rails from "@rails/ujs"
7+
import Turbolinks from "turbolinks"
8+
import * as ActiveStorage from "@rails/activestorage"
9+
import "channels"
1010

11+
Rails.start()
12+
Turbolinks.start()
13+
ActiveStorage.start()
1114

1215
// Uncomment to copy all static images under ../images to the output folder and reference
1316
// them with the image_pack_tag helper in views (e.g <%= image_pack_tag 'rails.png' %>)

Diff for: app/views/layouts/application.html.erb

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<html>
33
<head>
44
<title>Railsdiff</title>
5+
<meta name="viewport" content="width=device-width,initial-scale=1">
56
<%= csrf_meta_tags %>
67
<%= csp_meta_tag %>
78

Diff for: bin/rails

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env ruby
22
APP_PATH = File.expand_path('../config/application', __dir__)
3-
require_relative '../config/boot'
4-
require 'rails/commands'
3+
require_relative "../config/boot"
4+
require "rails/commands"

Diff for: bin/rake

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env ruby
2-
require_relative '../config/boot'
3-
require 'rake'
2+
require_relative "../config/boot"
3+
require "rake"
44
Rake.application.run

Diff for: bin/setup

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env ruby
2-
require 'fileutils'
2+
require "fileutils"
33

44
# path to your application root.
55
APP_ROOT = File.expand_path('..', __dir__)
@@ -9,16 +9,16 @@ def system!(*args)
99
end
1010

1111
FileUtils.chdir APP_ROOT do
12-
# This script is a way to setup or update your development environment automatically.
13-
# This script is idempotent, so that you can run it at anytime and get an expectable outcome.
12+
# This script is a way to set up or update your development environment automatically.
13+
# This script is idempotent, so that you can run it at any time and get an expectable outcome.
1414
# Add necessary setup steps to this file.
1515

1616
puts '== Installing dependencies =='
1717
system! 'gem install bundler --conservative'
1818
system('bundle check') || system!('bundle install')
1919

2020
# Install JavaScript dependencies
21-
# system('bin/yarn')
21+
system! 'bin/yarn'
2222

2323
# puts "\n== Copying sample files =="
2424
# unless File.exist?('config/database.yml')

Diff for: bin/spring

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env ruby
2+
# Load Spring without loading other gems in the Gemfile, for speed.
3+
require "bundler"
4+
Bundler.locked_gems.specs.find { |spec| spec.name == "spring" }&.tap do |spring|
5+
Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path
6+
gem "spring", spring.version
7+
require "spring/binstub"
8+
end

Diff for: bin/yarn

+5-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
#!/usr/bin/env ruby
22
APP_ROOT = File.expand_path('..', __dir__)
33
Dir.chdir(APP_ROOT) do
4-
begin
5-
exec "yarnpkg", *ARGV
6-
rescue Errno::ENOENT
7-
$stderr.puts "Yarn executable was not detected in the system."
8-
$stderr.puts "Download Yarn at https://yarnpkg.com/en/docs/install"
9-
exit 1
10-
end
4+
exec "yarn", *ARGV
5+
rescue Errno::ENOENT
6+
$stderr.puts "Yarn executable was not detected in the system."
7+
$stderr.puts "Download Yarn at https://yarnpkg.com/en/docs/install"
8+
exit 1
119
end

Diff for: config.ru

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# This file is used by Rack-based servers to start the application.
22

3-
require_relative 'config/environment'
3+
require_relative "config/environment"
44

55
run Rails.application
6+
Rails.application.load_server

Diff for: config/application.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
require_relative 'boot'
1+
require_relative "boot"
22

3-
require 'rails/all'
3+
require "rails/all"
44

55
# Require the gems listed in Gemfile, including any gems
66
# you've limited to :test, :development, or :production.
@@ -9,7 +9,7 @@
99
module Railsdiff
1010
class Application < Rails::Application
1111
# Initialize configuration defaults for originally generated Rails version.
12-
config.load_defaults 6.0
12+
config.load_defaults 6.1
1313

1414
# Settings in config/environments/* take precedence over those specified here.
1515
# Application configuration can go into files in config/initializers

Diff for: config/boot.rb

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
22

3-
require 'bundler/setup' # Set up gems listed in the Gemfile.
4-
require 'bootsnap/setup' # Speed up boot time by caching expensive operations.
3+
if !defined?(Spring) && [nil, "development", "test"].include?(ENV["RAILS_ENV"])
4+
load File.expand_path("../bin/spring", __dir__)
5+
end
6+
7+
require "bundler/setup" # Set up gems listed in the Gemfile.
8+
require "bootsnap/setup" # Speed up boot time by caching expensive operations.

Diff for: config/environment.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Load the Rails application.
2-
require_relative 'application'
2+
require_relative "application"
33

44
# Initialize the Rails application.
55
Rails.application.initialize!

Diff for: config/environments/development.rb

+17-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1+
require "active_support/core_ext/integer/time"
2+
13
Rails.application.configure do
24
# Settings specified here will take precedence over those in config/application.rb.
35

4-
# In the development environment your application's code is reloaded on
5-
# every request. This slows down response time but is perfect for development
6+
# In the development environment your application's code is reloaded any time
7+
# it changes. This slows down response time but is perfect for development
68
# since you don't have to restart the web server when you make code changes.
79
config.cache_classes = false
810

@@ -39,6 +41,12 @@
3941
# Print deprecation notices to the Rails logger.
4042
config.active_support.deprecation = :log
4143

44+
# Raise exceptions for disallowed deprecations.
45+
config.active_support.disallowed_deprecation = :raise
46+
47+
# Tell Active Support which deprecation messages to disallow.
48+
config.active_support.disallowed_deprecation_warnings = []
49+
4250
# Raise an error on page load if there are pending migrations.
4351
config.active_record.migration_error = :page_load
4452

@@ -54,9 +62,15 @@
5462
config.assets.quiet = true
5563

5664
# Raises error for missing translations.
57-
# config.action_view.raise_on_missing_translations = true
65+
# config.i18n.raise_on_missing_translations = true
66+
67+
# Annotate rendered view with file names.
68+
# config.action_view.annotate_rendered_view_with_filenames = true
5869

5970
# Use an evented file watcher to asynchronously detect changes in source code,
6071
# routes, locales, etc. This feature depends on the listen gem.
6172
config.file_watcher = ActiveSupport::EventedFileUpdateChecker
73+
74+
# Uncomment if you wish to allow Action Cable access from any origin.
75+
# config.action_cable.disable_request_forgery_protection = true
6276
end

Diff for: config/environments/production.rb

+12-4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
require "active_support/core_ext/integer/time"
2+
13
Rails.application.configure do
24
# Settings specified here will take precedence over those in config/application.rb.
35

@@ -46,9 +48,9 @@
4648
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
4749
# config.force_ssl = true
4850

49-
# Use the lowest log level to ensure availability of diagnostic information
50-
# when problems arise.
51-
config.log_level = :debug
51+
# Include generic and useful information about system operation, but avoid logging too much
52+
# information to avoid inadvertent exposure of personally identifiable information (PII).
53+
config.log_level = :info
5254

5355
# Prepend all log lines with the following tags.
5456
config.log_tags = [ :request_id ]
@@ -73,11 +75,17 @@
7375
# Send deprecation notices to registered listeners.
7476
config.active_support.deprecation = :notify
7577

78+
# Log disallowed deprecations.
79+
config.active_support.disallowed_deprecation = :log
80+
81+
# Tell Active Support which deprecation messages to disallow.
82+
config.active_support.disallowed_deprecation_warnings = []
83+
7684
# Use default logging formatter so that PID and timestamp are not suppressed.
7785
config.log_formatter = ::Logger::Formatter.new
7886

7987
# Use a different logger for distributed setups.
80-
# require 'syslog/logger'
88+
# require "syslog/logger"
8189
# config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name')
8290

8391
if ENV["RAILS_LOG_TO_STDOUT"].present?

Diff for: config/environments/test.rb

+12-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
require "active_support/core_ext/integer/time"
2+
13
# The test environment is used exclusively to run your application's
24
# test suite. You never need to work with it otherwise. Remember that
35
# your test database is "scratch space" for the test suite and is wiped
@@ -44,6 +46,15 @@
4446
# Print deprecation notices to the stderr.
4547
config.active_support.deprecation = :stderr
4648

49+
# Raise exceptions for disallowed deprecations.
50+
config.active_support.disallowed_deprecation = :raise
51+
52+
# Tell Active Support which deprecation messages to disallow.
53+
config.active_support.disallowed_deprecation_warnings = []
54+
4755
# Raises error for missing translations.
48-
# config.action_view.raise_on_missing_translations = true
56+
# config.i18n.raise_on_missing_translations = true
57+
58+
# Annotate rendered view with file names.
59+
# config.action_view.annotate_rendered_view_with_filenames = true
4960
end

Diff for: config/initializers/backtrace_silencers.rb

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# Be sure to restart your server when you modify this file.
22

33
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4-
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
4+
# Rails.backtrace_cleaner.add_silencer { |line| /my_noisy_library/.match?(line) }
55

6-
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7-
# Rails.backtrace_cleaner.remove_silencers!
6+
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code
7+
# by setting BACKTRACE=1 before calling your invocation, like "BACKTRACE=1 ./bin/rails runner 'MyClass.perform'".
8+
Rails.backtrace_cleaner.remove_silencers! if ENV["BACKTRACE"]

Diff for: config/initializers/feature_policy.rb

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Define an application-wide HTTP feature policy. For further
2+
# information see https://developers.google.com/web/updates/2018/06/feature-policy
3+
#
4+
# Rails.application.config.feature_policy do |f|
5+
# f.camera :none
6+
# f.gyroscope :none
7+
# f.microphone :none
8+
# f.usb :none
9+
# f.fullscreen :self
10+
# f.payment :self, "https://secure.example.com"
11+
# end

Diff for: config/initializers/filter_parameter_logging.rb

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# Be sure to restart your server when you modify this file.
22

33
# Configure sensitive parameters which will be filtered from the log file.
4-
Rails.application.config.filter_parameters += [:password]
4+
Rails.application.config.filter_parameters += [
5+
:passw, :secret, :token, :_key, :crypt, :salt, :certificate, :otp, :ssn
6+
]

Diff for: config/puma.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
# Specifies the `port` that Puma will listen on to receive requests; default is 3000.
1212
#
13-
port ENV.fetch("PORT") { 3000 }
13+
port ENV.fetch("PORT") { 3000 }
1414

1515
# Specifies the `environment` that Puma will run in.
1616
#

Diff for: db/seeds.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This file should contain all the record creation needed to seed the database with its default values.
2-
# The data can then be loaded with the rails db:seed command (or created alongside the database with db:setup).
2+
# The data can then be loaded with the bin/rails db:seed command (or created alongside the database with db:setup).
33
#
44
# Examples:
55
#

Diff for: test/fixtures/.keep

Whitespace-only changes.

Diff for: test/test_helper.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ENV['RAILS_ENV'] ||= 'test'
2-
require_relative '../config/environment'
3-
require 'rails/test_help'
2+
require_relative "../config/environment"
3+
require "rails/test_help"
44

55
class ActiveSupport::TestCase
66
# Run tests in parallel with specified workers

0 commit comments

Comments
 (0)