Skip to content

Commit

Permalink
Require Ruby 3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
elektronaut committed Oct 16, 2024
1 parent 1d49c4e commit bcf3e0e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ['3.1', '3.2', '3.3']
ruby: ['3.2', '3.3']
services:
postgres:
image: postgres:latest
Expand Down
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require:

AllCops:
NewCops: enable
TargetRubyVersion: 3.1
TargetRubyVersion: 3.2
Exclude:
- 'spec/internal/config/**/*'
- 'spec/internal/db/**/*'
Expand Down
2 changes: 1 addition & 1 deletion dynamic_image.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Gem::Specification.new do |s|
"README.md"
]

s.required_ruby_version = ">= 3.1.0"
s.required_ruby_version = ">= 3.2.0"

s.add_dependency "dis", "~> 1.1", ">= 1.1.11"
s.add_dependency "rails", "> 5.0"
Expand Down
4 changes: 2 additions & 2 deletions lib/dynamic_image/belongs_to.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ module BelongsTo
extend ActiveSupport::Concern

module ClassMethods
def belongs_to_image(name, scope = nil, **options)
belongs_to(name, scope, **options)
def belongs_to_image(name, scope = nil, **)
belongs_to(name, scope, **)

define_method "#{name}=" do |new_image|
if new_image.present? && !new_image.is_a?(DynamicImage::Model)
Expand Down

0 comments on commit bcf3e0e

Please sign in to comment.