diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3a13af1..d586899 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,11 +9,11 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - ruby-version: ['2.7.8', '3.0.7'] + ruby-version: ['3.1.7', '3.2.9'] steps: - uses: actions/checkout@v3 - name: Set up Ruby ${{ matrix.ruby-version }} - uses: ruby/setup-ruby@v1.218.0 + uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby-version }} bundler-cache: true @@ -22,16 +22,18 @@ jobs: run: bundle exec rspec rubocop: name: linters / rubocop - runs-on: ubuntu-latest + runs-on: + group: SelfHostedDefault + labels: ubuntu-22.04-medium env: - RUBY_VERSION: 2.7.8 - RUBOCOP_VERSION: 1.41.1 + RUBY_VERSION: 3.1.7 + RUBOCOP_VERSION: 1.74.0 steps: - name: Codebase Checkout uses: actions/checkout@v3 - name: Setup Ruby - uses: ruby/setup-ruby@v1.218.0 + uses: ruby/setup-ruby@v1 with: ruby-version: ${{ env.RUBY_VERSION }} bundler-cache: true diff --git a/.rubocop.yml b/.rubocop.yml index 050a1f3..8cec8cb 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,2 +1,2 @@ AllCops: - TargetRubyVersion: 2.7 + TargetRubyVersion: 3.1 diff --git a/.ruby-version b/.ruby-version new file mode 100644 index 0000000..a12d1b1 --- /dev/null +++ b/.ruby-version @@ -0,0 +1,2 @@ +ruby-3.1.7 + diff --git a/Gemfile.lock b/Gemfile.lock index 595d21d..f8c32e7 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,66 +1,84 @@ PATH remote: . specs: - validate_url (1.0.5) - activemodel (>= 3.0.0, < 7.0) + validate_url (1.0.5.2) + activemodel (>= 3.0.0, < 8) addressable public_suffix (~> 4.0.0) GEM remote: https://rubygems.org/ specs: - activemodel (6.1.7.10) - activesupport (= 6.1.7.10) - activerecord (6.1.7.10) - activemodel (= 6.1.7.10) - activesupport (= 6.1.7.10) - activesupport (6.1.7.10) - concurrent-ruby (~> 1.0, >= 1.0.2) + activemodel (7.2.2.1) + activesupport (= 7.2.2.1) + activerecord (7.2.2.1) + activemodel (= 7.2.2.1) + activesupport (= 7.2.2.1) + timeout (>= 0.4.0) + activesupport (7.2.2.1) + base64 + benchmark (>= 0.3) + bigdecimal + concurrent-ruby (~> 1.0, >= 1.3.1) + connection_pool (>= 2.2.5) + drb i18n (>= 1.6, < 2) + logger (>= 1.4.2) minitest (>= 5.1) - tzinfo (~> 2.0) - zeitwerk (~> 2.3) + securerandom (>= 0.3) + tzinfo (~> 2.0, >= 2.0.5) addressable (2.8.7) public_suffix (>= 2.0.2, < 7.0) + base64 (0.3.0) + benchmark (0.4.1) + bigdecimal (3.2.2) + cgi (0.5.0) concurrent-ruby (1.3.4) + connection_pool (2.5.3) date (3.4.1) - diff-lcs (1.6.1) + diff-lcs (1.6.2) + drb (2.2.3) + erb (4.0.4) + cgi (>= 0.3.3) i18n (1.14.7) concurrent-ruby (~> 1.0) - mini_portile2 (2.8.8) + logger (1.7.0) + mini_portile2 (2.8.9) minitest (5.25.5) - psych (5.2.3) + psych (5.2.6) date stringio public_suffix (4.0.7) - rake (13.2.1) - rdoc (6.13.1) + rake (13.3.0) + rdoc (6.14.2) + erb psych (>= 4.0.0) - rspec (3.13.0) + rspec (3.13.1) rspec-core (~> 3.13.0) rspec-expectations (~> 3.13.0) rspec-mocks (~> 3.13.0) - rspec-core (3.13.3) + rspec-core (3.13.5) rspec-support (~> 3.13.0) - rspec-expectations (3.13.3) + rspec-expectations (3.13.5) diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.13.0) - rspec-mocks (3.13.2) + rspec-mocks (3.13.5) diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.13.0) - rspec-support (3.13.2) + rspec-support (3.13.4) + securerandom (0.4.1) sqlite3 (1.6.9) mini_portile2 (~> 2.8.0) - stringio (3.1.6) + stringio (3.1.7) + timeout (0.4.3) tzinfo (2.0.6) concurrent-ruby (~> 1.0) - zeitwerk (2.6.18) PLATFORMS ruby DEPENDENCIES - activerecord (< 7.0) + activerecord (< 8.0) concurrent-ruby (= 1.3.4) diff-lcs (>= 1.1.2) rake diff --git a/VERSION.yml b/VERSION.yml index 2753f74..64bb800 100644 --- a/VERSION.yml +++ b/VERSION.yml @@ -2,4 +2,4 @@ :major: 1 :minor: 0 :patch: 5 -:build: 1 +:build: 2 diff --git a/validate_url-1.0.5.2.gem b/validate_url-1.0.5.2.gem new file mode 100644 index 0000000..2fceb46 Binary files /dev/null and b/validate_url-1.0.5.2.gem differ diff --git a/validate_url.gemspec b/validate_url.gemspec index a06aabd..27a9e91 100644 --- a/validate_url.gemspec +++ b/validate_url.gemspec @@ -1,6 +1,6 @@ Gem::Specification.new do |s| s.name = 'validate_url' - s.version = '1.0.5.1' + s.version = '1.0.5.2' s.required_rubygems_version = Gem::Requirement.new('>= 0') if s.respond_to? :required_rubygems_version= s.require_paths = ['lib'] @@ -28,10 +28,10 @@ Gem::Specification.new do |s| s.rubygems_version = '2.4.5' s.summary = 'Library for validating urls in Rails.' - s.add_runtime_dependency('activemodel', ['>= 3.0.0', '< 7.0']) + s.add_runtime_dependency('activemodel', ['>= 3.0.0', '< 8']) s.add_runtime_dependency('addressable') s.add_runtime_dependency('public_suffix', ['~> 4.0.0']) - s.add_development_dependency('activerecord', ['< 7.0']) + s.add_development_dependency('activerecord', ['< 8.0']) s.add_development_dependency('concurrent-ruby', ['= 1.3.4']) s.add_development_dependency('diff-lcs', ['>= 1.1.2']) s.add_development_dependency('rake')