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

v0.1.5 #6

Merged
merged 3 commits into from
Jan 9, 2025
Merged

v0.1.5 #6

merged 3 commits into from
Jan 9, 2025

Conversation

jlurena
Copy link
Owner

@jlurena jlurena commented Jan 9, 2025

This pull request includes several changes to enhance caching mechanisms, add callbacks, and improve test coverage. The most important changes include adding cache-related callbacks, updating the cache clearing method, and adding new tests for these functionalities.

Enhancements to caching mechanisms:

  • Added callbacks to invalidate and refresh the cache on create, update, and destroy actions in lib/active_cached_resource/model.rb. [1] [2]
  • Modified the clear_cache method to accept an optional pattern parameter for more granular cache clearing in lib/active_cached_resource/caching.rb.
  • Fixed issue with generator for SQLCache strategy tables

Updates to documentation and versioning:

  • Updated the version to 0.1.5 and added a new section in the CHANGELOG.md to reflect the recent changes. [1] [2]

Improvements to test coverage:

  • Added comprehensive tests for the new cache-related callbacks and functionalities in spec/active_cached_resource/model_spec.rb.
  • Enhanced existing tests to cover new cache clearing patterns in spec/active_cached_resource/caching_spec.rb. [1] [2]

Minor cleanup:

  • Removed a debugging statement (binding.pry) from example/provider/app/controllers/people_controller.rb.
  • Updated example/consumer/Gemfile to remove a specific branch dependency for activeresource.

Copy link
Contributor

github-actions bot commented Jan 9, 2025

TestsPassed ✅SkippedFailed
Test Result for Ruby:3.2504 ran504 passed0 skipped0 failed
No test annotations available

Copy link
Contributor

github-actions bot commented Jan 9, 2025

TestsPassed ✅SkippedFailed
Test Result for Ruby:3.3504 ran504 passed0 skipped0 failed
No test annotations available

Copy link
Contributor

github-actions bot commented Jan 9, 2025

TestsPassed ✅SkippedFailed
Test Result for Ruby:head504 ran504 passed0 skipped0 failed
No test annotations available

@jlurena jlurena merged commit e4323b1 into main Jan 9, 2025
1 check passed
@jlurena jlurena deleted the version0.1.5-caching-on-crud branch January 9, 2025 19:25
jlurena added a commit that referenced this pull request Jan 15, 2025
* Added caching during CRUD operations

* Fix invalid naming convention for generator

* Fix code style issues with RuboCop

---------

Co-authored-by: Lint Action <[email protected]>
jlurena added a commit that referenced this pull request Jan 15, 2025
* Added caching during CRUD operations

* Fix invalid naming convention for generator

* Fix code style issues with RuboCop

---------

Co-authored-by: Lint Action <[email protected]>
jlurena added a commit that referenced this pull request Jan 15, 2025
* v0.1.5 (#6)

* Added caching during CRUD operations

* Fix invalid naming convention for generator

* Fix code style issues with RuboCop

---------

Co-authored-by: Lint Action <[email protected]>

* Added changelog and updated version

* Add ostruct to dependency as it will no longer come packaged with ruby

---------

Co-authored-by: Lint Action <[email protected]>
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