Carl Lerche
2110a524a4
Deprecate RAILS_ROOT in favor of Rails.root (which proxies to the application's object root)
2009-10-16 12:51:02 -07:00
Joshua Peek
6094e65169
We won't be publishing tars and zips anymore
2009-10-16 13:56:59 -05:00
Yehuda Katz
a565c19c5b
Fix a bug where templates with locales were not being sorted correctly
2009-10-16 11:26:19 -07:00
Jeremy Kemper
71f7e75d95
Merge branch 'master' into orchestra
2009-10-15 17:36:54 -07:00
Yehuda Katz
ef70ad5538
Fix a few more 1.9 bugs. Rack 1.0.1 is required for 1.9 compliance but not release, so bundling 1.0.1 from git
2009-10-15 17:16:42 -07:00
Yehuda Katz
c44d560145
Rack responses need to wrap Strings in 1.9
2009-10-15 16:37:27 -07:00
Yehuda Katz
e9d6bcd19f
Update MetalTest for constant scoping change in 1.9
2009-10-15 16:33:47 -07:00
Yehuda Katz
4869b74aee
Fix test to correctly handle 1.9 Array#to_s behavior
2009-10-15 16:27:26 -07:00
Yehuda Katz
b71f83c9cc
Work around apparent bug in 1.9
2009-10-15 16:03:30 -07:00
José Valim
2d7abe245e
Renamed Orchestra to Notifications once again [ #3321 state:resolved]
2009-10-15 18:51:51 -03:00
Yehuda Katz
e1490d4e4c
Change config implementation in AV slightly
2009-10-15 14:41:59 -07:00
José Valim
a15e02d44a
Unify benchmark APIs.
2009-10-15 18:19:25 -03:00
José Valim
8f59d7a8d8
Instrument cache store events only if required.
2009-10-15 18:19:24 -03:00
José Valim
af0d1fa892
Update Orchestra instrumentations and move part of logging to Orchestra.
2009-10-15 18:18:44 -03:00
José Valim
8b340ab2f6
Revert "Rename Orchestra to Notifications [ #3321 state:resolved]"
...
This reverts commit 8cbf825425 .
2009-10-15 18:06:15 -03:00
Yehuda Katz
cb8b0f4a5a
Make this less brittle and work on 1.8
2009-10-15 13:35:22 -07:00
Jeremy Kemper
428c0bd4ba
Kill rake bundle
2009-10-15 00:29:21 -07:00
Jeremy Kemper
deafa10e6c
AP tests depend on AR
2009-10-15 00:22:15 -07:00
Michael Koziarski
b1201792a7
Make the erubis implementation easier for plugins to change.
2009-10-15 17:54:01 +13:00
Michael Koziarski
cc1ad46ead
Add a read-only method which plugin authors can use to determine if xss escaping.
...
This doesn't provide a way to turn off the escaping, but alternative template engine authors
can figure out what their default should be by calling this. Avoids a messy version + plugin check.
2009-10-15 17:22:50 +13:00
Jeremy Kemper
4484f0bccf
Don't push siblings on load path if using bundled env
2009-10-14 20:59:45 -07:00
Jeremy Kemper
c09a5ffea7
Merge branch 'arel'
2009-10-14 19:32:09 -07:00
Jeremy Kemper
6eee1dd62c
Clarify AR dependency
2009-10-14 19:31:29 -07:00
Joshua Peek
bc1a18d7bd
Punt on ConcurrentHash [ #3322 state:resolved]
2009-10-14 19:53:52 -05:00
Joshua Peek
8cbf825425
Rename Orchestra to Notifications [ #3321 state:resolved]
2009-10-14 19:50:36 -05:00
George Ogata
3de8b44b26
Make IntegrationTest::Runner propagate method_missing to ancestors.
...
Fixes RSpec integration example groups, which mixes its Matchers
module into ActiveSupport::TestCase.
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2009-10-15 11:01:42 +13:00
Craig Smith
316f4704ea
Test cases should see all the cookies, not just cookies that have been set in the controller.
...
Previously this example would always pass, even when cookies.delete was not called.
@request.cookies['foo'] = 'bar'
get :delete_cookie
assert_nil cookies['foo']
Signed-off-by: Michael Koziarski <michael@koziarski.com >
[#2768 state:committed]
2009-10-15 10:58:55 +13:00
Michael Koziarski
1d01bad3ce
Make sure non-escaped urls aren't considered safe
2009-10-15 09:58:35 +13:00
Michael Koziarski
5d5e34fa52
Use ERB::Util.h over CGI.escapeHTML as the former is safety aware and the latter isn't
2009-10-15 09:58:17 +13:00
Phil Darnowsky
1b3195b63c
ActionView.url_for doesn't escape by default
...
ActionView::Helpers::UrlHelper#url_for used to escape the URLs it generated by
default. This was most commonly seen when generating a path with multiple
query parameters, e.g.
url_for(:controller => :foo, :action => :bar, :this => 123, :that => 456)
would return
http://example.com/foo/bar?that=456&this=123
escaping an ampersand that shouldn't be escaped. This is both wrong and
inconsistent with the behavior of ActionController#url_for, and is changed.
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2009-10-15 09:49:07 +13:00
Yehuda Katz
a41c6c35ca
Start adding configuration to ActionView instead of using constants.
...
By using config rather than hardcoded constants, we can evolve the
configuration system over time (we'd just need to update the config
method with more robust capabilities and all consumers would get
the capabilities with no code changes)
2009-10-14 13:36:41 -07:00
Jeffrey Hardy
a8dc9fd27b
CookieJar#delete should return the key's value, consistent with a Hash
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2009-10-14 11:50:51 -07:00
Joshua Peek
21e7b84621
Callbacks, DeprecatedCallbacks = NewCallbacks, Callbacks
2009-10-12 22:15:43 -05:00
Joshua Peek
9bc8defe38
Use "run_callbacks :foo" since it is the public api for callbacks [ #3329
...
state:resolved]
2009-10-12 21:58:49 -05:00
Jeremy Kemper
cbb70c896c
Bundle with system gem sources rather than gems.rubyforge.org default
2009-10-11 12:35:01 -07:00
Joshua Peek
8b46c50eac
Kill mock routing assertion that tests router implementation
2009-10-10 21:30:51 -05:00
Joshua Peek
e61bc8e29f
Fix failing safe buffer test. We don't patch CGI.escapeHTML, only ERB:Util.
2009-10-10 21:30:51 -05:00
Joshua Peek
1610cd0827
Move safe buffer into test/template
2009-10-10 21:30:51 -05:00
Joshua Peek
21be1dcffa
Relative url generations are covered more thoroughly by url rewriter tests
2009-10-10 21:30:50 -05:00
Joshua Peek
673f73b538
Add define another "stuff" controller to support routing tests
2009-10-10 21:30:50 -05:00
Joshua Peek
5d071b4bc2
Drop implementation specific routing test assertions
2009-10-10 21:30:50 -05:00
Joshua Peek
7bc5e3bd02
Add define a "stuff" controller in fixtures to support routing tests
2009-10-10 21:30:50 -05:00
Yehuda Katz
b9ce8216fa
Fix a bug where render :text could not handle yield :symbol. Fixes guides generation
2009-10-10 00:31:12 -10:00
Yehuda Katz
16a48a95e3
Fix issue with standalone ActionView
2009-10-09 00:55:00 -10:00
Yehuda Katz
2954cf1369
Avoid super in define_method for Rubinius
2009-10-09 00:54:12 -10:00
Yehuda Katz
ee37ff46e9
Get rid of constant name usage for stack trace help in favor of overriding #inspect and .name.
2009-10-09 00:53:48 -10:00
Carl Lerche
992c2db76c
Finish porting over the initializers to the app object and fix all the tests
2009-10-08 18:12:28 -07:00
Joshua Peek
3b6bdfc105
API change: content_tag_for outputs prefixed class name
2009-10-08 14:13:49 -05:00
Carl Lerche
665c7ad29d
Fix warning spew for 1.9
2009-10-08 10:58:04 -07:00
Michael Koziarski
c352ec060c
error procs have to be safe too
2009-10-08 12:13:48 +13:00