Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop Ruby 3.0 support #49

Merged
merged 1 commit into from
Jun 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -9,4 +9,4 @@ jobs:
test:
uses: ybiquitous/.github/.github/workflows/ruby-test-reusable.yml@main
with:
minimum-ruby-version: 3.0
minimum-ruby-version: 3.1
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
AllCops:
TargetRubyVersion: 3.0
TargetRubyVersion: 3.1
NewCops: enable
SuggestExtensions: false

4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -2,6 +2,10 @@

All notable changes to this project will be documented in this file.

## Head

- Drop Ruby 3.0 support due to EOL (April 2024).

## 0.10.1

- No actual changes. Just switch to a new simplified release workflow.
2 changes: 1 addition & 1 deletion easytest.gemspec
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
spec.summary = "Easy testing for Ruby."
spec.description = "Easytest is a tiny testing framework for Ruby with a familiar DSL."
spec.homepage = "https://ybiquitous.github.io/easytest/"
spec.required_ruby_version = ">= 3.0"
spec.required_ruby_version = ">= 3.1"

spec.metadata["homepage_uri"] = spec.homepage
spec.metadata["source_code_uri"] = "https://github.com/ybiquitous/easytest"
4 changes: 2 additions & 2 deletions lib/easytest/dsl.rb
Original file line number Diff line number Diff line change
@@ -23,8 +23,8 @@ def only(name, &block)
Easytest.add_case Case.new(name: name, only: true, block: block)
end

def expect(actual = nil, &block)
Expectation.new(actual, &block)
def expect(actual = nil, &)
Expectation.new(actual, &)
end
end
end
4 changes: 2 additions & 2 deletions test/expectation_test.rb
Original file line number Diff line number Diff line change
@@ -160,8 +160,8 @@ def subject(actual)
expect { subject(2).not.to_satisfy { |n| n > 1 } }.to_raise "not satisfy"
end

def subject_block(&block)
Easytest::Expectation.new(nil, &block)
def subject_block(&)
Easytest::Expectation.new(nil, &)
end

raise_thing = -> { raise "foo" }