Jeremy Kemper
133c349b0a
Merge branch 'master' of git@github.com:rails/rails
2008-11-26 02:05:53 -08:00
Jeremy Kemper
a88094fd7a
No need to have #generate and #generate_extras per instance
2008-11-26 02:05:28 -08:00
Aaron Batalion
fef6c32afe
Added optimal formatted routes to rails, deprecating the formatted_* methods, and reducing routes creation by 50% [ #1359 state:committed]
...
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com >
2008-11-26 10:52:05 +01:00
Jeremy Kemper
6599dd907f
Simpler and clearer to just explicitly require the JSON encoders
2008-11-26 01:08:37 -08:00
Jeremy Kemper
44216d5776
Autoload ActiveSupport::XmlMini
2008-11-26 00:35:55 -08:00
Jeremy Kemper
f4cae89da9
Require as little of REXML as possible to apply the entity_expansion_limit fix
2008-11-26 00:32:26 -08:00
Jeremy Kemper
27dbc27c41
Lazy-require CGI for Object#to_query
2008-11-26 00:31:55 -08:00
Jeremy Kemper
ad93212f79
Rename use_transactional_fixtures? so it doesn't collide with the superclass_delegating_accessor's query method
2008-11-25 23:50:57 -08:00
Jeremy Kemper
b7fef2610b
Extract XmlMini. Namespace FileLike extension.
2008-11-25 23:37:10 -08:00
Jeremy Kemper
d1213fa402
Rescue OpenSSL::Cipher::CipherError or OpenSSL::CipherError depending on which is present
2008-11-25 23:36:33 -08:00
Jeremy Kemper
4073a6d0a2
Remove XmlSimple dependencies
2008-11-25 19:49:49 -08:00
Jeremy Kemper
ab8fff2e3a
Unbundled XmlSimple
2008-11-25 18:55:09 -08:00
Joseph Holsten
fea8d9d06f
Extract XmlMini from XmlSimple. [ #1474 state:committed]
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2008-11-25 18:53:24 -08:00
Jeremy Kemper
8d2ca7dde1
Merge branch 'master' of git@github.com:rails/rails
2008-11-25 18:48:46 -08:00
Joshua Peek
c80fe1093d
Move debugger into middleware
2008-11-25 15:05:07 -06:00
Michael Koziarski
07abc5efe1
Add a MessageEncryptor, just like MessageVerifier but using symmetric key encryption.
...
The use of encryption prevents people from seeing any potentially secret values you've used. It also supports and encrypt_and_sign model to prevent people from tampering with the bits and creating random junk that gets fed to
A motivated coder could use this to add an :encrypt=>true option to the cookie store.
2008-11-25 20:51:30 +01:00
Joshua Peek
e126e1aac0
don't try to require vendored rack in script/server
2008-11-25 13:26:38 -06:00
Joshua Peek
3dd3ffde06
Depend on rack 0.4.0 instead of vendoring it
2008-11-25 13:20:12 -06:00
Joshua Peek
d4754677a3
Deprecate assert_valid
2008-11-25 12:32:14 -06:00
Joshua Peek
759183c822
Ensure ActionView will be available to ActionMailer if ActionController is not loaded
2008-11-25 10:38:20 -06:00
Craig Davey
f8558798d4
Ensure all HTML:: constants are available to autoload [ #1462 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2008-11-25 10:05:59 -06:00
Jeremy Kemper
d9c95c82e5
Explicitly require Active Support for tests
2008-11-24 22:45:44 -08:00
Jeremy Kemper
b6fd6ccc8f
AS::Dependencies also has core extensions; don't autoload it.
2008-11-24 22:42:11 -08:00
Jeremy Kemper
6482db8669
Explicitly require Action View also
2008-11-24 22:41:24 -08:00
Jeremy Kemper
ce50ca1baf
Explicitly require AS::Deprecation for the SecretKeyGenerator. Bring in ActiveSupport::TestCase for its tests.
2008-11-24 22:39:11 -08:00
Jeremy Kemper
cb49681710
Skip fcgi dispatcher tests if fcgi lib isn't available
2008-11-24 21:47:26 -08:00
Jeremy Kemper
d40bc307f9
Explicitly require action_view to bring in its i18n load path
2008-11-24 21:47:09 -08:00
Jeremy Kemper
36dcfcf126
Really remove components.
2008-11-24 18:48:00 -08:00
Jeremy Kemper
a5870d43e3
Rename Rails::Info.components to frameworks
2008-11-24 18:47:42 -08:00
Jeremy Kemper
104f3a5776
Add config.preload_frameworks to load all frameworks at startup. Default to false so Rails autoloads itself as it's used.
2008-11-24 18:43:04 -08:00
Jeremy Kemper
d01f75b1f0
Initializer#env relies on StringInquirer autoload. Style fixes.
2008-11-24 18:10:23 -08:00
Jeremy Kemper
536c239966
JSON can't be autoloaded since it includes core extensions
2008-11-24 13:08:25 -08:00
Jeremy Kemper
565fad350e
Ruby 1.9 compat: explicitly require delegate for cookie's DelegateClass
2008-11-24 12:05:17 -08:00
Jeremy Kemper
0f07b537ce
Require builder before fast_xs so we don't tickle its over-eager String#to_xs collision check
2008-11-24 11:39:51 -08:00
Jeremy Kemper
720ffdc42f
Explicitly require Builder in test that uses it
2008-11-24 11:05:54 -08:00
Jeremy Kemper
e06c5bef7f
Revert "Hack builder to look for fast_xs instead of insisting on its own String#to_xs"
...
This reverts commit 5d3712a81e .
2008-11-24 11:05:07 -08:00
Pratik Naik
1cbdd53bd3
Add a rake task to generate dispatchers : rake rails:generate_dispatchers
2008-11-24 19:50:09 +01:00
Pratik Naik
b7568e77d7
Fix typo in 5b5730cc6e
2008-11-24 19:35:09 +01:00
Yaroslav Markin
5b5730cc6e
Don't generate public/dispatch.cgi/fcgi/rb files by default.
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-11-24 19:31:58 +01:00
Joshua Peek
835be0cbed
missed ActiveRecord::Migrator
2008-11-24 12:31:16 -06:00
Geoff Garside
61becfe2b9
Test default singleton resource route to ensure it uses GET. This is important if using map.root :resource instead of map.root :resources for some reason.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2008-11-24 19:19:56 +01:00
Geoff Garside
eac16d0ee1
Reorder the way in which map.resource routes are added to the set. This prevents the singular named route from hitting :create instead of :show.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2008-11-24 19:19:55 +01:00
Joshua Peek
8aeed003f5
prototype and scripty helpers require json
2008-11-24 12:17:07 -06:00
Joshua Peek
a76351093c
helpers require dependencies
2008-11-24 12:17:07 -06:00
Joshua Peek
d6b923adbd
get activerecord tests passing with lazy loading
2008-11-24 12:17:07 -06:00
Joshua Peek
21901e9345
fixtures depends on dependencies
2008-11-24 12:17:07 -06:00
Eloy Duran
823b623fe2
Allow optional arguments and/or block for Object#try like Object#send does. [ #1425 state:resolved]
...
Original suggestion by Pat Nakajima.
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-11-24 18:53:48 +01:00
Joshua Peek
fffb1da3f2
require json lib when serialization is loaded
2008-11-24 11:52:29 -06:00
Joshua Peek
703fecb4fc
Add LAZY env flag for testing autoload/lazy load feature
2008-11-24 11:37:57 -06:00
Joshua Peek
368117c041
Autoload more ActiveSupport libs
2008-11-24 11:35:21 -06:00