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 Rails < 7.0 support #946

Merged
merged 1 commit into from
Nov 9, 2024
Merged

Conversation

tagliala
Copy link
Contributor

@tagliala tagliala commented Nov 9, 2024

Additionally, update the changelog by removing all trailing punctuation.
Fix the test to ensure it works as described and is consistent with
Arbre and ActiveAdmin.

@tagliala tagliala force-pushed the feature/drop-rails-61-compatibility branch from 1b8e95b to f49b784 Compare November 9, 2024 15:27
Copy link

codecov bot commented Nov 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.92%. Comparing base (204708c) to head (6c689b7).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #946   +/-   ##
=======================================
  Coverage   98.92%   98.92%           
=======================================
  Files          14       14           
  Lines         557      557           
=======================================
  Hits          551      551           
  Misses          6        6           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

s.add_dependency("actionpack", ">= 6.0")
s.add_dependency("railties", ">= 6.0")
s.add_dependency("actionpack", ">= 7.0")
s.add_dependency("railties", ">= 7.0")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apparently 6.0 was still supported, but not tested

CHANGELOG.md Outdated
Comment on lines 5 to 8
* Remove support for Ruby `< 3.1`.
* Remove support for Rails `< 7.0`.
* Test against Rails 8.0.

Copy link
Contributor Author

@tagliala tagliala Nov 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pretty unexpected that this is not failing like Arbre

Failures:

  1) Changelog entry does not end with a punctuation
     Failure/Error: expect(entry).not_to match(/\.$/)

       expected "* Remove support for Ruby `< 3.1`.\n" not to match /\.$/
       Diff:
       @@ -1 +1 @@
       -/\.$/
       +* Remove support for Ruby `< 3.1`.
     # ./spec/changelog_spec.rb:24:in `block (4 levels) in <top (required)>'
     # ./spec/changelog_spec.rb:[23](https://github.com/activeadmin/arbre/actions/runs/11757484591/job/32754790006?pr=639#step:6:24):in `each'
     # ./spec/changelog_spec.rb:23:in `block (3 levels) in <top (required)>'

https://github.com/activeadmin/arbre/actions/runs/11757484591/job/32754790006?pr=639

Copy link
Contributor Author

@tagliala tagliala Nov 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, the spec was wrong here. I've fixed the intent. There are a lot of changes in the changelog, but now it is uniform with Arbre and ActiveAdmin (no punctuations at the end of the line). If you prefer, I can invert the spec description and leave dots (but that would not allow easy copy & paste from changelogs, like I did)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, I think it’s fine as you have it as it would be easiest for us. Thank you. If anything I may just remove the spec in the future.

@tagliala tagliala force-pushed the feature/drop-rails-61-compatibility branch from f49b784 to 8d3345d Compare November 9, 2024 15:53
Additionally, update the changelog by removing all trailing punctuation.
Fix the test to ensure it works as described and is consistent with
Arbre and ActiveAdmin.
@tagliala tagliala force-pushed the feature/drop-rails-61-compatibility branch from 8d3345d to 6c689b7 Compare November 9, 2024 15:56
Copy link
Member

@javierjulio javierjulio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@tagliala tagliala merged commit dfeb715 into master Nov 9, 2024
20 checks passed
@tagliala tagliala deleted the feature/drop-rails-61-compatibility branch November 9, 2024 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants