Skip to content

Commit

Permalink
Drop support for ruby < 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
MatheusRich committed Sep 2, 2023
1 parent 4644fe5 commit d82bbd9
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests-and-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: [2.5, 2.6, 2.7, '3.0']
ruby: [2.7, 3.0, 3.1, 3.2]

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.5.8
3.0.6
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ruby 3.0.6
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Then, add the required and optional fields
class User
extend EzAttributes

# Here name and age are required, and email has a default value, so it is optional.
# Here, `name` and `age` are required, and `email` has a default value, so it is optional.
attributes :name, :age, email: 'guest@user.com'
end

Expand Down Expand Up @@ -74,7 +74,6 @@ u = User.new(name: 'Matz', age: 22)

u.name
# NoMethodError (undefined method `name' for #<User:0x000055bac152f130>)

```

## Development
Expand Down
2 changes: 1 addition & 1 deletion ez_attributes.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
spec.description = "Easily define initializers with keyword args. It supports required and optional args."
spec.homepage = "https://github.com/MatheusRich/ez_attributes.git"
spec.license = "MIT"
spec.required_ruby_version = Gem::Requirement.new(">= 2.5.0")
spec.required_ruby_version = Gem::Requirement.new(">= 3.0.0")

spec.metadata["homepage_uri"] = spec.homepage
spec.metadata["source_code_uri"] = spec.homepage
Expand Down

0 comments on commit d82bbd9

Please sign in to comment.