Bump Rails to 7.0.3.1 (#18096)
* Bump Rails to 7.0.3.1 * Add yaml_column_permitted_classes * Update yaml_column_permitted_classes * Fix broken spec
This commit is contained in:
parent
5166581a34
commit
1c40cd0305
34 changed files with 63 additions and 58 deletions
2
Gemfile
2
Gemfile
|
|
@ -78,7 +78,7 @@ gem "pundit", "~> 2.2" # Object oriented authorization for Rails applications
|
|||
gem "rack-attack", "~> 6.6.1" # Used to throttle requests to prevent brute force attacks
|
||||
gem "rack-cors", "~> 1.1" # Middleware that will make Rack-based apps CORS compatible
|
||||
gem "rack-timeout", "~> 0.6" # Rack middleware which aborts requests that have been running for longer than a specified timeout
|
||||
gem "rails", "~> 7.0.2.2" # Ruby on Rails
|
||||
gem "rails", "~> 7.0.3.1" # Ruby on Rails
|
||||
gem "ransack", "~> 3.2" # Searching and sorting
|
||||
gem "recaptcha", "~> 5.10", require: "recaptcha/rails" # Helpers for the reCAPTCHA API
|
||||
gem "redcarpet", "~> 3.5" # A fast, safe and extensible Markdown to (X)HTML parser
|
||||
|
|
|
|||
114
Gemfile.lock
114
Gemfile.lock
|
|
@ -9,69 +9,69 @@ GIT
|
|||
GEM
|
||||
remote: https://rubygems.org/
|
||||
specs:
|
||||
actioncable (7.0.2.4)
|
||||
actionpack (= 7.0.2.4)
|
||||
activesupport (= 7.0.2.4)
|
||||
actioncable (7.0.3.1)
|
||||
actionpack (= 7.0.3.1)
|
||||
activesupport (= 7.0.3.1)
|
||||
nio4r (~> 2.0)
|
||||
websocket-driver (>= 0.6.1)
|
||||
actionmailbox (7.0.2.4)
|
||||
actionpack (= 7.0.2.4)
|
||||
activejob (= 7.0.2.4)
|
||||
activerecord (= 7.0.2.4)
|
||||
activestorage (= 7.0.2.4)
|
||||
activesupport (= 7.0.2.4)
|
||||
actionmailbox (7.0.3.1)
|
||||
actionpack (= 7.0.3.1)
|
||||
activejob (= 7.0.3.1)
|
||||
activerecord (= 7.0.3.1)
|
||||
activestorage (= 7.0.3.1)
|
||||
activesupport (= 7.0.3.1)
|
||||
mail (>= 2.7.1)
|
||||
net-imap
|
||||
net-pop
|
||||
net-smtp
|
||||
actionmailer (7.0.2.4)
|
||||
actionpack (= 7.0.2.4)
|
||||
actionview (= 7.0.2.4)
|
||||
activejob (= 7.0.2.4)
|
||||
activesupport (= 7.0.2.4)
|
||||
actionmailer (7.0.3.1)
|
||||
actionpack (= 7.0.3.1)
|
||||
actionview (= 7.0.3.1)
|
||||
activejob (= 7.0.3.1)
|
||||
activesupport (= 7.0.3.1)
|
||||
mail (~> 2.5, >= 2.5.4)
|
||||
net-imap
|
||||
net-pop
|
||||
net-smtp
|
||||
rails-dom-testing (~> 2.0)
|
||||
actionpack (7.0.2.4)
|
||||
actionview (= 7.0.2.4)
|
||||
activesupport (= 7.0.2.4)
|
||||
actionpack (7.0.3.1)
|
||||
actionview (= 7.0.3.1)
|
||||
activesupport (= 7.0.3.1)
|
||||
rack (~> 2.0, >= 2.2.0)
|
||||
rack-test (>= 0.6.3)
|
||||
rails-dom-testing (~> 2.0)
|
||||
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
||||
actiontext (7.0.2.4)
|
||||
actionpack (= 7.0.2.4)
|
||||
activerecord (= 7.0.2.4)
|
||||
activestorage (= 7.0.2.4)
|
||||
activesupport (= 7.0.2.4)
|
||||
actiontext (7.0.3.1)
|
||||
actionpack (= 7.0.3.1)
|
||||
activerecord (= 7.0.3.1)
|
||||
activestorage (= 7.0.3.1)
|
||||
activesupport (= 7.0.3.1)
|
||||
globalid (>= 0.6.0)
|
||||
nokogiri (>= 1.8.5)
|
||||
actionview (7.0.2.4)
|
||||
activesupport (= 7.0.2.4)
|
||||
actionview (7.0.3.1)
|
||||
activesupport (= 7.0.3.1)
|
||||
builder (~> 3.1)
|
||||
erubi (~> 1.4)
|
||||
rails-dom-testing (~> 2.0)
|
||||
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
||||
active_record_union (1.3.0)
|
||||
activerecord (>= 4.0)
|
||||
activejob (7.0.2.4)
|
||||
activesupport (= 7.0.2.4)
|
||||
activejob (7.0.3.1)
|
||||
activesupport (= 7.0.3.1)
|
||||
globalid (>= 0.3.6)
|
||||
activemodel (7.0.2.4)
|
||||
activesupport (= 7.0.2.4)
|
||||
activerecord (7.0.2.4)
|
||||
activemodel (= 7.0.2.4)
|
||||
activesupport (= 7.0.2.4)
|
||||
activestorage (7.0.2.4)
|
||||
actionpack (= 7.0.2.4)
|
||||
activejob (= 7.0.2.4)
|
||||
activerecord (= 7.0.2.4)
|
||||
activesupport (= 7.0.2.4)
|
||||
activemodel (7.0.3.1)
|
||||
activesupport (= 7.0.3.1)
|
||||
activerecord (7.0.3.1)
|
||||
activemodel (= 7.0.3.1)
|
||||
activesupport (= 7.0.3.1)
|
||||
activestorage (7.0.3.1)
|
||||
actionpack (= 7.0.3.1)
|
||||
activejob (= 7.0.3.1)
|
||||
activerecord (= 7.0.3.1)
|
||||
activesupport (= 7.0.3.1)
|
||||
marcel (~> 1.0)
|
||||
mini_mime (>= 1.1.0)
|
||||
activesupport (7.0.2.4)
|
||||
activesupport (7.0.3.1)
|
||||
concurrent-ruby (~> 1.0, >= 1.0.2)
|
||||
i18n (>= 1.6, < 2)
|
||||
minitest (>= 5.1)
|
||||
|
|
@ -395,7 +395,7 @@ GEM
|
|||
httpclient (2.8.3)
|
||||
hypershield (0.2.2)
|
||||
activerecord (>= 5)
|
||||
i18n (1.10.0)
|
||||
i18n (1.11.0)
|
||||
concurrent-ruby (~> 1.0)
|
||||
i18n-js (3.9.2)
|
||||
i18n (>= 0.6.6)
|
||||
|
|
@ -631,23 +631,23 @@ GEM
|
|||
rack
|
||||
rack-proxy (0.7.0)
|
||||
rack
|
||||
rack-test (1.1.0)
|
||||
rack (>= 1.0, < 3)
|
||||
rack-test (2.0.2)
|
||||
rack (>= 1.3)
|
||||
rack-timeout (0.6.3)
|
||||
rails (7.0.2.4)
|
||||
actioncable (= 7.0.2.4)
|
||||
actionmailbox (= 7.0.2.4)
|
||||
actionmailer (= 7.0.2.4)
|
||||
actionpack (= 7.0.2.4)
|
||||
actiontext (= 7.0.2.4)
|
||||
actionview (= 7.0.2.4)
|
||||
activejob (= 7.0.2.4)
|
||||
activemodel (= 7.0.2.4)
|
||||
activerecord (= 7.0.2.4)
|
||||
activestorage (= 7.0.2.4)
|
||||
activesupport (= 7.0.2.4)
|
||||
rails (7.0.3.1)
|
||||
actioncable (= 7.0.3.1)
|
||||
actionmailbox (= 7.0.3.1)
|
||||
actionmailer (= 7.0.3.1)
|
||||
actionpack (= 7.0.3.1)
|
||||
actiontext (= 7.0.3.1)
|
||||
actionview (= 7.0.3.1)
|
||||
activejob (= 7.0.3.1)
|
||||
activemodel (= 7.0.3.1)
|
||||
activerecord (= 7.0.3.1)
|
||||
activestorage (= 7.0.3.1)
|
||||
activesupport (= 7.0.3.1)
|
||||
bundler (>= 1.15.0)
|
||||
railties (= 7.0.2.4)
|
||||
railties (= 7.0.3.1)
|
||||
rails-dom-testing (2.0.3)
|
||||
activesupport (>= 4.2.0)
|
||||
nokogiri (>= 1.6)
|
||||
|
|
@ -656,9 +656,9 @@ GEM
|
|||
rails-i18n (7.0.3)
|
||||
i18n (>= 0.7, < 2)
|
||||
railties (>= 6.0.0, < 8)
|
||||
railties (7.0.2.4)
|
||||
actionpack (= 7.0.2.4)
|
||||
activesupport (= 7.0.2.4)
|
||||
railties (7.0.3.1)
|
||||
actionpack (= 7.0.3.1)
|
||||
activesupport (= 7.0.3.1)
|
||||
method_source
|
||||
rake (>= 12.2)
|
||||
thor (~> 1.0)
|
||||
|
|
@ -1057,7 +1057,7 @@ DEPENDENCIES
|
|||
rack-cors (~> 1.1)
|
||||
rack-host-redirect (~> 1.3)
|
||||
rack-timeout (~> 0.6)
|
||||
rails (~> 7.0.2.2)
|
||||
rails (~> 7.0.3.1)
|
||||
ransack (~> 3.2)
|
||||
recaptcha (~> 5.10)
|
||||
redcarpet (~> 3.5)
|
||||
|
|
|
|||
|
|
@ -59,6 +59,10 @@ module PracticalDeveloper
|
|||
# To disable parameter wrapping entirely, set this config to `false`.
|
||||
config.action_controller.wrap_parameters_by_default = false
|
||||
### END FRAMEWORK DEFAULT OVERIDES
|
||||
config.active_record.yaml_column_permitted_classes = %w[Symbol Time OmniAuth::AuthHash Twitter::Entity::URI
|
||||
Twitter::Entity::Hashtag Twitter::Entity::UserMention
|
||||
Twitter::Entity::Cashtag Articles::CachedEntity
|
||||
OmniAuth::AuthHash::InfoHash OpenStruct]
|
||||
|
||||
# Disable auto adding of default load paths to $LOAD_PATH
|
||||
# Setting this to false saves Ruby from checking these directories when
|
||||
|
|
|
|||
|
|
@ -76,6 +76,7 @@ RSpec.describe "ImageUploads", type: :request do
|
|||
|
||||
it "returns error if image file is not a file" do
|
||||
allow(bad_image).to receive(:respond_to?).with(:original_filename).and_return(false)
|
||||
allow(bad_image).to receive(:respond_to?).with(:to_ary, true).and_call_original
|
||||
post "/image_uploads", headers: headers, params: { image: bad_image }
|
||||
expect(response).to have_http_status(:unprocessable_entity)
|
||||
end
|
||||
|
|
|
|||
BIN
vendor/cache/actioncable-7.0.2.4.gem
vendored
BIN
vendor/cache/actioncable-7.0.2.4.gem
vendored
Binary file not shown.
BIN
vendor/cache/actioncable-7.0.3.1.gem
vendored
Normal file
BIN
vendor/cache/actioncable-7.0.3.1.gem
vendored
Normal file
Binary file not shown.
BIN
vendor/cache/actionmailbox-7.0.2.4.gem
vendored
BIN
vendor/cache/actionmailbox-7.0.2.4.gem
vendored
Binary file not shown.
BIN
vendor/cache/actionmailbox-7.0.3.1.gem
vendored
Normal file
BIN
vendor/cache/actionmailbox-7.0.3.1.gem
vendored
Normal file
Binary file not shown.
BIN
vendor/cache/actionmailer-7.0.2.4.gem
vendored
BIN
vendor/cache/actionmailer-7.0.2.4.gem
vendored
Binary file not shown.
BIN
vendor/cache/actionmailer-7.0.3.1.gem
vendored
Normal file
BIN
vendor/cache/actionmailer-7.0.3.1.gem
vendored
Normal file
Binary file not shown.
BIN
vendor/cache/actionpack-7.0.2.4.gem
vendored
BIN
vendor/cache/actionpack-7.0.2.4.gem
vendored
Binary file not shown.
BIN
vendor/cache/actionpack-7.0.3.1.gem
vendored
Normal file
BIN
vendor/cache/actionpack-7.0.3.1.gem
vendored
Normal file
Binary file not shown.
BIN
vendor/cache/actiontext-7.0.2.4.gem
vendored
BIN
vendor/cache/actiontext-7.0.2.4.gem
vendored
Binary file not shown.
BIN
vendor/cache/actiontext-7.0.3.1.gem
vendored
Normal file
BIN
vendor/cache/actiontext-7.0.3.1.gem
vendored
Normal file
Binary file not shown.
BIN
vendor/cache/actionview-7.0.2.4.gem
vendored
BIN
vendor/cache/actionview-7.0.2.4.gem
vendored
Binary file not shown.
BIN
vendor/cache/actionview-7.0.3.1.gem
vendored
Normal file
BIN
vendor/cache/actionview-7.0.3.1.gem
vendored
Normal file
Binary file not shown.
BIN
vendor/cache/activejob-7.0.2.4.gem
vendored
BIN
vendor/cache/activejob-7.0.2.4.gem
vendored
Binary file not shown.
BIN
vendor/cache/activejob-7.0.3.1.gem
vendored
Normal file
BIN
vendor/cache/activejob-7.0.3.1.gem
vendored
Normal file
Binary file not shown.
BIN
vendor/cache/activemodel-7.0.2.4.gem
vendored
BIN
vendor/cache/activemodel-7.0.2.4.gem
vendored
Binary file not shown.
BIN
vendor/cache/activemodel-7.0.3.1.gem
vendored
Normal file
BIN
vendor/cache/activemodel-7.0.3.1.gem
vendored
Normal file
Binary file not shown.
BIN
vendor/cache/activerecord-7.0.2.4.gem
vendored
BIN
vendor/cache/activerecord-7.0.2.4.gem
vendored
Binary file not shown.
BIN
vendor/cache/activerecord-7.0.3.1.gem
vendored
Normal file
BIN
vendor/cache/activerecord-7.0.3.1.gem
vendored
Normal file
Binary file not shown.
BIN
vendor/cache/activestorage-7.0.2.4.gem
vendored
BIN
vendor/cache/activestorage-7.0.2.4.gem
vendored
Binary file not shown.
BIN
vendor/cache/activestorage-7.0.3.1.gem
vendored
Normal file
BIN
vendor/cache/activestorage-7.0.3.1.gem
vendored
Normal file
Binary file not shown.
BIN
vendor/cache/activesupport-7.0.2.4.gem
vendored
BIN
vendor/cache/activesupport-7.0.2.4.gem
vendored
Binary file not shown.
BIN
vendor/cache/activesupport-7.0.3.1.gem
vendored
Normal file
BIN
vendor/cache/activesupport-7.0.3.1.gem
vendored
Normal file
Binary file not shown.
BIN
vendor/cache/i18n-1.10.0.gem
vendored
BIN
vendor/cache/i18n-1.10.0.gem
vendored
Binary file not shown.
BIN
vendor/cache/i18n-1.11.0.gem
vendored
Normal file
BIN
vendor/cache/i18n-1.11.0.gem
vendored
Normal file
Binary file not shown.
BIN
vendor/cache/rack-test-1.1.0.gem
vendored
BIN
vendor/cache/rack-test-1.1.0.gem
vendored
Binary file not shown.
BIN
vendor/cache/rack-test-2.0.2.gem
vendored
Normal file
BIN
vendor/cache/rack-test-2.0.2.gem
vendored
Normal file
Binary file not shown.
BIN
vendor/cache/rails-7.0.2.4.gem
vendored
BIN
vendor/cache/rails-7.0.2.4.gem
vendored
Binary file not shown.
BIN
vendor/cache/rails-7.0.3.1.gem
vendored
Normal file
BIN
vendor/cache/rails-7.0.3.1.gem
vendored
Normal file
Binary file not shown.
BIN
vendor/cache/railties-7.0.2.4.gem
vendored
BIN
vendor/cache/railties-7.0.2.4.gem
vendored
Binary file not shown.
BIN
vendor/cache/railties-7.0.3.1.gem
vendored
Normal file
BIN
vendor/cache/railties-7.0.3.1.gem
vendored
Normal file
Binary file not shown.
Loading…
Add table
Reference in a new issue