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

Fix ArgumentError: wrong number of arguments for Cell:: Caching #507

Closed
wants to merge 39 commits into from

Conversation

taketo1113
Copy link

It fxied argument error Cell::Caching with conditionals helper method.
And added test case with conditionals helper method for Cell::Caching.

fixed #506

shvetsovdm and others added 30 commits May 14, 2016 00:59
in order to make #inpect to not blow up
screen wher controller with request and helpers
included in instance of the ViewModel
…endency

bump cells-erb dev dependency to >= 0.1.0
README: Build badge point to trailblazer/cells
Ruby 2.2 is reaching it's end of life at the end of the month. But I
think it's useful to test recent Ruby versions as well.
Fix warning for undefined instance variable
Tilt::Cache is a generic key-value store. This works exactly the
same, if we move some code around.
The find loop is necessary to find out which prefix contains the
template that we are looking for.

Template parsing happens for the first template that is found.

If we split the file lookup and template building, the code becomes
easier to read and easier to maintain.
CI: Drop unused Travis sudo: false directive
In `Caching`, we compile `cache_fillter_args` from `args` and `kws`. As per
the existing implementation, cache filters do not expect/can't receive keyword
arguments anyway.
seuros and others added 8 commits December 6, 2022 22:44
CI: add Ruby 3.2 to the test matrix
As per https://guides.rubygems.org/specification-reference/#metadata,
add metadata to the gemspec file. This'll allow people to more easily
access the source code, raise issues and read the changelog. These
bug_tracker_uri, changelog_uri, documentation_uri, homepage_uri,
source_code_uri, and wiki_uri links will appear on the rubygems page at
https://rubygems.org/gems/cells and be available via the Rubygems
API after the next release.
Add project metadata to the gemspec
There are several files in the gem package that aren't useful for
downstream projects. Removing these files reduces the gem package
size from 34K to 24K!
@apotonick
Copy link
Member

Thanks my friend! However, now Ruby 2.5 is breaking - I remember fixing that a while ago with the array trick.
Your intention of this PR is to allow a cache decider without any arguments, right? def cache_enabled?; ?

@taketo1113
Copy link
Author

@apotonick

However, now Ruby 2.5 is breaking

Sorry. I fixed it.

Your intention of this PR is to allow a cache decider without any arguments, right? def cache_enabled?; ?

yes!

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.

Ruby 3.0 ArgumentError: wrong number of arguments error with Caching