aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/template/resolver.rb
Commit message (Collapse)AuthorAgeFilesLines
* delegate to :class rather than 'self.class'Gosha Arinich2013-01-061-1/+1
|
* Replace some global Hash usages with the new thread safe cache.thedarkone2012-12-141-30/+29
| | | | | | | | | | | | | | | | Summary of the changes: * Add thread_safe gem. * Use thread safe cache for digestor caching. * Replace manual synchronization with ThreadSafe::Cache in Relation::Delegation. * Replace @attribute_method_matchers_cache Hash with ThreadSafe::Cache. * Use TS::Cache to avoid the synchronisation overhead on listener retrieval. * Replace synchronisation with TS::Cache usage. * Use a preallocated array for performance/memory reasons. * Update the controllers cache to the new AS::Dependencies::ClassCache API. The original @controllers cache no longer makes much sense after @tenderlove's changes in 7b6bfe84f3 and f345e2380c. * Use TS::Cache in the connection pool to avoid locking overhead. * Use TS::Cache in ConnectionHandler.
* Make caller attribute in deprecation methods optionalAlexey Gaziev2012-10-301-1/+1
|
* Fix failing tests and use new hash style in deprecation messagesCarlos Antonio da Silva2012-10-291-1/+1
|
* Provide a call stack for deprecation warnings where needed.Nikita Afanasenko2012-10-291-1/+7
| | | | It's sometimes hard to quickly find where deprecated call was performed, especially in case of migrating between Rails versions. So this is an attempt to improve the call stack part of the warning message by providing caller explicitly.
* Implement ActionView::Template::TypesPiotr Sarnacki2012-08-281-1/+1
| | | | | | AV::Template::Types is a small abstraction to allow to specify template types that can be used in ActionView. When Action Pack is loaded it's replaced with Mime::Type.
* Remove Mime::Type translations from Action ViewPiotr Sarnacki2012-08-281-1/+1
| | | | | Action View should not be responsible for translating mime types. Any translation that's needed should be handled at controller level.
* use mutex_m rather than use a delegate systemAaron Patterson2012-06-211-6/+3
|
* Merge pull request #6428 from pinetops/resolver_concurrency_fixYehuda Katz2012-06-211-19/+76
|\ | | | | Make the Resolver template cache threadsafe
| * Improve the readability of the Resolver change detection codeTom Clarke2012-05-221-11/+19
| |
| * More granular locking of the Resolver template cacheTom Clarke2012-05-211-5/+23
| | | | | | | | | | | | | | In order to avoid holding a global lock when doing template resolution, instead add individual locks on a per cache entry basis. The global lock is now only used for manipulation of the main cache data structure.
| * Make the Resolver template cache threadsafe - closes #6404Tom Clarke2012-05-211-19/+50
| | | | | | | | | | | | | | | | | | The Template cache in the Resolver can be accessed by multiple threads similtaneously in multi-threaded environments. The cache is implemented using a Hash, which isn't threadsafe in all VMs (notably JRuby). This commit extracts the cache to a new Cache class and adds mutexes to prevent concurrent access.
* | stop subclassing stringAaron Patterson2012-06-211-3/+10
|/
* Revert "Merge pull request #6425 from pinetops/resolver_concurrency_fix"José Valim2012-05-211-68/+19
| | | | | This reverts commit 254c04286c5916ae7f91eb6e173b312e7a74e364, reversing changes made to 513a0525c24c2944630acfa465b22cd2f4601adf.
* More granular locking of the Resolver template cacheTom Clarke2012-05-211-5/+23
| | | | | | | In order to avoid holding a global lock when doing template resolution, instead add individual locks on a per cache entry basis. The global lock is now only used for manipulation of the main cache data structure.
* Make the Resolver template cache threadsafe - closes #6404Tom Clarke2012-05-211-19/+50
| | | | | | | | | The Template cache in the Resolver can be accessed by multiple threads similtaneously in multi-threaded environments. The cache is implemented using a Hash, which isn't threadsafe in all VMs (notably JRuby). This commit extracts the cache to a new Cache class and adds mutexes to prevent concurrent access.
* Created a Raw handler for templates.Steve Klabnik2012-05-171-1/+3
| | | | Fixes #2394
* Move require to where it's neededSantiago Pastorino2012-05-111-0/+1
|
* Minor clarification in documentation language and spellingMatthew Daubert2012-03-131-4/+4
|
* Remove some of the ActiveSupport core extensions related to 1.8.Uģis Ozols2011-12-211-1/+0
|
* Revert accidental change from cattr_accessor to class_attribute.José Valim2011-12-081-1/+1
|
* Some small optimizations and improvements to benchmark code.José Valim2011-12-081-1/+1
|
* minor details revised in a gsubXavier Noria2011-08-181-1/+1
| | | | | | | | | Regexps have a construct to express alternation of characters, which is character classes. In addition to being the most specific idiom to write this pattern, it reads better without the backslashes. Also, it is better not to use a capture if none is needed. As a side-effect of these changes, the gsub is marginally faster, but speed is not the point of this commit.
* Properly escape glob characters.Aaron Patterson2011-08-161-3/+12
|
* Just remove the sort_locals methodAaron Patterson2011-08-091-12/+1
|
* the freeze trick does nothing on arrays used as hash keys.Aaron Patterson2011-08-091-2/+1
|
* use functional style to build a list of template objectsAaron Patterson2011-08-091-9/+12
|
* refactor the optimized build_query a bitAaron Patterson2011-08-081-8/+3
|
* reduce file stats by improving our dir glob patternAaron Patterson2011-08-081-1/+1
|
* hash on the template directory in order to improve cache hitsAaron Patterson2011-08-081-2/+3
|
* use meaningful names with our variablesAaron Patterson2011-08-081-6/+6
|
* use binread to read the filesAaron Patterson2011-08-081-1/+2
|
* Use shorter class-level File methods instead of going through File.stat.thedarkone2011-07-251-1/+1
|
* Optimize the most common resolver case.José Valim2011-05-091-13/+26
|
* No need for replace.José Valim2011-05-091-12/+11
|
* removes a remaining reference to .rjs in template resolver's RDocXavier Noria2011-04-131-1/+1
|
* fixes a couple of regexps, the suite showed warnings about themXavier Noria2011-03-271-2/+2
| | | | | | | | | | | | | | | | | A couple of things worth mentioning here: - "{" is a metacharacter, should be escaped if it is meant to match a "{". The code worked, though, because the regexp engine is tolerant to this, but issued warnings. - gsub accepts a string as first argument. That's the best idiom to use when your pattern has no metacharacters, since gsub interprets the string as an exact substring to look for, rather than a regexp. The benefit is that your pattern is crystal clear and needs no backslashes.
* Improved resolver docs a bitJosé Valim2011-03-191-2/+10
|
* [action_view] docs for FileSystemResolverChris Kowalik2011-03-201-2/+30
|
* [action_view] added custom patterns to template resolverChris Kowalik2011-03-201-18/+49
|
* Add additional text to NotImplementedErrors [#6328 state:resolved]Mike Gehard2011-03-121-1/+1
| | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* reduce string append funcallsAaron Patterson2011-02-081-3/+3
|
* Ensure render is case sensitive even on systems with case-insensitive ↵José Valim2011-02-081-3/+12
| | | | | | filesystems. This fixes CVE-2011-0449
* A bunch of cleanup on the inherited template patchwycats2010-12-261-1/+1
|
* Bring back config.action_view.cache_template_loading [#5847 state:resolved]Piotr Sarnacki2010-12-161-3/+8
|
* Ensure resolvers backward compatibility.José Valim2010-12-091-1/+1
|
* Deprecate handler_class_for_extension as template handlers can be any Ruby ↵José Valim2010-12-011-1/+1
| | | | object, not necessarily a class.
* Do not allow templates coming from Fallback resolvers to store a virtual path.José Valim2010-10-101-0/+13
|
* Resolvers now consider timestamps.José Valim2010-10-101-21/+46
| | | | | | | | | | | Before this patch, every request in development caused the template to be compiled, regardless if it was updated in the filesystem or not. This patch now checks the timestamp and only compiles it again if any change was done. While this probably won't show any difference for current setups, but it will be useful for asset template handlers (like SASS), as compiling their templates is slower than ERb, Haml, etc.
* Remove locals dependency from template.José Valim2010-10-071-7/+23
| | | | | | This means that templates does not need to store its source anymore, allowing us to reduce the ammount of memory taken by our Rails processes. Naively speaking, if your app/views contains 2MB of files, each of your processes (after being hit by a bunch of requests) will take 2MB less of memory after this commit. This is extremely important for the upcoming features. Since Rails will also render CSS and JS files, their source won't be stored as well allowing us to decrease the ammount of memory taken.