Gonçalo Silva
dcc99e23cd
benchmarker and profiler now use the new performance testing tools (support for Rubinius and JRuby and high configurability)
2011-05-10 02:33:01 +01:00
José Valim
0e1dcae185
Disable identity map by default. Detailed documentation will be pushed later.
2011-05-10 00:49:36 +02:00
Gonçalo Silva
a43f95d235
added a note about profiling options to the generators
2011-05-09 01:00:04 +01:00
Vijay Dev
668cb42f94
improve comment in wrap_parameters template
2011-05-09 00:02:27 +05:30
José Valim
30db3a82f6
Merge pull request #430 from dlee/methodoverride
...
Logs should show overridden method; Issue 426
2011-05-08 03:33:22 -07:00
Jordi Romero
bfff5eac77
Add alias r
for rails runner
2011-05-07 20:12:34 -07:00
Vijay Dev
9d6f28d234
update readme to reflect app/assets
2011-05-07 21:40:34 +05:30
José Valim
c444b0f67b
ADdd missing requires (thanks to @arunagw)
2011-05-07 13:35:21 +02:00
José Valim
9cc18c52fa
Merge pull request #263 from CvX/master
...
Corrected dbconsole usage message
2011-05-07 03:34:28 -07:00
David Lee
17a91a6ef9
Logs should show overridden method; Issue 426
2011-05-07 03:04:26 -07:00
Aditya Sanghi
5e235278c4
Made language consistent with the rest of the comments in the file.
2011-05-06 13:07:14 -07:00
Jason Rudolph
59982acd63
Always flush logger at exit
...
Prior to this change, running code via script/runner would demonstrate
different logging behavior than running the same code via a rake task.
In production mode the script/runner approach would always flush the
logger, but the rake-based approach would not automatically flush the
logger. This discrepancy violates the principle of least surprise, and
it could lead to the loss of important production logging data.
This change removes special-case code in the "runner" command, and
replaces it with a general solution to ensure that the logger gets
flushed at exit. This solution works for "runner", "console", "server",
rake tasks, and any other process that loads the Rails environment.
2011-05-06 12:21:21 -04:00
Aditya Sanghi
cdf1842caa
review fixes
2011-05-06 20:59:15 +05:30
Aditya Sanghi
9b5c29038d
default orm and test_framework to false; change application.rb template accordingly
2011-05-06 20:29:11 +05:30
Aditya Sanghi
75e1e2175d
When skipping skip active record, mark config.generators.orm to false; LH 5796 remainder
2011-05-06 18:04:20 +05:30
Daniel Martin
1f1989dee0
Take into account the Rack::Server :SSLEnable option when building the application's URL
2011-05-06 07:22:27 +01:00
Peter Suschlik
97f9000cf2
Display custom asset routes in rake routes
2011-05-05 12:14:40 +02:00
José Valim
3e9bb5459c
Merge pull request #390 from arunagw/jruby_openssl
...
Adding jruby-openssl in Gemfile by default. #jruby
2011-05-05 00:30:42 -07:00
José Valim
65fd004da4
Merge pull request #391 from bradleypriest/patch-1
...
Tidying up the language in wrap_parameters.rb
2011-05-05 00:24:58 -07:00
Bradley Priest
a9fb5116d7
Tidying up the language in wrap_parameters.rb
2011-05-04 23:04:30 -07:00
Arun Agrawal
2f331fd9b2
Adding jruby-openssl in Gemfile by default. #jruby
2011-05-05 08:30:26 +05:30
David Heinemeier Hansson
e99c1e3a3b
No longer need to reference mysql2 from git
2011-05-04 21:08:36 -05:00
David Heinemeier Hansson
169ae75e09
Prepare for beta1
2011-05-04 20:21:05 -05:00
David Heinemeier Hansson
9f062970ca
Dont show the assets mount in rake routes
2011-05-04 19:24:41 -05:00
Xavier Noria
47e1cca5dc
Merge branch 'master' of git://github.com/lifo/docrails
2011-05-04 20:15:00 +02:00
Vijay Dev
2076295aba
commented meta code
2011-05-04 23:42:29 +05:30
Vijay Dev
3e7a8ccdc4
formatting results in comments
2011-05-04 23:38:21 +05:30
José Valim
92661b0c50
Move sandbox to AR and pass the sandbox as a value. This way, other ORMs like Datamapper can also have their own sandboxing in rails console.
2011-05-04 16:47:35 +02:00
José Valim
b9bba555ca
Remove defined?(ActiveRecord) and use the railtie hook instead.
2011-05-04 16:32:24 +02:00
Xavier Noria
d9c39c3ae9
restores the -j option, but now it accepts the name of any library
...
If passed "foo", a gem "foo-rails" is added to the Gemfile
and "foo" and "foo_ujs" are required in the application
JavaScript manifest.
2011-05-04 10:33:53 +02:00
Xavier Noria
33567d1d7b
jQuery is no longer vendored
2011-05-04 10:33:53 +02:00
José Valim
1ca81238b5
Add static_cache_control as configuration option and set a default for test. Should improve performance in acceptance tests.
2011-05-03 13:07:39 +02:00
José Valim
06ddda0a5f
We no longer depend on those git repos.
2011-05-03 12:56:57 +02:00
David Heinemeier Hansson
2fbbd08616
Use require_self from latest Sprockets
2011-05-02 19:24:49 -05:00
David Heinemeier Hansson
79a9bebcbf
Merge pull request #359 from sikachu/params_wrapper.
...
Add `ActionController::ParamsWrapper` to wrap JSON parameters into a nested parameters.
2011-05-02 14:08:44 -07:00
Prem Sichanugrist
8c9e4d5202
Add ActionController::ParamsWrapper
to wrap parameters into a nested hash
...
This will allow us to do a rootless JSON/XML request to server.
2011-05-03 03:21:43 +07:00
Joshua Peek
f76726c09d
Use sprockets beta gem
2011-05-01 23:23:31 -07:00
Xavier Noria
b2aacc346c
Prototype and Scriptaculous are no longer vendored, but provided by prototype-rails from now on, also the -j option of the application generator is removed
2011-04-30 03:53:24 +02:00
Santiago Pastorino
9ef4b70b20
Update jquery-ujs and prototype-ujs
2011-04-29 21:44:40 -03:00
David Heinemeier Hansson
e350641d02
Include CSRF token in remote:true calls
2011-04-29 18:22:10 -06:00
Brian Cardarella
564fe7f633
Fixed comment 'config.asset' => 'config.assets'
2011-04-29 14:17:40 -07:00
Xavier Noria
cc35d5c9e7
JavaScript expansions are ignored if the application uses the asset pipeline, warn the user
2011-04-29 22:14:34 +02:00
David Heinemeier Hansson
e84788e60c
Relevant options closer together
2011-04-27 08:55:26 -06:00
Josh Kalderimis
a009c3b4b9
minor git sources formatting change in railties app_base.rb
2011-04-27 22:05:58 +08:00
Ganesh Kumar
bd2444d1a8
enable uglifier gem as new version of execjs is relased
2011-04-27 20:50:09 +08:00
José Valim
e36befbdd7
Merged pull request #279 from miloops/434d757.
...
Fix console to accept [environment] [options] as specified in docs.
2011-04-26 11:15:42 -07:00
Vishnu Atrai
16d3266144
jdbcpostgresql support added into template.
2011-04-26 01:00:37 +05:30
Aaron Patterson
17fec021d1
Merged pull request #300 from arunagw/jdbc_test.
...
Start Adding jdbcmysql support to new rails template.
2011-04-25 09:20:40 -07:00
Piotr Sarnacki
d4bea35f1a
Make ActionController::Base.modules_for_helpers and ActionController::Base.all_helpers_from_path public methods
2011-04-25 15:02:41 +02:00
Piotr Sarnacki
820c0feda3
Explicitly define main_app proxy
2011-04-25 14:56:58 +02:00
Piotr Sarnacki
e38b4436a5
Add Engine#helpers method which loads all the engine's helpers
2011-04-25 13:44:27 +02:00
David Heinemeier Hansson
723a0f82c4
Go with latest Sass directly
2011-04-25 06:34:43 -05:00
José Valim
2bc48561d5
Fix tests.
2011-04-25 11:14:39 +02:00
Prem Sichanugrist
f2fc921447
No need to check for both full and mountable.
...
All mountable engine are considered `full?` already.
2011-04-25 15:30:58 +08:00
Prem Sichanugrist
a1c31eca47
Add app/assets/images
directory to plugin new generator
2011-04-25 15:30:58 +08:00
David Heinemeier Hansson
05ce0007db
Temporarily disable uglifier until a new version depending on execjs 0.2.0 can be released (tomorrow?)
2011-04-24 20:34:22 -05:00
Arun Agrawal
51854de52c
Adding jdbcsqlite3 name in comment.
2011-04-24 01:59:20 +05:30
Arun Agrawal
d59a9507cb
Looks more friendly.
2011-04-24 00:17:19 +05:30
Arun Agrawal
b335533e16
jdbcsqlite3 support added into template. #jruby
2011-04-23 19:03:24 +05:30
David Heinemeier Hansson
8d7efe6a4e
Stop adding actual dummy tests (they clutter up the real ones in a new app), just show how its done
2011-04-23 13:22:30 +02:00
David Heinemeier Hansson
3f7a434d2e
The example uses erb
2011-04-22 23:38:03 +02:00
Arun Agrawal
d42e43b3e5
Fixed images path in plugin_new_generator
2011-04-23 04:08:01 +08:00
Arun Agrawal
6cea2436d7
Start Adding jdbcmysql support to new rails template.
...
More will come for jruby app.
2011-04-23 00:41:52 +05:30
David Heinemeier Hansson
59ce0f695b
Turn on JS/CSS compression by default
2011-04-22 18:06:59 +02:00
Joshua Peek
dab96a267e
Add shorthand for js and css compressors
2011-04-22 10:49:55 -05:00
David Heinemeier Hansson
c96bf840ad
Add app/assets/images and include the rails.png as a sample there
2011-04-19 20:38:38 +02:00
David Heinemeier Hansson
9aac54c4bf
Add note about the option to add other precompile targets
2011-04-19 20:35:53 +02:00
David Heinemeier Hansson
e6850136d6
Set a default precompile target to be the application.js, application.css, and all non-css/js files (images etc)
2011-04-19 20:33:56 +02:00
David Heinemeier Hansson
1e56c89559
Give assets access to asset_path during precompilation
2011-04-19 20:06:09 +02:00
David Heinemeier Hansson
0acc6bd6cb
Use proper coffee comments
2011-04-18 21:07:04 +02:00
David Heinemeier Hansson
3e33592316
Add description to assets:precompile such that it shows up in rake -T
2011-04-18 11:18:37 +02:00
José Valim
a9a2035722
Fix assets generators.
2011-04-17 11:48:15 +02:00
José Valim
3a68aec1a1
Make generators more modular, add hooks and improve test suite.
2011-04-17 11:44:52 +02:00
José Valim
8f75c3abcd
Move app initializers to sprockets railtie.
2011-04-17 10:51:07 +02:00
José Valim
eb75f15a1a
Generate app/* stubs directories for full plugins to show ththat it is possible to extend them.
2011-04-17 10:23:07 +02:00
Piotr Sarnacki
5952d4f860
Fix plugin new generator to work with new javascript/stylesheets conventions
2011-04-16 19:59:21 +02:00
José Valim
9982b5af94
Fix missing test_helper.
2011-04-15 21:32:36 +02:00
José Valim
d5ad92ced1
Make static faster as we don't have to serve multiple paths anymore.
2011-04-15 20:09:39 +02:00
José Valim
afc828828f
Remove the ability for engines to serve assets from the public directory.
2011-04-15 19:57:52 +02:00
José Valim
d84b2f37d0
Fix tests.
2011-04-15 19:17:58 +02:00
José Valim
2fe70c1803
Booya, sprockets now works from Engines.
2011-04-15 18:43:22 +02:00
Emilio Tagua
434d75705f
Fix console to accept [environment] [options] as specified in docs.
2011-04-14 23:05:08 -03:00
David Heinemeier Hansson
3d44e45758
Use JS comments, please
2011-04-15 01:33:03 +02:00
Prem Sichanugrist
89884c194a
Update scaffold controller to generate scss file if Sass is available
2011-04-15 00:32:27 +08:00
Sebastian Martinez
fb6fa1e425
change to use the Sass file extension .scss
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2011-04-14 10:14:57 -03:00
David Heinemeier Hansson
6c91b699bf
The controller and resource generators will now automatically produce asset stubs (this can be turned off with --skip-assets). These stubs will use Coffee and Sass, if those libraries are available. [DHH]
2011-04-14 12:23:21 +02:00
David Heinemeier Hansson
90246acb6d
Bring back tmp/cache for the default local cache to work
2011-04-14 10:57:14 +02:00
David Heinemeier Hansson
443af58995
Its assets.enabled, not assets.enable
2011-04-14 00:45:25 +02:00
David Heinemeier Hansson
bd3b2241a4
Cleanup the Gemfile and compute whats needed depending on whether we are on 1.8 or 1.9
2011-04-13 21:32:41 +02:00
David Heinemeier Hansson
48fb6b3380
Generate scaffold.css to app/assets/stylesheets (next step, SCSSify it if SCSS is available)
2011-04-13 18:21:52 +02:00
David Heinemeier Hansson
023d4f9fc1
Includes have to be in the first comment
2011-04-13 18:09:04 +02:00
David Heinemeier Hansson
e7280cb1bd
Use driver_ujs now that we no longer have to depend on a shared name and insert all prototype dependencies if thats specified
2011-04-13 18:08:40 +02:00
David Heinemeier Hansson
17c1b0f0d3
Use driver_ujs now that we no longer have to depend on a shared name and insert all prototype dependencies if thats specified
2011-04-13 18:08:02 +02:00
David Heinemeier Hansson
26528efb54
Blah, assets cant be turned on from initializers either
2011-04-13 18:02:49 +02:00
David Heinemeier Hansson
4eb3ee4818
Cleanup comments
2011-04-13 17:54:11 +02:00
David Heinemeier Hansson
5b49867a75
Not needed
2011-04-13 17:51:46 +02:00
David Heinemeier Hansson
65ffcecc6a
Require asset pipeline targets by default
2011-04-13 17:50:55 +02:00
David Heinemeier Hansson
7e3b374312
Require everything by default
2011-04-13 17:50:37 +02:00
David Heinemeier Hansson
f3f28ee493
Dont need to make application.js into coffee since it will mostly be a manifest file anyway
2011-04-13 17:37:48 +02:00
David Heinemeier Hansson
cf5599d9fa
Move json requirement to user Gemfile -- still need to do better than this, though
2011-04-13 17:31:32 +02:00