Jeremy Kemper
cb9429a259
Update memcache-client to 1.7.4 for cheaper timeouts
2009-06-11 22:34:23 -07:00
Joshua Peek
25fde77674
Vendor rack 1.0.x stable
2009-06-11 19:39:21 -05:00
Andrew Kaspick
d3d4822262
allow absolute paths for the asset caches
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2009-06-11 16:33:01 +12:00
Jeremy Kemper
7e1bcef985
Remove dead AbstractRequest autoload
2009-06-09 23:51:04 -07:00
Michael Koziarski
19c38a9b70
Whitelist the methods which are called by multiparameter attribute assignment.
...
This prevents users from causing NoMethodErrors and the like by editing the parameter names, and closes a potential exploit of CVE-2009-1904.
2009-06-10 12:11:18 +12:00
Matt Jones
f43404d42b
Fix incorrect specification path in GemDependency#from_directory_name
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2009-06-10 09:54:49 +12:00
Stephen Anderson
cd14a4a00e
Sanitized the id generated by text_area_tag helper method. text_area_tag('item[description]') should return: <textarea id="item_description" name="item[description]"></textarea> instead of: <textarea id="item[description]" name="item[description]"></textarea> The old id was causing HTML validation failures.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2009-06-09 20:36:37 +12:00
David Stevenson
898a8801ff
Made label target radio button tags with values. Radio button now respects inherited :index options when generating id.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2009-06-09 20:29:02 +12:00
Friedrich Göpel
72d111a21c
1.9 compatibility - don't pass an array as the from address as this ends up generating invalid SMTP commands.
2009-06-09 20:24:19 +12:00
Steven Luscher
d63fab344f
Fixes #2439 . ActionController::Integration::Session no longer mangles multiparameter attribute params when processing multipart requests.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2009-06-09 20:14:01 +12:00
Eugene Pimenov
c5c022c705
PostgreSQL adapter should call thread safe quote_string function
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2009-06-09 20:11:51 +12:00
Tom Ward
d97073337c
Change autoload declaration in ActionView::Helpers from JavascriptHelper to JavascriptHelper, matching the actual helper name. Also removed require from UrlHelper which was inadvertently preventing the autoload typo from causing a failure.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2009-06-09 20:08:23 +12:00
Michael Koziarski
b1a044b629
Revert "Ensure HasManyThroughAssociation#destroy delete orphan records"
...
This reverts commit 7a85927da2 .
There's still some debate about the intended behaviour in the ticket, leaving in master but removing prior to shipping 2.3.3
2009-06-09 20:03:36 +12:00
Matt Jones
2c3d2906b2
Fix several issues with the 2.3.2 gem loader.
...
Incorporates the following:
- migrates back small change to gems:build:force from bfc1609a50 to finish closing #2266 .
- unrolls to_proc calls in gems.rake, to match the change in master.
- fixes #2722 by passing the options hash to dependencies during build. (includes a test)
- fixes #2721 by loading the specification directly in from_directory_name. Adds an option to opt-out of specification loading when needed (in gems:refresh_specs, for instance). Includes tests.
- fixes #2679 by refreshing specs for all frozen gems rather than just gems loaded from the environment.
- fixes #2678 by passing the options hash to dependencies during unpack.
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2009-06-09 19:57:23 +12:00
nate
056ddbdcfb
A test to show that http_authentication needs to fail authentication if the password procedure returns nil. Also includes a fix to validate_digest_response to fail validation if the password procedure returns nil.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2009-06-09 19:47:16 +12:00
Pratik Naik
5fb66a3abb
Vendor Rack edge ( commit : 815342a8e15db564b766f209ffb1e340233f064f )
2009-06-08 23:47:36 -07:00
Jeremy Kemper
e70272e2a4
Clearer String#first and #last edge cases. Fix that 'foo'.first(0) == 'foo' instead of ''
2009-06-08 20:42:39 -07:00
Jeremy Kemper
63d0c33787
Fix AR json encoding
2009-06-08 20:42:39 -07:00
Jeremy Kemper
f9b2227649
Qualify constant references in BasicObjects
2009-06-08 20:42:39 -07:00
Jeremy Kemper
756e82d1b6
Prefer JSON.encode(value) to value.to_json
2009-06-08 20:42:39 -07:00
Jeremy Kemper
74f16a56e7
Simplify json decoder backend lazy load
2009-06-08 20:42:39 -07:00
Jeremy Kemper
f1e75e4378
Add #element and #collection to ModelName
2009-06-08 20:42:39 -07:00
Jeremy Kemper
cc5d313a48
Lazier Rakefile requires to avoid needing full rake gem on 1.9
2009-06-08 20:42:39 -07:00
Jeremy Kemper
91727ae5e4
Ruby 1.9: sqlite escape encoding
2009-06-08 20:42:31 -07:00
Jeremy Kemper
91fbdfd5b3
Failsafe doesn't return bare String body
2009-06-08 20:35:52 -07:00
Jeremy Kemper
05abd7c196
Check for to_str instead of String
2009-06-08 20:35:52 -07:00
Jeremy Kemper
aebd1ba5b4
Integration tests use Rack::Lint on 1.9 also
2009-06-08 20:35:51 -07:00
Jeremy Kemper
ec10f13939
Ruby 1.9: fix json encoding
2009-06-08 15:18:11 -07:00
Jeremy Kemper
01f820c3b2
Use to_json instead of rails_to_json
2009-06-08 14:09:16 -07:00
Jeremy Kemper
a69ee11968
JSON: split encoding and coercion
2009-06-08 01:37:28 -07:00
Jeremy Kemper
4a78dae2ab
Revert rails_to_json -> to_json so we don't break compatibility
...
[#2753 state:resolved]
2009-06-08 00:11:12 -07:00
Jeremy Kemper
4b4164e8a8
Don't rely on Rails.logger
2009-06-08 00:09:50 -07:00
Tim Connor
84a755b27e
Work around a gem dependency edge case that prevents Rails from booting..
...
If you have a frozen gem with unfrozen dependencies (for instance if the
dependency has native extensions so can't be frozen) you can have a
nightmare upgrade problem, where you cannot rake gems:install, because
rake is broken by a gem loading problem.
If you bump up your frozen gem to a newer version that requires a newer
dependency, everybody else on the team will have rake broken by that
dependency mismatch, since you will have had to specify the dependency
in your config.gems, otherwise nobody will have installed it, since the
parent is frozen. And now the config.gems loading code will kill rake.
[#2609 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2009-06-05 23:06:19 -07:00
Michael Koziarski
b600bf2cd7
name is case sensitive, update tests to reflect that
2009-06-01 14:21:08 +12:00
Han Kessels
4d7c597e84
fix for IE incompatibility of :disable_with in submit_tag
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2009-06-01 14:03:35 +12:00
Ian Terrell
a92790ab86
added a failing test case for counting has_many :through associations with scopes
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2009-06-01 13:54:56 +12:00
Michael Koziarski
34c3162c5c
Revert "Ensure calculations respect scoped :select". Broke .count on a has_many :through association.
...
This reverts commit 6543426c73 .
2009-06-01 13:54:20 +12:00
Joshua Peek
c73cf7d2c0
Revert "Only save the session if we're actually writing to it [ #2703 state:resolved]"
...
This reverts commit 14edaa104d .
2009-05-30 09:36:32 -05:00
Johan Sörensen
14edaa104d
Only save the session if we're actually writing to it [ #2703 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2009-05-28 09:32:16 -05:00
Johan Sörensen
dc94c09503
The FlashHash and friends causes a lot of needless session storing, when we know for a fact that there's no content in the flash. By not storing the empty hash in the session we save a lot of communication with the various session backends, while still keeping the same interface to the flash. [ #2703 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2009-05-28 09:22:35 -05:00
Hongli Lai (Phusion)
34a1ed0df8
Make the Failsafe middleware attempt to render 500.html during failsafe response rendering. Also make the default static failsafe response more friendly, in case 500.html rendering fails. [ #2715 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2009-05-27 14:59:11 -05:00
calavera
4196616778
ensure initialize_database_middleware doesn't use ActionController if action_controller framework is not enabled [ #2680 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2009-05-27 14:56:26 -05:00
Joshua Peek
b4c7b3e893
Ensure Memcache local cache returns duplicated values [ #2302 state:resolved]
2009-05-27 14:55:13 -05:00
Hongli Lai (Phusion)
9b2a665aff
activesupport/json/encoders fix that to_json should call rails_to_json, not just be an alias to the rails_to_json method defined in Object. Fixes #2690
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2009-05-25 15:28:14 +02:00
Eloy Duran
a70c78177a
Ensure the parent record is always saved when the child is invalid. [ #2249 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2009-05-20 21:19:30 +02:00
Bryan Helmkamp
542d6a0abd
Use duck typing to also allow MemCache-like object when initializing a MemCacheStore
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2009-05-19 16:58:20 -07:00
Jeremy Kemper
2a657725f1
Mark pending release in changelog instead of edge
2009-05-19 10:59:24 -07:00
Bryan Helmkamp
6339e5d360
Allow MemCacheStore to be initialized with a MemCache object instead of addresses and options
2009-05-19 10:58:30 -07:00
Jeremy Kemper
9fcadcbd68
Fix imprecise float comparison
2009-05-18 14:34:32 -07:00
Joe Van Dyk
ad85771221
Add ability to get multiple memcached keys at the same time (via MemCacheStore#read_multi).
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2009-05-18 13:44:45 -07:00