openhub.net
Black Duck Software, Inc.
Black Duck Open Hub
Follow @
OH
Sign In
Join Now
Projects
People
Organizations
Tools
Blog
BDSA
Projects
People
Projects
Organizations
Forums
C
caching_presenter
Settings
|
Report Duplicate
0
I Use This!
×
Login Required
Log in to Open Hub
Remember Me
Inactive
Commits
: Listings
Analyzed
about 19 hours
ago. based on code collected
about 23 hours
ago.
Apr 24, 2023 — Apr 24, 2024
Showing page 1 of 2
Search / Filter on:
Commit Message
Contributor
Files Modified
Lines Added
Lines Removed
Code Location
Date
Added presenter#accepts?(sym) so you can query a presenter instance to see if presents on a particular symbol. Useful in Rails applications so controllers can always set the current_user on any presenter that accepts :current_user
Zach Dennis
More...
about 15 years ago
updated readme (again)
Zach Dennis
More...
about 15 years ago
updated readme
Zach Dennis
More...
about 15 years ago
updated readme
Zach Dennis
More...
about 15 years ago
* Added a rakefile with tasks to run specs, build gems, and create rdoc * Added History file * Updated .gitignore
Zach Dennis
More...
about 15 years ago
renamed MIT-LICENSE to MIT-LICENSE.txt
Zach Dennis
More...
about 15 years ago
updated the readme and renamed it to README.rdoc
Zach Dennis
More...
about 15 years ago
* Made it so CachingPresenter will not attempt to cache assignment/writer methods. * Made it so CachingPresenter will cache #[] methods
Zach Dennis
More...
about 15 years ago
Refactored examples to reduce dependency on # of top-level sample classes and changed how the memoizable and instantiation methods are loaded. No behaviour changes.
Zach Dennis
More...
about 15 years ago
Removing unnecessary code comment.
Zach Dennis
More...
about 15 years ago
Made CachingPresenter raise an ArgumentError if an unknown option is used when declaring what a presenter presents on.
Zach Dennis
More...
about 15 years ago
Deprecated/removed the :requiring option for creating a presenter in favor of :accepts. * :accepts makes all additional arguments optional
Zach Dennis
More...
about 15 years ago
moved caching examples in spec into their own describe block
Zach Dennis
More...
about 15 years ago
updated the description of the it() examples in the specs to be consistent
Zach Dennis
More...
about 15 years ago
Update == to on blow up when passing it an object which is not a subclass of CachingPresenter
Mark Van Holstyn
More...
about 15 years ago
Pass options from present and present_collection to new
Mark Van Holstyn
More...
about 15 years ago
Updated README to reflect repository change to mhs/caching_presenter rather than zdennis/caching_presenter
Zach Dennis
More...
about 15 years ago
fixed bug where namespaced objects were not being properly found
Zach Dennis
More...
over 15 years ago
made #present take advantage of lazy loading features of Rails
Brandon Keepers
More...
over 15 years ago
updated #present_collection to use #map! instad of #map so the array is preserved
Zach Dennis
More...
over 15 years ago
added the :as option to the #present and #present_collection methods
Zach Dennis
More...
over 15 years ago
downcased and underscored Present() and PresentCollection()
Zach Dennis
More...
over 15 years ago
renamed Presenter() to Present(), introduced PresentCollection
Zach Dennis
More...
over 15 years ago
CachingPresenter now always delegates class, id and to_param methods to the object being presented on (unless of course you override it on the presenter to do something else), respond_to? is now delegated to the object being presented on as well
Zach Dennis
More...
over 15 years ago
removed activesupport dependencies, cleaned up some code formatting
Zach Dennis
More...
over 15 years ago
Introduced the Presenter() method in CachingPresenter::InstantiationMethods module which constructs a presenter based off of the type of argument passed in.
Zach Dennis
More...
over 15 years ago
added a README
Zach Dennis
More...
over 15 years ago
pulled out caching/memoizable functionality into CachingPresenter::Memoizable. Added an example to ensure memoization works with different methods with the same arguments. Stole MEMOIZED_IVAR proc from Rails' ActiveSupport
Zach Dennis
More...
over 15 years ago
switched method_missing to use class_eval rather than define_method, so block passing would work. Added an example to ensure doesn't break methods with blocks
Zach Dennis
More...
over 15 years ago
adds some examples to ensure no method calls with blocks are cached
Zach Dennis
More...
over 15 years ago
←
1
2
→
This site uses cookies to give you the best possible experience. By using the site, you consent to our use of cookies. For more information, please see our
Privacy Policy
Agree