Skip to content

Ruby 3.x, Rails 7, Rails 8, use Appraisals for tests #143

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

Merged
merged 3 commits into from
Mar 2, 2025

Conversation

swiknaba
Copy link
Contributor

@swiknaba swiknaba commented Feb 25, 2025

  • Uses Appraisals to simplify testing against multiple Rails versions.
  • Adds tests for Rails 7 and Rails 8.
  • Custom fix of concurrent-ruby for Rails 6 due to ruby-concurrency/concurrent-ruby@d7ce956
  • ⚠️ drop support for Ruby 2 (tests weren't run against it anymore as well)
  • Adds support for Ruby 3.2, 3.3., 3.4, head
  • Drop simple cov (high LOC coverage lulls you into a false sense of security; you want semantic coverage)

closes #142
closes #137
closes #122

Thanks to co-authors @mohammed-io & @MatjazKavcic 🙇

mohammed-io and others added 3 commits October 11, 2024 20:57

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
* Support Rails 7.2

* Bumped ruby version requirement to 3.0.0

* Rubocop Ruby target as well

* remove redundant sort

* Update Rakefile

* Update test/rails_test.rb

* chore: update CI to run on Ruby 3 x Rails 6 & 7 (#3)

* chore: add appraisal

* update CI to run on ruby/rails matrix

* continue on error

* no need for dark magic rails test?

* Fixed rubocop

* don't use deprecated OpenStruct

* exclude ruby head / rails 6.1

---------

Co-authored-by: Lud <[email protected]>

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
* Fix encryption/decryption of arrays

* Add subitems to specs

* Remove pp

* Diff arrays correctly

* PR comments

* Fix test versions

---------

Co-authored-by: Matjaz Kavcic <[email protected]>

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
* add tests for rails 8

* fix filename

* shift ruby versions test, drop rails 7.1 (we got 7.2)

* run rubocop against fixed ruby version

* drop simple cov, it's crap

* we can only test Rails 6 with ruby 3.1

* fix rubocop

* fix rails 6 with concurrent ruby

* rubocop

* Update test.yml

* 👮 🤖
Copy link
Collaborator

@marcqualie marcqualie left a comment

Choose a reason for hiding this comment

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

This is amazing work, thanks for putting all of this together @swiknaba, @mohammed-io, and @MatjazKavcic 🙏🏻 🎉 ❤️

@marcqualie marcqualie merged commit 27b1e41 into diffcrypt:main Mar 2, 2025
10 checks passed
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.

Only subset of YAML supported and raises on encrypt no implicit conversion of Hash into Integer (TypeError)
3 participants