From a4563333ceda8df737623d9e80bba0a6fad67603 Mon Sep 17 00:00:00 2001 From: Danny Ben Shitrit Date: Thu, 6 Feb 2025 10:31:12 +0000 Subject: [PATCH] - Drop support for Ruby 3.0 --- .github/workflows/test.yml | 2 +- .rubocop.yml | 2 +- lib/victor/svg_base.rb | 4 ++-- victor.gemspec | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b451e44..f5075e7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,7 +8,7 @@ jobs: name: Ruby ${{ matrix.ruby }} runs-on: ubuntu-latest strategy: - matrix: { ruby: ['3.0', '3.1', '3.2', '3.3'] } + matrix: { ruby: ['3.1', '3.2', '3.3', '3.4'] } steps: - name: Checkout code diff --git a/.rubocop.yml b/.rubocop.yml index a29f248..f31e559 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -13,7 +13,7 @@ inherit_mode: - Exclude AllCops: - TargetRubyVersion: 3.0 + TargetRubyVersion: 3.1 SuggestExtensions: false Exclude: - 'dev/**/*' diff --git a/lib/victor/svg_base.rb b/lib/victor/svg_base.rb index b14d15e..5b09f84 100644 --- a/lib/victor/svg_base.rb +++ b/lib/victor/svg_base.rb @@ -36,8 +36,8 @@ def setup(attributes = nil) @svg_attributes = Attributes.new attributes end - def build(&block) - instance_eval(&block) + def build(&) + instance_eval(&) end def tag(name, value = nil, attributes = {}) diff --git a/victor.gemspec b/victor.gemspec index 25233c3..5c00228 100644 --- a/victor.gemspec +++ b/victor.gemspec @@ -13,7 +13,7 @@ Gem::Specification.new do |s| s.homepage = 'https://github.com/DannyBen/victor' s.license = 'MIT' - s.required_ruby_version = '>= 3.0.0' + s.required_ruby_version = '>= 3.1' s.metadata = { 'bug_tracker_uri' => 'https://github.com/DannyBen/victor/issues',