charlotte-ruby / image_scraper

simple utility that pulls image URLs from a web page
MIT License
21 stars 10 forks source link

bump to ruby 3.1.0 #41

Closed invalidusrname closed 2 years ago

invalidusrname commented 2 years ago

Bumps to latest version of ruby and rubocop styles

invalidusrname commented 2 years ago

Cops auto-corrected

$ bundle exec rubocop

Inspecting 11 files
...C.C.....

Offenses:

image_scraper.gemspec:7:1: C: [Correctable] Gemspec/RequireMFA: metadata['rubygems_mfa_required'] must be set to 'true'.
Gem::Specification.new do |s| ...
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
image_scraper.gemspec:15:3: C: [Correctable] Gemspec/DateAssignment: Do not use date = in gemspec, it is set automatically when the gem is packaged.
  s.date = '2013-01-17'
  ^^^^^^^^^^^^^^^^^^^^^
lib/image_scraper/client.rb:98:15: C: [Correctable] Security/IoMethods: File.read is safer than IO.read.
        css = IO.read(file)
              ^^^^^^^^^^^^^

11 files inspected, 3 offenses detected, 3 offenses auto-correctable