José Valim
dc85fc546f
Fix failing test added in previous commit.
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2011-10-04 22:04:56 +02:00
Santiago Pastorino
db262211c9
Bump sprockets to 2.0.2
2011-10-04 14:14:36 -02:00
José Valim
96aa3bd0ea
Clean up subdomain code a bit.
2011-10-04 11:31:47 +02:00
José Valim
b039069756
Merge pull request #3209 from ksob/subdomain_false_strips_subdomains
...
:subdomain => false will remove all subdomains now. Closes #2025
2011-10-04 02:26:40 -07:00
José Valim
7f1a666db5
Fix failing tests and refactor assets.rake
2011-10-04 11:25:36 +02:00
Kamil Sobieraj
de942e5534
:subdomain can now be specified with a value of false in url_for, allowing for subdomain(s) removal from the host during link generation. Closes #2025
2011-10-04 09:16:34 +01:00
Brendan Ribera
b05a56f47d
Require rack-cache 1.1.
...
Versions prior to 1.1 delete the If-Modified-Since and If-Not-Modified headers when
config.action_controller.perform_caching is true. This has two problems:
* unexpected inconsistent behaviour between development & production environments
* breaks applications that use of these headers
2011-10-03 11:32:24 -07:00
José Valim
2120d7b838
Fix #3198 .
2011-10-03 13:38:02 -02: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 0e4748cd415660eb91e63d50aa15cdd027c612dd.
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