Commit Graph

13272 Commits

Author SHA1 Message Date
Bryan Helmkamp
f221a6f19f Leverage VERSION constants from gemspecs to avoid tedious updates when releasing 2010-03-02 00:32:53 -05:00
Bryan Helmkamp
a4111bbca0 Update versions of all components to normalize them to new format 2010-03-02 00:32:48 -05:00
Bryan Helmkamp
b1769fe0bd Add rake update_versions task at root for quickly updating all components 2010-03-02 00:32:41 -05:00
Jeremy Kemper
a0e8eca30b Fix unstated usage of Action Dispatch 2010-03-01 21:29:47 -08:00
Jeremy Kemper
812136a0b2 Fix unstated usage of Pathname 2010-03-01 19:29:12 -08:00
Bryan Helmkamp
11db694e0b Remove cruft in the gem packaging and release code 2010-03-01 19:00:19 -08:00
Jeremy Kemper
8bb162f008 Fix unstated usage of inflector 2010-03-01 18:52:07 -08:00
Carlhuda
fc0882ba5a Optimize AS::Notifications to remember which subscribers don't match and not run them. This will allow notifications that are only useful in dev or testing to run efficiently in production. 2010-03-01 17:45:37 -08:00
Carlhuda
c88360ef36 You can unsubscribe a subscriber 2010-03-01 17:45:37 -08:00
Carlhuda
048b436f33 AS::Subscriber is not a LogSubscriber 2010-03-01 17:45:37 -08:00
Carlhuda
300d6b549d Merge _details_defaults and details_for_render 2010-03-01 17:45:37 -08:00
Jeremy Kemper
8b5b241377 Bump pg dep to 0.9.0+ 2010-03-01 16:20:10 -08:00
Carlhuda
b85ea58eb5 Change AV formats so they can delegate to the controller. Now users (or plugins) can override details_for_render in their controllers and add appropriate additional details. Now if only they could *do* something with those details... 2010-03-01 14:37:05 -08:00
Carlhuda
8fbbdda526 Delegate formats to the controller 2010-03-01 14:10:53 -08:00
Lourens Naudé
2060977b76 Hash#symbolize_keys(!) optimizations
[#3891 state:committed]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-03-01 11:22:41 -08:00
Joshua Peek
82deaf5f05 nested controllers need to be explicitly declared with the new mapper 2010-02-28 18:43:20 -06:00
Joshua Peek
2ce3085e3c Define Bundler constant stub if bundler gem is not installed 2010-02-28 18:34:57 -06:00
Joshua Peek
a5da48d231 vendor/rails doesn't work anymore, remove it from the blank slate suggestion 2010-02-28 18:32:46 -06:00
Joshua Peek
30446f7b29 correct activeresource load path 2010-02-28 18:29:34 -06:00
Joshua Peek
5cc17da894 activerecord test load paths 2010-02-28 18:28:25 -06:00
Joshua Peek
4377deed35 ensure activemodel lib is setup correctly 2010-02-28 18:27:00 -06:00
Joshua Peek
1a2fba1b6b don't expand test path 2010-02-28 18:26:00 -06:00
Joshua Peek
cbefcc88b3 add activesupport and activemodel load paths to actionpack tests 2010-02-28 18:25:02 -06:00
Joshua Peek
f0fe555d84 fix up actionmailer load path 2010-02-28 18:18:21 -06:00
Joshua Peek
6c8d852056 fix up activesupport test load paths 2010-02-28 18:16:57 -06:00
Joshua Peek
fef7a77386 Request#subdomain returns a string version of Request#subdomains 2010-02-28 17:16:34 -06:00
Joshua Peek
7317d9ef4c Remove implicit controller namespacing from new dsl 2010-02-28 16:39:01 -06:00
Joao Carlos
020fdb28ee #exit accepts an integer, not a string
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-02-28 12:29:01 +01:00
José Valim
f3839b2b99 ActiveRecord should raise an error on invalid migration types. 2010-02-28 11:53:48 +01:00
José Valim
ae8070e21b Add missing information about attributes method. 2010-02-28 11:43:13 +01:00
José Valim
32afcdcb88 ActiveModel::Lint should not require our models to respond to id. 2010-02-28 11:39:39 +01:00
Yehuda Katz
6ffc8364dc Explain why we're calling an empty callback 2010-02-27 17:29:28 -08:00
Yehuda Katz
b51c0d4d25 1.9 doesn't like lambda {} being called with arguments 2010-02-27 17:28:46 -08:00
Jeremy Kemper
b1b922d6ea Revert "Revert "Application detection should also allow dots in the path.""
Works after all. Culprit was 226dfc2.

This reverts commit 6189480b1878cdadb092fdfa32ba156a91e6a0e1.
2010-02-27 17:10:04 -08:00
Jeremy Kemper
6189480b18 Revert "Application detection should also allow dots in the path."
Ruby 1.9 regression.

This reverts commit 76237f163ff7ad2a64af926030e3449c547cafa2.
2010-02-27 16:59:18 -08:00
S. Christoffer Eliesen
09cb0977d4 Print database.rake errors to stderr.
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-02-27 16:53:40 -08:00
Yehuda Katz
1c9de08734 Escape the file name (who knows when a "(" might appear in a filename!) 2010-02-27 12:18:28 -08:00
Yehuda Katz
d8acaf2b66 Remove the noisy lines involving AS::Dependencies from the NameError stack trace if a constant cannot be found. 2010-02-27 11:51:19 -08:00
Yehuda Katz
8247bd9d3e The instance_reader of default_url_options needs to not exist. 2010-02-27 00:18:16 -08:00
Yehuda Katz
3f0ed205e7 Remind us that RoutingAssertions should work in an integration context 2010-02-26 22:47:36 -08:00
Carlhuda
4bdc783d37 1.9 seems to have a bug involving cloned classes and super. Fix it by not cloning (and instead creating classes on demand). The 1.9 bug should be investigated. 2010-02-26 18:25:56 -08:00
Carlhuda
faf3c2f827 Set the body using the accessor for AD::Response introspection mode so it gets wrapped in a [] 2010-02-26 18:24:55 -08:00
Carlhuda
8689989a52 Make ActionController::Routing::Routes a DeprecatedProxy 2010-02-26 17:31:32 -08:00
Carlhuda
050831803a If IntegrationSession is initialized with an objects that responds to #routes, automatically extend the URL helpers from the RouteSet onto it 2010-02-26 17:18:45 -08:00
Jeremy Kemper
6324eeefd7 plugin rails/init.rb deprecation message 2010-02-26 16:08:00 -08:00
Carlhuda
be0bf10a3c Upon further reflection, we realized that SharedTestRoutes is not really a hack, but is instead a standin (in the Rails tests) for Rails.application.routes.
* In a real application, action_controller/railties.rb does AC::Base.include(app.routes.url_helpers)
  * ActionController itself does not know about Rails.application, but instead can have named routes for any router
  * SharedTestRoutes are created in abstract_unit to stand in for Rails.application.routes, and is used in
    internal functional tests
2010-02-26 16:06:54 -08:00
Carlhuda
74df7795a8 Relatively speaking, it's not actually that bad... 2010-02-26 15:58:24 -08:00
Carlhuda
ab0cc7286f Setting UrlFor in with_routing is no longer needed now that it's not global 2010-02-26 15:56:38 -08:00
Carlhuda
dae109a463 Including UrlFor in Redirecting and Head will warn usefully if a controller is wired up without a router included (and still support redirect_to "omg") 2010-02-26 15:56:17 -08:00
Carlhuda
3bad24c85d Remove traces of SharedTestRoutes from user code; leave it as a standin for Rails.application.routes in Rails internal tests 2010-02-26 15:44:22 -08:00