Aaron Patterson
81f14a5433
Merge pull request #4735 from arton/master
...
Re-launch assets:precompile task using original $0 if $0 is batch file so it works on Windows
2012-01-31 11:00:17 -08:00
kennyj
205674408b
Don't fork a process when assets:precompile:nondigest is invoked in assets:precompile:all. Improve GH #3694 .
2012-01-07 00:29:05 +09:00
Arun Agrawal
ca219a21b6
Warnings removed when running with 1.9.3
2011-10-09 17:15:55 +05:30
José Valim
4cea4ee6b5
Fix regression when calling helpers inside sprockets.
2011-10-05 09:37:58 +02:00
José Valim
87c57bb88f
Fix the lame config.action_controller.present? check scattered throughout assets_path.
...
Conflicts:
actionpack/test/template/sprockets_helper_test.rb
2011-10-05 02:35:43 +02:00
José Valim
ac2f6bd643
Encapsulate common rake invocation logic in a method.
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2011-10-05 01:25:55 +02:00
Mark J. Titorenko
110ce85482
added comment about why nondigest assets requires a reinvocation
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2011-10-05 01:25:47 +02:00
Mark J. Titorenko
26a62a6552
only reinvoke if necessary
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2011-10-05 01:25:39 +02:00
Mark J. Titorenko
42eda8f8a1
only execute the nondigest task if needed
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2011-10-05 01:25:05 +02:00
Mark J. Titorenko
ee51cc30ff
don't munge the environment, let rake do that for us
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2011-10-05 01:25:01 +02:00
Mark J. Titorenko
b41bd968c6
assets compilation task refactoring
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2011-10-05 01:24:58 +02:00
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
José Valim
7f1a666db5
Fix failing tests and refactor assets.rake
2011-10-04 11:25:36 +02: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
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
Arun Agrawal
b30ffbbfd6
Use of :: in void context Warning removed
2011-10-01 14:27:12 +05:30
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
Santiago Pastorino
17882d2a9e
Copy assets to nondigested filenames too
2011-09-26 13:54:06 -03:00
José Valim
5c0e9333c0
Encapsulate assets initialization in its own rake task.
2011-09-26 16:31:30 +02: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
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
Terence Lee
9d46823b5d
set env to let rails know we're precompiling
2011-09-22 20:54:02 +02: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
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
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
Guillermo Iguaran
9c7e885007
Clear cache before of each precompile to avoid inconsistencies. Fixes #3014
2011-09-13 22:06:29 -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
Santiago Pastorino
038e45a2b6
Merge pull request #2987 from kennyj/master
...
fix https://github.com/rails/rails/issues/2947 (with testcase)
2011-09-12 23:04:14 -07:00
kennyj
21eaba4c39
fix https://github.com/rails/rails/issues/2947 (with testcase)
2011-09-13 02:59:57 +09:00
Santiago Pastorino
d762e22c04
Merge pull request #2985 from kennyj/master
...
fix https://github.com/rails/rails/issues/2582 (with testcase)
2011-09-12 10:18:19 -07:00
kennyj
3ce830272e
fix https://github.com/rails/rails/issues/2582 (with testcase)
2011-09-13 01:06:31 +09:00
Alex Yakoubian
901c02d86a
Fixed assets precompile regex, now accepts Procs
2011-09-08 13:44:08 -07:00
Sam Pohlenz
58b0c97347
assets:precompile should not append asset digests when config.assets.digest is false
2011-09-01 18:01:45 +09:30
Santiago Pastorino
3ce3b5b1f1
Merge pull request #2780 from guilleiguaran/assets-pipeline-minor-changes
...
Assets pipeline: fix in manifest location and remove unused code
2011-08-31 22:51:37 -03:00
Guillermo Iguaran
d0b3937b8f
Set default location of manifest with config.assets.manifest
2011-08-31 13:12:25 -05:00
Guillermo Iguaran
f236e00189
Backport f443f9cb0c to master
2011-08-31 13:12:09 -05:00
Guillermo Iguaran
dffdd82993
Read digests of assets from manifest.yml if config.assets.manifest is on
2011-08-31 12:41:28 -05:00
Guillermo Iguaran
73d34feb4c
Always enable digest and compile in the Rake task
2011-08-31 19:18:16 +02:00
Joshua Peek
5493d22419
Bring in sprockets precompile task
2011-08-24 10:58:43 -05:00
Joshua Peek
63d3809e31
Fix sprockets warnings
...
Fixes #2598
2011-08-21 16:42:06 -05:00
Jon Leighton
5902391567
Fix assets tests in railties
2011-08-16 16:41:01 +01:00
Santiago Pastorino
4ca605b71b
rake assets:precompile executes in production environment as default if RAILS_ENV was not provided
2011-08-15 15:31:47 -03:00
José Valim
652ab436db
Ensure changing RAILS_GROUPS will load the proper dependencies.
2011-08-14 10:52:46 -07:00
José Valim
bb4f687bc6
Remove lame comment.
2011-08-09 16:49:38 -07:00
Santiago Pastorino
d9b690f71f
rake assets:precompile defaults to production env
2011-08-09 20:40:52 -03:00
Ilya Grigorik
050c1510b6
Clear out tmp/cache when assets:clean is invoked.
...
Otherwise, if bad data is cached in tmp/clear then the next invocation
of assets:precompile (or a regular incoming request) will pickup files from
tmp without regenerating them from source.
2011-08-04 23:54:22 -04:00