Skip to content

Commit

Permalink
chore: update puma and jquery
Browse files Browse the repository at this point in the history
  • Loading branch information
route committed Nov 9, 2023
1 parent 449d115 commit dd92714
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 24 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ gem "chunky_png", "~> 1.4"
gem "image_size", "~> 3.0"
gem "launchy", "~> 2.5"
gem "pdf-reader", "~> 2.5"
gem "puma", "~> 4.3"
gem "puma", ">= 5.6.7"
gem "rake", "~> 13.0"
gem "rspec", "~> 3.10"
gem "rubocop", "~> 1.22"
Expand Down
4 changes: 2 additions & 2 deletions spec/features/driver_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -766,8 +766,8 @@ def create_screenshot(file, *args)
@session.visit("/cuprite/with_js")
responses = @driver.network_traffic.map(&:response)
resources_size = {
%r{/cuprite/jquery.min.js$} => File.size("#{PROJECT_ROOT}/spec/support/public/jquery-1.11.3.min.js"),
%r{/cuprite/jquery-ui.min.js$} => File.size("#{PROJECT_ROOT}/spec/support/public/jquery-ui-1.11.4.min.js"),
%r{/cuprite/jquery.min.js$} => File.size("#{PROJECT_ROOT}/spec/support/public/jquery-3.7.1.min.js"),
%r{/cuprite/jquery-ui.min.js$} => File.size("#{PROJECT_ROOT}/spec/support/public/jquery-ui-1.13.2.min.js"),
%r{/cuprite/test.js$} => File.size("#{PROJECT_ROOT}/spec/support/public/test.js")
}

Expand Down
4 changes: 3 additions & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

puts ""
command = Ferrum::Browser::Command.build(Ferrum::Browser::Options.new, nil)
puts `'#{Shellwords.escape(command.path)}' --version`
puts `#{Shellwords.escape(command.path)} --version`
puts ""

Capybara.save_path = File.join(PROJECT_ROOT, "spec", "tmp", "save_path")
Expand Down Expand Up @@ -57,6 +57,7 @@ module TestSessions
node #drag_to HTML5 should simulate a single held down modifier key
node #drag_to HTML5 should simulate multiple held down modifier keys
node #drag_to HTML5 should support key aliases
node #drag_to HTML5 should trigger a dragenter event, before the first dragover event
node Element#drop can drop a file
node Element#drop can drop multiple files
node Element#drop can drop strings
Expand All @@ -66,6 +67,7 @@ module TestSessions
node #visible? works when details is toggled open and closed
node #path reports when element in shadow dom
node #shadow_root
node #set should submit single text input forms if ended with
#all with obscured filter should only find nodes on top in the viewport when false
#all with obscured filter should not find nodes on top outside the viewport when false
#all with obscured filter should find top nodes outside the viewport when true
Expand Down
5 changes: 0 additions & 5 deletions spec/support/public/jquery-1.11.3.min.js

This file was deleted.

2 changes: 2 additions & 0 deletions spec/support/public/jquery-3.7.1.min.js

Large diffs are not rendered by default.

13 changes: 0 additions & 13 deletions spec/support/public/jquery-ui-1.11.4.min.js

This file was deleted.

6 changes: 6 additions & 0 deletions spec/support/public/jquery-ui-1.13.2.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions spec/support/test_app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ def authorized?(login, password)

get "/cuprite/jquery.min.js" do
content_type :js
File.read("#{CUPRITE_PUBLIC}/jquery-1.11.3.min.js")
File.read("#{CUPRITE_PUBLIC}/jquery-3.7.1.min.js")
end

get "/cuprite/jquery-ui.min.js" do
content_type :js
File.read("#{CUPRITE_PUBLIC}/jquery-ui-1.11.4.min.js")
File.read("#{CUPRITE_PUBLIC}/jquery-ui-1.13.2.min.js")
end

get "/cuprite/unexist.png" do
Expand Down

0 comments on commit dd92714

Please sign in to comment.