From 99adf20d2bca0957c340d42317e4101cd54da4d0 Mon Sep 17 00:00:00 2001 From: "depfu[bot]" <23717796+depfu[bot]@users.noreply.github.com> Date: Fri, 6 Oct 2023 10:12:15 +0000 Subject: [PATCH] Update all of rails to version 7.1.0 --- Gemfile | 2 +- Gemfile.lock | 155 +++++++++++++---------- spec/requests/stories_controller_spec.rb | 18 ++- 3 files changed, 101 insertions(+), 74 deletions(-) diff --git a/Gemfile b/Gemfile index 4d979de51..55ee82be6 100644 --- a/Gemfile +++ b/Gemfile @@ -7,7 +7,7 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" } gem "dotenv-rails" -gem "rails", "~> 7.0.1" +gem "rails", "~> 7.1.0" gem "bcrypt" gem "bootsnap", require: false diff --git a/Gemfile.lock b/Gemfile.lock index 4864f13e2..72f781fb8 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,76 +1,85 @@ GEM remote: https://rubygems.org/ specs: - actioncable (7.0.8) - actionpack (= 7.0.8) - activesupport (= 7.0.8) + actioncable (7.1.0) + actionpack (= 7.1.0) + activesupport (= 7.1.0) nio4r (~> 2.0) websocket-driver (>= 0.6.1) - actionmailbox (7.0.8) - actionpack (= 7.0.8) - activejob (= 7.0.8) - activerecord (= 7.0.8) - activestorage (= 7.0.8) - activesupport (= 7.0.8) + zeitwerk (~> 2.6) + actionmailbox (7.1.0) + actionpack (= 7.1.0) + activejob (= 7.1.0) + activerecord (= 7.1.0) + activestorage (= 7.1.0) + activesupport (= 7.1.0) mail (>= 2.7.1) net-imap net-pop net-smtp - actionmailer (7.0.8) - actionpack (= 7.0.8) - actionview (= 7.0.8) - activejob (= 7.0.8) - activesupport (= 7.0.8) + actionmailer (7.1.0) + actionpack (= 7.1.0) + actionview (= 7.1.0) + activejob (= 7.1.0) + activesupport (= 7.1.0) mail (~> 2.5, >= 2.5.4) net-imap net-pop net-smtp - rails-dom-testing (~> 2.0) - actionpack (7.0.8) - actionview (= 7.0.8) - activesupport (= 7.0.8) - rack (~> 2.0, >= 2.2.4) + rails-dom-testing (~> 2.2) + actionpack (7.1.0) + actionview (= 7.1.0) + activesupport (= 7.1.0) + nokogiri (>= 1.8.5) + rack (>= 2.2.4) + rack-session (>= 1.0.1) rack-test (>= 0.6.3) - rails-dom-testing (~> 2.0) - rails-html-sanitizer (~> 1.0, >= 1.2.0) - actiontext (7.0.8) - actionpack (= 7.0.8) - activerecord (= 7.0.8) - activestorage (= 7.0.8) - activesupport (= 7.0.8) + rails-dom-testing (~> 2.2) + rails-html-sanitizer (~> 1.6) + actiontext (7.1.0) + actionpack (= 7.1.0) + activerecord (= 7.1.0) + activestorage (= 7.1.0) + activesupport (= 7.1.0) globalid (>= 0.6.0) nokogiri (>= 1.8.5) - actionview (7.0.8) - activesupport (= 7.0.8) + actionview (7.1.0) + activesupport (= 7.1.0) builder (~> 3.1) - erubi (~> 1.4) - rails-dom-testing (~> 2.0) - rails-html-sanitizer (~> 1.1, >= 1.2.0) - activejob (7.0.8) - activesupport (= 7.0.8) + erubi (~> 1.11) + rails-dom-testing (~> 2.2) + rails-html-sanitizer (~> 1.6) + activejob (7.1.0) + activesupport (= 7.1.0) globalid (>= 0.3.6) - activemodel (7.0.8) - activesupport (= 7.0.8) - activerecord (7.0.8) - activemodel (= 7.0.8) - activesupport (= 7.0.8) - activestorage (7.0.8) - actionpack (= 7.0.8) - activejob (= 7.0.8) - activerecord (= 7.0.8) - activesupport (= 7.0.8) + activemodel (7.1.0) + activesupport (= 7.1.0) + activerecord (7.1.0) + activemodel (= 7.1.0) + activesupport (= 7.1.0) + timeout (>= 0.4.0) + activestorage (7.1.0) + actionpack (= 7.1.0) + activejob (= 7.1.0) + activerecord (= 7.1.0) + activesupport (= 7.1.0) marcel (~> 1.0) - mini_mime (>= 1.1.0) - activesupport (7.0.8) + activesupport (7.1.0) + base64 + bigdecimal concurrent-ruby (~> 1.0, >= 1.0.2) + connection_pool (>= 2.2.5) + drb i18n (>= 1.6, < 2) minitest (>= 5.1) + mutex_m tzinfo (~> 2.0) addressable (2.8.5) public_suffix (>= 2.0.2, < 6.0) ast (2.4.2) base64 (0.1.1) bcrypt (3.1.19) + bigdecimal (3.1.4) bindex (0.8.1) bootsnap (1.16.0) msgpack (~> 1.2) @@ -87,6 +96,7 @@ GEM xpath (~> 3.2) coderay (1.1.3) concurrent-ruby (1.2.2) + connection_pool (2.4.1) coveralls_reborn (0.28.0) simplecov (~> 0.22.0) term-ansicolor (~> 1.7) @@ -105,6 +115,8 @@ GEM dotenv-rails (2.8.1) dotenv (= 2.8.1) railties (>= 3.2) + drb (2.1.1) + ruby2_keywords erubi (1.12.0) et-orbi (1.2.7) tzinfo @@ -157,7 +169,8 @@ GEM minitest (5.20.0) msgpack (1.7.2) multi_xml (0.6.0) - net-imap (0.3.7) + mutex_m (0.1.2) + net-imap (0.4.0) date net-protocol net-pop (0.1.2) @@ -188,25 +201,30 @@ GEM nio4r (~> 2.0) raabro (1.4.0) racc (1.7.1) - rack (2.2.8) + rack (3.0.8) + rack-session (2.0.0) + rack (>= 3.0.0) rack-ssl (1.4.1) rack rack-test (2.1.0) rack (>= 1.3) - rails (7.0.8) - actioncable (= 7.0.8) - actionmailbox (= 7.0.8) - actionmailer (= 7.0.8) - actionpack (= 7.0.8) - actiontext (= 7.0.8) - actionview (= 7.0.8) - activejob (= 7.0.8) - activemodel (= 7.0.8) - activerecord (= 7.0.8) - activestorage (= 7.0.8) - activesupport (= 7.0.8) + rackup (2.1.0) + rack (>= 3) + webrick (~> 1.8) + rails (7.1.0) + actioncable (= 7.1.0) + actionmailbox (= 7.1.0) + actionmailer (= 7.1.0) + actionpack (= 7.1.0) + actiontext (= 7.1.0) + actionview (= 7.1.0) + activejob (= 7.1.0) + activemodel (= 7.1.0) + activerecord (= 7.1.0) + activestorage (= 7.1.0) + activesupport (= 7.1.0) bundler (>= 1.15.0) - railties (= 7.0.8) + railties (= 7.1.0) rails-dom-testing (2.2.0) activesupport (>= 5.0.0) minitest @@ -214,13 +232,14 @@ GEM rails-html-sanitizer (1.6.0) loofah (~> 2.21) nokogiri (~> 1.14) - railties (7.0.8) - actionpack (= 7.0.8) - activesupport (= 7.0.8) - method_source + railties (7.1.0) + actionpack (= 7.1.0) + activesupport (= 7.1.0) + irb + rackup (>= 1.0.0) rake (>= 12.2) - thor (~> 1.0) - zeitwerk (~> 2.5) + thor (~> 1.0, >= 1.2.2) + zeitwerk (~> 2.6) rainbow (3.1.1) rake (13.0.6) rb-fsevent (0.11.2) @@ -282,6 +301,7 @@ GEM rubocop-capybara (~> 2.17) rubocop-factory_bot (~> 2.22) ruby-progressbar (1.13.0) + ruby2_keywords (0.0.5) rubyzip (2.3.2) sass (3.7.4) sass-listen (~> 4.0.0) @@ -334,6 +354,7 @@ GEM addressable (>= 2.8.0) crack (>= 0.3.2) hashdiff (>= 0.4.0, < 2.0.0) + webrick (1.8.1) websocket (1.2.10) websocket-driver (0.7.6) websocket-extensions (>= 0.1.0) @@ -365,7 +386,7 @@ DEPENDENCIES pry-byebug puma (~> 6.0) rack-ssl - rails (~> 7.0.1) + rails (~> 7.1.0) rspec rspec-rails rubocop diff --git a/spec/requests/stories_controller_spec.rb b/spec/requests/stories_controller_spec.rb index 95e7625ac..26a265208 100644 --- a/spec/requests/stories_controller_spec.rb +++ b/spec/requests/stories_controller_spec.rb @@ -95,48 +95,54 @@ def setup it "marks a story as read when it is_read not malformed" do login_as(default_user) params = { is_read: true }.to_json + env = {'RAW_POST_DATA' => params } - expect { put("/stories/#{story_one.id}", params:) } + expect { put("/stories/#{story_one.id}", env:) } .to change_record(story_one, :is_read).from(false).to(true) end it "marks a story as read when is_read is malformed" do login_as(default_user) params = { is_read: "malformed" }.to_json + env = {'RAW_POST_DATA' => params } - expect { put("/stories/#{story_one.id}", params:) } + expect { put("/stories/#{story_one.id}", env:) } .to change_record(story_one, :is_read).from(false).to(true) end it "marks a story as keep unread when it keep_unread not malformed" do login_as(default_user) params = { keep_unread: true }.to_json + env = {'RAW_POST_DATA' => params } - expect { put("/stories/#{story_one.id}", params:) } + expect { put("/stories/#{story_one.id}", env:) } .to change_record(story_one, :keep_unread).from(false).to(true) end it "marks a story as keep unread when keep_unread is malformed" do login_as(default_user) params = { keep_unread: "malformed" }.to_json + env = {'RAW_POST_DATA' => params } - expect { put("/stories/#{story_one.id}", params:) } + expect { put("/stories/#{story_one.id}", env:) } .to change_record(story_one, :keep_unread).from(false).to(true) end it "marks a story as starred when is_starred is not malformed" do login_as(default_user) params = { is_starred: true }.to_json + env = {'RAW_POST_DATA' => params } - expect { put("/stories/#{story_one.id}", params:) } + expect { put("/stories/#{story_one.id}", env:) } .to change_record(story_one, :is_starred).from(false).to(true) end it "marks a story as starred when is_starred is malformed" do login_as(default_user) params = { is_starred: "malformed" }.to_json + env = {'RAW_POST_DATA' => params } - expect { put("/stories/#{story_one.id}", params:) } + expect { put("/stories/#{story_one.id}", env:) } .to change_record(story_one, :is_starred).from(false).to(true) end end