Jeremy Kemper
e5af56abfe
Add global gem task
2010-05-24 13:48:13 -07:00
Jeremy Kemper
9d3bd87045
Work around strange Ruby 1.9 autoload issue by using absolute load paths for tests
2010-05-24 12:16:33 -07:00
Santiago Pastorino
6b0616d1b8
translation method of TranslationHelper module returns a SafeBuffer Array backport
...
[#4675 state:committed]
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-24 20:56:44 +02:00
Santiago Pastorino
d3da1a2c66
Revert "translation method of TranslationHelper module returns always SafeBuffer [ #4194 status:resolved]"
...
This reverts commit 2310aef29b .
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-24 20:56:44 +02:00
wycats
8e6a044b2b
Needs to work on 1.8 too
2010-05-24 11:29:12 -07:00
wycats
50b7c0c104
Give the ERB String the encoding of the original template
2010-05-24 11:18:20 -07:00
Jeremy Kemper
c66013e2c5
Fix that captured content (e.g. with form_for or div_for) would be HTML-escaped even without the rails_xss plugin installed. Rails 2.3.7, we barely knew ya...
2010-05-24 09:12:00 -07:00
Lance Ivy
9e08e196fa
Ensure auto_link does not ignore multiple trailing punctuations
...
[#2504 state:resolved]
2010-05-24 11:47:36 +02:00
Mislav Marohnić
17b4fd25e4
avoid auto_linking already linked emails; more robust detection of linked URLs
...
References #1523 [#1862 state:resolved] [#3591 state:resolved]
Add test that shows how link text can contain HTML if needed:
the trick is using block form in combination with `raw`.
Let link text be automatically HTML-escaped
[#2017 state:resolved]
2010-05-24 11:18:20 +02:00
Mislav Marohnić
bd9ca9aed0
auto_link: support arbitrary URI schemes like "ftp:" and "file:"
...
recognizes all URI scheme allowed characters, such as colon and period.
[#3494 state:resolved]
2010-05-24 11:18:20 +02:00
Jeremy Kemper
f97da34b4f
Bump 2-3-stable to 2.3.8
2010-05-24 01:39:19 -07:00
Jeremy Kemper
326188c25e
2.3.7 release: fix rails_xss compatibility
v2.3.7
2010-05-24 00:04:41 -07:00
Jeremy Kemper
60e82a3ca2
Move tests for deprecated String#html_safe! to plugin
2010-05-23 22:07:47 -07:00
Jeremy Kemper
3ff921a65a
rails_xss handles deprecated String html safety, when installed
2010-05-23 21:30:43 -07:00
Santiago Pastorino
b10bf834b7
Make use of safe_concat on TextHelper concat
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-05-23 16:51:52 -07:00
Jeremy Kemper
86f0287993
Revert "Don't always mark the argument to #concat as HTML-safe."
...
This reverts commit e53791f8c0 .
2010-05-23 16:51:47 -07:00
Jeremy Kemper
ab2d7c8b5d
Use a non-XSS-protected output buffer for view tests
2010-05-23 16:21:44 -07:00
Jeremy Kemper
ca5f5d97b9
Fix test rendering unmarked but safe HTML
2010-05-23 15:28:40 -07:00
Nathan Weizenbaum
e3f14d12cd
Don't incompatibly monkeypatch ERB.
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-05-23 15:02:24 -07:00
Nathan Weizenbaum
e53791f8c0
Don't always mark the argument to #concat as HTML-safe.
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-05-23 15:00:14 -07:00
Nathan Weizenbaum
48fbe7b0d8
Mark all raw HTML being concatted as HTML-safe.
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-05-23 14:57:45 -07:00
Jeremy Kemper
55e88eeee4
Bump 2-3-stable to 2.3.7
2010-05-23 01:39:45 -07:00
Jeremy Kemper
56bb5504dd
2.3.6 release
v2.3.6
2010-05-22 23:53:40 -07:00
Jeremy Kemper
d8f0a58dcb
Remove miscommit from 57337cd
2010-05-22 23:46:03 -07:00
Aaron Patterson
a637b5f447
backporting beda2d43 for newer sqlite-ruby bindings
...
Signed-off-by: Xavier Noria <fxn@hashref.com >
2010-05-22 20:52:15 +02:00
Xavier Noria
25ec61330b
1.9 compat: deprecated last_(month|year) in favor of prev_(month|year)
2010-05-19 00:59:02 +02:00
Jeremy Kemper
9d99e610be
Revert "Don't carry default value when changing column for a binary type on MySQL"
...
Broke mysql tests.
This reverts commit ddadcc7cf8 .
Conflicts:
activerecord/test/cases/migration_test.rb
[#3234 state:open]
2010-05-18 11:03:59 -07:00
Étienne Barrié
99bcce7ec1
make add_index and remove_index more resilient; new rename_index method; track database limits
...
[#3452 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-05-18 10:51:36 -07:00
Ian White
a5696e36c6
Nested records (re: autosave) are now updated even when the intermediate parent record is unchanged [ #4242 ]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-18 16:10:44 +02:00
José Valim
94878c61a3
Deprecate legacy CGI options in SessionStores.
2010-05-18 03:25:57 +02:00
Xavier Noria
bb2327d9ab
method rename to fix a broken test
2010-05-18 00:31:41 +02:00
Rizwan Reza
32b0b5f7b2
Deprecate Array#rand in favor of Array#random_element [ #4555 stated:committed]
...
Signed-off-by: Xavier Noria <fxn@hashref.com >
2010-05-17 23:56:44 +02:00
José Valim
76608b13d2
superclass_delegating_accessor does not accept options.
2010-05-17 12:37:42 +02:00
Jeremy Kemper
cd3d30d569
CI: bump rack to 1.1
2010-05-16 13:35:42 -07:00
Rizwan Reza
74206aeff2
Rack dependency bumped to 1.1.0, tests passing. [ #3558 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-16 22:19:25 +02:00
Wijnand Wiersma
5b1f4c51ce
Postgresql doesn't allow to change a string type column to a binary type. Skip this test for postgresql for now.
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-16 15:15:16 +02:00
Jeff Kreeftmeijer
ec017e158a
Added assert_attribute_type to clean up GeneratedAttributeTest [ #2377 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-16 12:08:55 +02:00
Matthew Rudy Jacobs
5d979de1a9
when we run rake rails:freeze:edge update the value of the "REVISION" file rather than creating a new file "REVISION_ce706..." each time [ #1694 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-16 10:42:48 +02:00
Nobuhiro IMAI
e535b45c86
make fixture accessors private
...
prevent to be run fixture accessor (e.g. test_foos for TestFoo model) as a test case
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-16 10:35:23 +02:00
Neeraj Singh
3570f3e7f6
Fix broken integration test in 2.x [ #4565 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-16 10:32:53 +02:00
Jeff Kreeftmeijer
3568c5cee0
using :time_select when the attribute type is :time in the scaffold generator. [ #2377 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-16 10:32:15 +02:00
Elomar França
ddadcc7cf8
Don't carry default value when changing column for a binary type on MySQL [ #3234 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-16 10:30:47 +02:00
Lawrence Pit
0706bdce60
docs + test for each_error
...
[#3185 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-05-15 11:49:04 -07:00
Jeff Kreeftmeijer
5d7ad7ba41
make sure as is set before trying to build an #{as}_counter. [ #2804 state:resolved]
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-05-15 11:18:31 -07:00
Neeraj Singh
22b020db3e
db:drop:all throws error when database does not exist [ #2997 state:resolved]
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-05-15 10:33:52 -07:00
Jeff Kreeftmeijer
2de364636c
partial counters with :as [ #2804 state:resolved]
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-05-15 10:32:45 -07:00
Josh Kalderimis
8e7a64d090
backported AR correction to find_each and find_in_batches to raise when the user uses select but does not specify the primary key
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-15 09:51:58 +02:00
José Valim
6949d6f54f
Remove deprecated tests according to 8e679f1
2010-05-14 23:43:21 +02:00
Santiago Pastorino
c4ef7bb2a0
to_json and to_xml tests added to ActiveResource
...
[#4529 state:resolved]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-05-12 13:40:09 -07:00
Pratik Naik
7cbc546d39
Use superclass_delegating_accessor for connection handlers
2010-05-12 17:43:02 +01:00