From 18f6c79e856711dec656b53864995582b710930c Mon Sep 17 00:00:00 2001 From: stage-rl Date: Fri, 15 Mar 2024 18:24:33 +0100 Subject: [PATCH] Fix selenium/webdriver/chrome version --- Gemfile | 1 - Gemfile.lock | 121 ++++++++++++++++---------------------- lib/uvobot/uvo_scraper.rb | 1 - 3 files changed, 52 insertions(+), 71 deletions(-) diff --git a/Gemfile b/Gemfile index d4ea172..a325086 100644 --- a/Gemfile +++ b/Gemfile @@ -41,7 +41,6 @@ gem 'httparty' gem 'discourse_api' gem 'abstract_type' -gem 'webdrivers', '~> 5.0' group :development do # Access an interactive console on exception pages or by calling 'console' anywhere in the code. diff --git a/Gemfile.lock b/Gemfile.lock index 8145196..32df0d3 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -43,15 +43,16 @@ GEM i18n (>= 0.7, < 2) minitest (~> 5.1) tzinfo (~> 1.1) - addressable (2.8.1) + addressable (2.8.6) public_suffix (>= 2.0.2, < 6.0) archive-zip (0.12.0) io-like (~> 0.3.0) arel (9.0.0) - bootsnap (1.16.0) + base64 (0.2.0) + bootsnap (1.18.3) msgpack (~> 1.2) builder (3.2.4) - capybara (3.38.0) + capybara (3.39.2) addressable matrix mini_mime (>= 0.1.3) @@ -66,92 +67,77 @@ GEM clockwork (3.0.2) activesupport tzinfo - concurrent-ruby (1.2.2) + concurrent-ruby (1.2.3) crass (1.0.6) - date (3.3.3) - discourse_api (1.1.0) - faraday (~> 1.0) - faraday_middleware (~> 1.0) + date (3.3.4) + discourse_api (2.0.1) + faraday (~> 2.7) + faraday-follow_redirects + faraday-multipart rack (>= 1.6) dotenv (2.8.1) dotenv-rails (2.8.1) dotenv (= 2.8.1) railties (>= 3.2) erubi (1.12.0) - faraday (1.10.3) - faraday-em_http (~> 1.0) - faraday-em_synchrony (~> 1.0) - faraday-excon (~> 1.1) - faraday-httpclient (~> 1.0) - faraday-multipart (~> 1.0) - faraday-net_http (~> 1.0) - faraday-net_http_persistent (~> 1.0) - faraday-patron (~> 1.0) - faraday-rack (~> 1.0) - faraday-retry (~> 1.0) + faraday (2.8.1) + base64 + faraday-net_http (>= 2.0, < 3.1) ruby2_keywords (>= 0.0.4) - faraday-em_http (1.0.0) - faraday-em_synchrony (1.0.0) - faraday-excon (1.1.0) - faraday-httpclient (1.0.1) + faraday-follow_redirects (0.3.0) + faraday (>= 1, < 3) faraday-multipart (1.0.4) multipart-post (~> 2) - faraday-net_http (1.0.1) - faraday-net_http_persistent (1.2.0) - faraday-patron (1.0.0) - faraday-rack (1.0.0) - faraday-retry (1.0.3) - faraday_middleware (1.2.0) - faraday (~> 1.0) - ffi (1.15.5) + faraday-net_http (3.0.2) + ffi (1.16.3) globalid (1.1.0) activesupport (>= 5.0) httparty (0.21.0) mini_mime (>= 1.0.0) multi_xml (>= 0.5.2) - i18n (1.12.0) + i18n (1.14.4) concurrent-ruby (~> 1.0) io-like (0.3.1) listen (3.1.5) rb-fsevent (~> 0.9, >= 0.9.4) rb-inotify (~> 0.9, >= 0.9.7) ruby_dep (~> 1.2) - loofah (2.19.1) + loofah (2.22.0) crass (~> 1.0.2) - nokogiri (>= 1.5.9) + nokogiri (>= 1.12.0) mail (2.8.1) mini_mime (>= 0.1.1) net-imap net-pop net-smtp - marcel (1.0.2) + marcel (1.0.4) matrix (0.4.2) method_source (1.0.0) - mini_mime (1.1.2) - mini_portile2 (2.8.1) - minitest (5.17.0) - msgpack (1.6.0) + mini_mime (1.1.5) + mini_portile2 (2.8.5) + minitest (5.22.3) + msgpack (1.7.2) multi_xml (0.6.0) - multipart-post (2.3.0) - net-imap (0.3.4) + multipart-post (2.4.0) + net-imap (0.3.7) date net-protocol net-pop (0.1.2) net-protocol - net-protocol (0.2.1) + net-protocol (0.2.2) timeout - net-smtp (0.3.3) + net-smtp (0.4.0.1) net-protocol - nio4r (2.5.8) - nokogiri (1.14.2) - mini_portile2 (~> 2.8.0) + nio4r (2.7.0) + nokogiri (1.15.5) + mini_portile2 (~> 2.8.2) racc (~> 1.4) - pg (1.4.6) - public_suffix (5.0.1) + pg (1.5.6) + public_suffix (5.0.4) puma (3.12.6) - racc (1.6.2) - rack (2.2.6.3) - rack-test (2.0.2) + racc (1.7.3) + rack (2.2.8.1) + rack-test (2.1.0) rack (>= 1.3) rails (5.2.8.1) actioncable (= 5.2.8.1) @@ -166,27 +152,29 @@ GEM bundler (>= 1.3.0) railties (= 5.2.8.1) sprockets-rails (>= 2.0.0) - rails-dom-testing (2.0.3) - activesupport (>= 4.2.0) + rails-dom-testing (2.2.0) + activesupport (>= 5.0.0) + minitest nokogiri (>= 1.6) - rails-html-sanitizer (1.5.0) - loofah (~> 2.19, >= 2.19.1) + rails-html-sanitizer (1.6.0) + loofah (~> 2.21) + nokogiri (~> 1.14) railties (5.2.8.1) actionpack (= 5.2.8.1) activesupport (= 5.2.8.1) method_source rake (>= 0.8.7) thor (>= 0.19.0, < 2.0) - rake (13.0.6) + rake (13.1.0) rb-fsevent (0.11.2) rb-inotify (0.10.1) ffi (~> 1.0) - regexp_parser (2.7.0) - rexml (3.2.5) + regexp_parser (2.9.0) + rexml (3.2.6) ruby2_keywords (0.0.5) ruby_dep (1.5.0) rubyzip (2.3.2) - selenium-webdriver (4.8.1) + selenium-webdriver (4.9.0) rexml (~> 3.2, >= 3.2.5) rubyzip (>= 1.2.2, < 3.0) websocket (~> 1.0) @@ -194,24 +182,20 @@ GEM spring-watcher-listen (2.0.1) listen (>= 2.7, < 4.0) spring (>= 1.2, < 3.0) - sprockets (4.2.0) + sprockets (4.2.1) concurrent-ruby (~> 1.0) rack (>= 2.2.4, < 4) sprockets-rails (3.4.2) actionpack (>= 5.2) activesupport (>= 5.2) sprockets (>= 3.0.0) - thor (1.2.1) + thor (1.3.1) thread_safe (0.3.6) - timeout (0.3.2) + timeout (0.4.1) tzinfo (1.2.11) thread_safe (~> 0.1) - webdrivers (5.2.0) - nokogiri (~> 1.6) - rubyzip (>= 1.3.0) - selenium-webdriver (~> 4.0) - websocket (1.2.9) - websocket-driver (0.7.5) + websocket (1.2.10) + websocket-driver (0.7.6) websocket-extensions (>= 0.1.0) websocket-extensions (0.1.5) xpath (3.2.0) @@ -237,7 +221,6 @@ DEPENDENCIES spring spring-watcher-listen (~> 2.0.0) tzinfo-data - webdrivers (~> 5.0) RUBY VERSION ruby 2.7.2p137 diff --git a/lib/uvobot/uvo_scraper.rb b/lib/uvobot/uvo_scraper.rb index 6ff8844..105f0cb 100644 --- a/lib/uvobot/uvo_scraper.rb +++ b/lib/uvobot/uvo_scraper.rb @@ -1,6 +1,5 @@ require 'httparty' require_relative 'uvo_parser' -require 'webdrivers/chromedriver' require 'selenium-webdriver' module Uvobot