Skip to content

Commit

Permalink
Drop support for rails v6.* versions (#60)
Browse files Browse the repository at this point in the history
The nio4j dependency requires compilation for 6 versions of Rails. For me compilation fails, while version 7 works great.

I propose we discontinue testing on Rails 6.x branches. Rails team no longer supports these versions, so we can skip those as well.

---------

Co-authored-by: Stanislav (Stas) Katkov <[email protected]>
  • Loading branch information
skatkov and Stanislav (Stas) Katkov authored Sep 26, 2024
1 parent 76ee8b0 commit fdb4afb
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 34 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
fail-fast: false
matrix:
ruby: ["3.0", "3.1", "3.2", "3.3"]
gemfile: [ "rails_6_1", "rails_7_0", "rails_7_2"]
gemfile: ["rails_7_0", "rails_7_2"]
exclude:
- ruby: "3.0"
gemfile: "rails_7_2"
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ gemfiles/*.lock
Gemfile.lock
.ruby-version
pkg

.vscode/

4 changes: 0 additions & 4 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
appraise "rails-6-1" do
gem "rails", "~> 6.1.0"
end

appraise "rails-7-0" do
gem "rails", "~> 7.0.0"
end
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ All notable changes to this project will be documented in this file.

This format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unreleased
- Remove official support for Rails 6 versions. It still works, but we don't test against it anymore.

## 0.19.0
### Added
- Add support for rails 7.2, but leave out rails 7.1 support. This is because ActionView has a breaking bug in 7.1 that renders the template back as a string
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
# Pbbuilder
PBBuilder generates [Protobuf](https://developers.google.com/protocol-buffers) Messages with a simple DSL similar to the [JBuilder](https://rubygems.org/gems/jbuilder) gem.

## Requirements
This gem only supports Rails 7.0 and Rails 7.2, **7.1 is not supported**.

At least Rails 6.1 is required and rails 7.1 is currently not supported.
There currently is a regression in ActionView (the part of Rails which renders) that forces rendered objects into strings, but for Pbbuilder we need the raw objects.
This is only present in Rails 7.1, and a fix is released in Rails 7.2. https://github.com/rails/rails/pull/51023

It might work on rails v6 (it worked previously), but we don't guarantee that and don't test against these versions anymore.

## Compatibility with jBuilder
We don't aim to have 100% compitability and coverage with jbuilder gem, but we closely follow jbuilder's API design to maintain familiarity.

Expand Down
9 changes: 0 additions & 9 deletions gemfiles/rails_6.gemfile

This file was deleted.

9 changes: 0 additions & 9 deletions gemfiles/rails_6_1.gemfile

This file was deleted.

9 changes: 0 additions & 9 deletions gemfiles/rails_7.gemfile

This file was deleted.

0 comments on commit fdb4afb

Please sign in to comment.