Skip to content

Commit

Permalink
Drop end-of-life Ruby and Rails versions
Browse files Browse the repository at this point in the history
Drop [end-of-life Ruby] versions 2.7 and 3.0 and [end-of-life Rails]
versions 6.2 and 7.0

[end-of-life Ruby]: https://www.ruby-lang.org/en/downloads/branches/
[end-of-lie Rails]: https://rubyonrails.org/maintenance
  • Loading branch information
seanpdoyle committed Oct 24, 2024
1 parent b40a9cd commit 9e08347
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,15 @@ jobs:
fail-fast: false
matrix:
ruby-version:
- "2.7"
- "3.0"
- "3.1"
- "3.2"
- "3.3"
rails-version:
- "6.1"
- "7.0"
- "7.1"
- "7.2"
include:
- { ruby-version: "3.2", rails-version: "main" }
- { ruby-version: "3.3", rails-version: "main" }
exclude:
- { ruby-version: "2.7", rails-version: "7.1" }
- { ruby-version: "2.7", rails-version: "7.2" }
- { ruby-version: "3.0", rails-version: "7.2" }

env:
RAILS_VERSION: ${{ matrix.rails-version }}
Expand Down
2 changes: 1 addition & 1 deletion .standard.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ruby_version: 2.7
ruby_version: 3.1
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

- Drop [end-of-life Ruby] versions 2.7 and 3.0
- Drop [end-of-life Rails] versions 6.2 and 7.0

[end-of-life Ruby]: https://www.ruby-lang.org/en/downloads/branches/
[end-of-lie Rails]: https://rubyonrails.org/maintenance

## 0.2.3 (Oct 24, 2024)

- Expand matrix of supported versions to include `[email protected]` and `[email protected]`.
Expand Down
4 changes: 2 additions & 2 deletions lib/turbo_stream_button/builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ def initialize(view_context, tag_name, **attributes)
@attributes = attributes
end

def tag(*arguments, **overrides, &block)
@view_context.content_tag(@tag_name, *arguments, **Html.deep_merge_attributes(@view_context, @attributes, overrides), &block)
def tag(*arguments, **overrides, &)
@view_context.content_tag(@tag_name, *arguments, Html.deep_merge_attributes(@view_context, @attributes, overrides), &)
end

def merge(overrides)
Expand Down
4 changes: 2 additions & 2 deletions lib/turbo_stream_button/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ def turbo_stream_button
TurboStreamButton::Button.new(self)
end

def turbo_stream_button_tag(**attributes, &block)
render("application/turbo_stream_button", **attributes, &block)
def turbo_stream_button_tag(**attributes, &)
render("application/turbo_stream_button", **attributes, &)
end
end
end
4 changes: 3 additions & 1 deletion turbo_stream_button.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ Gem::Specification.new do |spec|
spec.description = "Combine built-in Button elements and Turbo Streams to drive client-side interactions through declarative HTML"
spec.license = "MIT"

spec.required_ruby_version = ">= 3.1.0"

spec.metadata["homepage_uri"] = spec.homepage
spec.metadata["source_code_uri"] = "https://github.com/seanpdoyle/turbo_stream_button"
spec.metadata["changelog_uri"] = "https://github.com/seanpdoyle/turbo_stream_button/blob/main/CHANGELOG.md"
Expand All @@ -18,6 +20,6 @@ Gem::Specification.new do |spec|
Dir["{app,config,db,lib}/**/*", "MIT-LICENSE", "Rakefile", "README.md"]
end

spec.add_dependency "rails", ">= 6.0"
spec.add_dependency "rails", ">= 7.1"
spec.add_dependency "zeitwerk"
end

0 comments on commit 9e08347

Please sign in to comment.