diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index a4bd687..32f0b64 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -19,10 +19,10 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - ruby-version: ["2.7", "3.0", "3.1"] + ruby-version: ["3.2"] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Ruby # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby, # change this to (see https://github.com/ruby/setup-ruby#versioning): @@ -38,15 +38,15 @@ jobs: name: Linters runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: - ruby-version: "3.1" + ruby-version: "3.2" bundler-cache: true - name: Run Rubocop run: | - gem install rubocop-rspec rubocop-performance + gem install rubocop-rspec rubocop-performance rubocop-rake rubocop-md git clone https://gist.github.com/65e21b9e8b0d1db285dcb4fc627b98fa.git .rubocop cp .rubocop/.rubocop.yml .rubocop-ruby.yml git clone https://gist.github.com/14cfa24d53c12bf385871e9b93b95c37.git .rubocop-rspec diff --git a/.ruby-version b/.ruby-version index ff365e0..be94e6f 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -3.1.3 +3.2.2 diff --git a/Gemfile.lock b/Gemfile.lock index 8bac586..b319836 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,24 +1,24 @@ GEM remote: https://rubygems.org/ specs: - activemodel (7.0.4) - activesupport (= 7.0.4) - activerecord (7.0.4) - activemodel (= 7.0.4) - activesupport (= 7.0.4) - activesupport (7.0.4) + activemodel (7.0.7.2) + activesupport (= 7.0.7.2) + activerecord (7.0.7.2) + activemodel (= 7.0.7.2) + activesupport (= 7.0.7.2) + activesupport (7.0.7.2) concurrent-ruby (~> 1.0, >= 1.0.2) i18n (>= 1.6, < 2) minitest (>= 5.1) tzinfo (~> 2.0) - addressable (2.8.1) + addressable (2.8.5) public_suffix (>= 2.0.2, < 6.0) builder (3.2.4) - concurrent-ruby (1.1.10) + concurrent-ruby (1.2.2) descendants_tracker (0.0.4) thread_safe (~> 0.3, >= 0.3.1) diff-lcs (1.5.0) - faraday (1.10.2) + faraday (1.10.3) faraday-em_http (~> 1.0) faraday-em_synchrony (~> 1.0) faraday-excon (~> 1.1) @@ -41,7 +41,7 @@ GEM faraday-patron (1.0.0) faraday-rack (1.0.0) faraday-retry (1.0.3) - git (1.12.0) + git (1.18.0) addressable (~> 2.8) rchardet (~> 1.8) github_api (0.19.0) @@ -51,10 +51,10 @@ GEM hashie (~> 3.5, >= 3.5.2) oauth2 (~> 1.0) hashie (3.6.0) - highline (2.0.3) + highline (2.1.0) httpi (3.0.1) rack - i18n (1.12.0) + i18n (1.14.1) concurrent-ruby (~> 1.0) juwelier (2.4.9) builder @@ -68,16 +68,16 @@ GEM rake rdoc semver2 - jwt (2.5.0) + jwt (2.7.1) kamelcase (0.0.2) semver2 (~> 3) - mini_portile2 (2.8.0) - minitest (5.16.3) + minitest (5.19.0) multi_json (1.15.0) multi_xml (0.6.0) - multipart-post (2.2.3) - nokogiri (1.13.9) - mini_portile2 (~> 2.8.0) + multipart-post (2.3.0) + nokogiri (1.15.4-arm64-darwin) + racc (~> 1.4) + nokogiri (1.15.4-x86_64-linux) racc (~> 1.4) oauth2 (1.4.11) faraday (>= 0.17.3, < 3.0) @@ -86,37 +86,36 @@ GEM multi_xml (~> 0.5) rack (>= 1.2, < 4) psych (3.3.4) - public_suffix (5.0.0) - racc (1.6.0) - rack (3.0.1) + public_suffix (5.0.3) + racc (1.7.1) + rack (3.0.8) rake (13.0.6) rchardet (1.8.0) rdoc (6.3.3) - redcarpet (3.5.1) + redcarpet (3.6.0) rspec (3.12.0) rspec-core (~> 3.12.0) rspec-expectations (~> 3.12.0) rspec-mocks (~> 3.12.0) - rspec-core (3.12.0) + rspec-core (3.12.2) rspec-support (~> 3.12.0) - rspec-expectations (3.12.0) + rspec-expectations (3.12.3) diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.12.0) - rspec-mocks (3.12.0) + rspec-mocks (3.12.6) diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.12.0) - rspec-support (3.12.0) + rspec-support (3.12.1) ruby2_keywords (0.0.5) semver2 (3.4.2) thread_safe (0.3.6) - tzinfo (2.0.5) + tzinfo (2.0.6) concurrent-ruby (~> 1.0) - webrick (1.7.0) - yard (0.9.28) - webrick (~> 1.7.0) + yard (0.9.34) PLATFORMS - ruby + arm64-darwin-22 + x86_64-linux DEPENDENCIES activerecord @@ -130,4 +129,4 @@ DEPENDENCIES yard BUNDLED WITH - 2.3.26 + 2.4.19 diff --git a/README.md b/README.md index 5896c84..d6f6bee 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ valid endpoints. Add the gem to your project's Gemfile: ``` ruby -gem 'url_validation' +gem "url_validation" ``` ## Usage @@ -32,7 +32,7 @@ This gem is an `EachValidator`, and thus is used with the `validates` method: class User < ActiveRecord::Base validates :terms_of_service_link, presence: true, - url: true + url: true end ```