Commit Graph

7590 Commits

Author SHA1 Message Date
Alexey Vakhov
8df7fe3f63 normalize arg for ActionView::TestCase tests method 2011-10-03 14:27:42 +04:00
Sam Pohlenz
6f429f375e Ensure that enhancements to assets:precompile task are only run once
Signed-off-by: José Valim <jose.valim@gmail.com>
2011-10-03 11:18:49 +02:00
José Valim
9c6d4801d1 Merge pull request #3193 from avakhov/patch-ac-test-case-safe-constantize
use safe_constantize instead constantize in AC::TestCase
2011-10-03 02:10:40 -07:00
Alexey Vakhov
8e946daf69 normalize arg for AC::TestCase tests class method 2011-10-03 12:12:07 +04:00
Alexey Vakhov
0eb80fabdd use safe_constantize instead constantize in AC::TestCase 2011-10-03 10:04:14 +04:00
José Valim
d68884f4fd :group => :assets should only run in the assets environment. 2011-10-02 22:08:33 +02:00
José Valim
753424079e Provide initialize_on_precompile which, when set to false, does not initialize the app for precompilation. Defaults to true. 2011-10-02 12:15:21 +02:00
José Valim
6e8fe1bf02 TestCase should respect the view_assigns API instead of pulling variables on its own. 2011-10-02 11:29:13 +02:00
Arun Agrawal
b30ffbbfd6 Use of :: in void context Warning removed 2011-10-01 14:27:12 +05:30
Santiago Pastorino
d2888de598 Add CHANGELOG entries 2011-09-29 16:49:31 -03:00
Santiago Pastorino
64b0c8888b javascript_path and stylesheet_path should honor the asset pipelining 2011-09-28 20:13:24 -03:00
Wen-Tien Chang
3058d13a06 Make button_to helper support "form" option which is the form attributes. 2011-09-29 01:40:15 +08:00
Alexey Vakhov
1bd88fdafd add missing require to html sanitizer 2011-09-27 23:39:52 +04:00
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