Santiago Pastorino
e97b6f2ef7
Merge pull request #3138 from christos/correct_image_path_with_pipeline
...
Correctly override image_path in sprockets rails_helper
2011-09-26 10:02:02 -07:00
Santiago Pastorino
cf90181d84
Merge pull request #3136 from guilleiguaran/clear-digests-on-precompile
...
Avoid use of existing precompiled assets during rake assets:precompile run
2011-09-26 13:57:07 -03:00
Christos Zisopoulos
1996e93eaa
Refactor image_path to use asset_path directly
2011-09-26 18:56:30 +02:00
Santiago Pastorino
17882d2a9e
Copy assets to nondigested filenames too
2011-09-26 13:54:06 -03:00
Christos Zisopoulos
b8ea31540a
Correctly override image_path in sprockets rails_helper
2011-09-26 18:45:49 +02:00
Santiago Pastorino
d6cff93152
Just assert_equal here
2011-09-26 12:20:52 -03:00
Santiago Pastorino
2c3a5075b6
Merge pull request #3135 from christos/respect_assets_digest_value
...
Give precedence to `config.digest = false` over the existence of manifest.yml asset digests
2011-09-26 08:16:02 -07:00
José Valim
5c0e9333c0
Encapsulate assets initialization in its own rake task.
2011-09-26 16:31:30 +02:00
Santiago Pastorino
b855327443
image_tag should use /assets if asset pipelining is turned on. Closes #3126
2011-09-26 11:20:30 -03:00
Christos Zisopoulos
793e9da63d
Give precedence to config.digest = false over manifest.yml asset digests
2011-09-26 14:27:04 +02:00
Vijay Dev
541018a07b
fix deprecation warning in cookie_store_test
...
The options argument to MessageVerifier#initialize should be a hash.
2011-09-25 23:21:37 +05:30
Evgeniy Dolzhenko
86cf3fb5fa
Implement Mime::Type#respond_to? (consistently with #method_missing)
2011-09-25 13:03:01 +01:00
José Valim
933ba0cf6e
Merge pull request #3124 from avakhov/patch-6-stylesheet-link
...
escape options for the stylesheet_link_tag method
2011-09-25 04:03:13 -07:00
Alexey Vakhov
5ffa69793f
escape options for the stylesheet_link_tag method
2011-09-25 09:40:49 +04:00
Guillermo Iguaran
038808ba1a
Add public API for register new js and css compressors for Sprockets
2011-09-24 19:22:13 -05:00
Santiago Pastorino
d54ff41f8e
Merge pull request #3121 from cablegram/3-1-stable
...
Re-launch assets:precompile task using (Rake.)ruby instead of Kernel.exec so it works on Windows
2011-09-24 18:18:30 -03:00
Santiago Pastorino
3de95fd930
Revert "Make process reuse the env var passed as argument"
...
This reverts commit 0e4748cd41 .
2011-09-24 17:19:42 -03:00
José Valim
e69011521d
Avoid using pathnames and automatically create the manifest directory if one does not exist yet.
2011-09-24 03:17:49 +02:00
José Valim
6795a9b309
Remove the ENV flag, yagni.
2011-09-24 03:17:37 +02:00
José Valim
eb367afeed
rake assets:precompile loads the application but does not initialize it.
...
To the app developer, this means configuration add in
config/initializers/* will not be executed.
Plugins developers need to special case their initializers that are
meant to be run in the assets group by adding :group => :assets.
Conflicts:
railties/CHANGELOG
railties/test/application/assets_test.rb
2011-09-24 03:17:23 +02:00
Guillermo Iguaran
a29c2bfba3
Remove Sprockets compute_public_path, AV compute_public_path can be used directly
2011-09-23 14:00:53 -05:00
Santiago Pastorino
5dcb269eb8
Merge pull request #3092 from asee/master
...
Sprockets to use config.assets.prefix, with tests
2011-09-23 09:34:04 -07:00
José Valim
e8987c30d0
Use safe_constantize where possible.
2011-09-23 16:46:33 +02:00
José Valim
d62fc8e021
Update CHANGELOG.
2011-09-23 00:44:55 +02:00
José Valim
48d27363f2
Fix failing tests and add tests for :formats on partial.
2011-09-23 00:42:20 +02:00
Nick Sutterer
552df29cc8
Using #extract_details in PartialRenderer, too!
2011-09-23 00:36:17 +02:00
Nick Sutterer
2e3eb2560b
Allow both sym and array for details options in #render. using LC#registered_details to extract options.
2011-09-23 00:36:14 +02:00
Nick Sutterer
f8e6664d86
added tests for render :file/:template and the :formats/:handlers/:locale options.
2011-09-23 00:36:10 +02:00
Terence Lee
9d46823b5d
set env to let rails know we're precompiling
2011-09-22 20:54:02 +02:00
docunext
c070cc4ab4
Fixes #1489 again, with updated code and numerous tests to confirm
2011-09-22 13:43:08 -04:00
José Valim
43d27e9105
Deprecate passing the template handler in the template name.
...
For example, calling hello.erb is now deprecated. Since Rails 3.0
passing the handler had no effect whatsover. This commit simply
deprecates such cases so we can clean up the code in later releases.
2011-09-22 15:37:38 +02:00
José Valim
c3fa2e9bf8
Make handlers a registered detail.
2011-09-22 15:06:04 +02:00
José Valim
119e9e2daf
Get rid of update_details in favor of passing details to find_template.
2011-09-22 15:03:05 +02:00
Nick Sutterer
cbaad674f1
it is now possible to pass details options (:formats, :details, :locales, ...) to #render, #find_template and friends. this doesn't change anything in global context.
2011-09-22 14:12:36 +02:00
Nick Sutterer
41bca5d466
Add rake test:template.
2011-09-22 14:00:53 +02:00
José Valim
1ca3fbfbf2
No need to recalculate the @details_key after update_details.
2011-09-22 12:26:37 +02:00
Pawel Pierzchala
019eea4a38
Fix named routes modifying arguments
2011-09-22 09:57:00 +02:00
Santiago Pastorino
676ddfcf71
Merge pull request #3081 from guilleiguaran/move-precompile-to-class
...
Move precompiling from task to Sprockets::StaticCompiler
2011-09-21 17:21:44 -07:00
José Valim
f373f296d0
Slightly reorganize lookup context modules in order to better isolate cache responsibilities.
2011-09-21 15:37:10 -07:00
Guillermo Iguaran
857d20efda
Move precompile task to Sprockets::StaticCompiler
2011-09-20 22:01:09 -05:00
Guillermo Iguaran
b50394bf84
config.action_controller.asset_host shouldn't set to nil during precompile
2011-09-15 19:55:52 -05:00
Santiago Pastorino
da7f0426ec
Allow asset tag helper methods to accept :digest => false option in order to completely avoid the digest generation.
2011-09-14 15:02:17 -07:00
José Valim
63f6fad644
Merge pull request #3015 from guilleiguaran/clear-tmp-cache-on-precompile
...
Clear cache before of each precompile to avoid inconsistencies. Fixes #3014
2011-09-14 05:26:53 -07:00
Santiago Pastorino
425362da31
Merge pull request #3012 from guilleiguaran/3-1-1-changelogs
...
Add missing changelog entries for actionpack
2011-09-14 00:58:44 -07:00
Santiago Pastorino
0d48b3afa9
Revert "Provide a way to access to assets without using the digest, useful for static files and emails"
...
This reverts commit 82afaa0686 .
2011-09-14 00:29:03 -07:00
Santiago Pastorino
5f28c22722
Merge pull request #2964 from msgehard/silence_warnings
...
Silence Ruby warnings about uninitialized instance variable.
2011-09-14 00:27:45 -07:00
Guillermo Iguaran
9c7e885007
Clear cache before of each precompile to avoid inconsistencies. Fixes #3014
2011-09-13 22:06:29 -05:00
Guillermo Iguaran
fae70cb6bc
Add missing changelog entries for actionpack
2011-09-13 19:40:47 -05:00
Mark J. Titorenko
f22407dd34
Don't mount Sprockets at config.assets.prefix if config.assets.compile is false.
2011-09-13 18:16:52 -05:00
Santiago Pastorino
82afaa0686
Provide a way to access to assets without using the digest, useful for static files and emails
2011-09-13 15:18:21 -07:00