Commit Graph

29745 Commits

Author SHA1 Message Date
Carlos Antonio da Silva
34599c4f57 Add test for default silence and stderr deprecation behaviors 2012-04-28 18:25:35 -03:00
twinturbo
9608395923 Document #behavior= and update CHANGELOG 2012-04-28 13:40:30 -03:00
Adam Hawkins
76cd1ca08d Add a "silence" behavior to completely turn off deprecation warnings. 2012-04-28 13:40:30 -03:00
José Valim
9fc9e89477 Use Rails::Queueing::Queue instead of Queue so people can build their own consumers around stdlib's Queue 2012-04-28 09:26:23 +02:00
José Valim
fc6b115b88 Merge pull request #6025 from carlosantoniodasilva/amo-errors-refactor
Refactor AMo::Errors
2012-04-28 00:17:18 -07:00
José Valim
d0e1c692b4 Merge pull request #6024 from carlosantoniodasilva/amo-dirty-refactor
Improve AMo::Dirty *_will_change! method
2012-04-28 00:15:44 -07:00
José Valim
dd5524a707 Merge pull request #6029 from aderyabin/fix_depr
removed deprecation warnings
2012-04-28 00:12:51 -07:00
Andrey Deryabin
3aec521c25 removed deprecation warnings 2012-04-28 10:55:11 +07:00
Santiago Pastorino
47a87fb0ec Merge pull request #6026 from sikachu/master-fix_warning
Add parentheses to hide Ruby warning
2012-04-27 19:03:04 -07:00
Prem Sichanugrist
6d8ec0bc93 Add parentheses to hide Ruby warning 2012-04-27 20:37:30 -04:00
Carlos Antonio da Silva
709b748f09 Refactor AMo::Errors
* Use merge!, remove reverse_merge
* Use case statement instead of is_a? checks
2012-04-27 21:04:13 -03:00
Carlos Antonio da Silva
9d1f6edbe0 Return earlier if attribute already changed in *_will_change! methods
Avoid obtaining the value and duplicating it when possible.
2012-04-27 20:44:09 -03:00
Aaron Patterson
3e8d88f7da Merge pull request #6023 from carlosantoniodasilva/fix-queue-test
Fix failing test related to TestQueue
2012-04-27 15:54:46 -07:00
Carlos Antonio da Silva
ff4eba9ce2 Fix failing test, TestQueue#contents is not #jobs 2012-04-27 19:51:40 -03:00
José Valim
d8c3ad73dd Merge pull request #6021 from sikachu/log_exception
Log the exception from the ThreadConsumer
2012-04-27 15:24:14 -07:00
Prem Sichanugrist
4531ba7493 Log the exception from the ThreadConsumer
This will make sure you know when there's an exception occur.
2012-04-27 18:22:25 -04:00
Aaron Patterson
3fc16a99da ensure that draining the queue will raise exceptions 2012-04-27 15:07:35 -07:00
Aaron Patterson
0c076c0057 adding the jobs method to the test queue for getting a list of test
jobs.
2012-04-27 14:58:04 -07:00
Aaron Patterson
90e90d61cb oops! 2012-04-27 14:27:47 -07:00
Aaron Patterson
2187b5f2f1 Extend stdlib queue for the test queue 2012-04-27 14:26:26 -07:00
Aaron Patterson
673fe05899 do not depend on time 2012-04-27 13:51:54 -07:00
Aaron Patterson
3ca7b137fb Merge pull request #6020 from 7even/test_queue_order
Rails::Queueing::TestQueue run order
2012-04-27 13:49:45 -07:00
Vsevolod Romashov
804db94471 clean up empty lines 2012-04-28 00:21:51 +04:00
Vsevolod Romashov
9d630d4368 fixes run order in Rails::Queueing::TestQueue 2012-04-28 00:15:51 +04:00
Vijay Dev
4dcaffb04c made a few changes and fixes in getting started guide [ci skip] 2012-04-28 01:37:52 +05:30
Vijay Dev
43af34c0f6 Merge branch 'master' of github.com:lifo/docrails 2012-04-28 00:56:17 +05:30
Vijay Dev
50b1399b31 update docs - disabling prepared statements is not connected to managing connections externally [ci skip] 2012-04-28 00:36:14 +05:30
Aaron Patterson
cd50b60431 add a factory method for queue construction so that apps can have multiple queues 2012-04-27 09:51:11 -07:00
Aaron Patterson
8de4d71f5d Merge pull request #5698 from dougcole/support_postgresql_partitioning
Support postgresql partitioning by making INSERT RETURNING optional
2012-04-27 08:50:07 -07:00
Jon Leighton
3981a687f9 remove deprecated calls 2012-04-27 14:28:36 +01:00
José Valim
0a8aec2c97 Revert "Merge pull request #5995 from kennyj/fix_5847-3"
Active Record should be lazy loaded and this pull request
forced Active Record to always be loaded after initialization.

This reverts commit 8cd14c0bc9f9429f03d1181912355d2f48b98157, reversing
changes made to 2f0c8c52e66f1a2a3d1c00efc207f227124e96c2.
2012-04-27 15:00:56 +02:00
Jon Leighton
a6e47b2811 Merge pull request #5989 from arunagw/warning_removed_master_ap
Shadowing variable warning removed
2012-04-27 05:58:26 -07:00
Oscar Del Ben
fc3d15dcb0 Merge branch 'master' of github.com:lifo/docrails 2012-04-27 14:21:16 +02:00
Oscar Del Ben
f4447607f2 Add delete post section to Getting Started guide 2012-04-27 14:21:02 +02:00
Jon Leighton
20ea8df6b5 more deprecations manually fixed 2012-04-27 13:11:13 +01:00
Jon Leighton
0ed05b0e73 find and replace deprecated keys 2012-04-27 12:37:21 +01:00
Jon Leighton
61555a0df1 allow AssociationProxy#scoped to take options so that API is the same as Base#scoped 2012-04-27 11:52:34 +01:00
Jon Leighton
df6f971e3a %s/find(:\(first\|last\|all\), \([^()]*\))/scoped(\2).\1/gcI amongst other things 2012-04-27 11:42:50 +01:00
Jon Leighton
a57b7842d0 remove unnecessary test code 2012-04-27 10:30:52 +01:00
Jon Leighton
4ed6167e98 Merge branch 'master' of github.com:rails/rails 2012-04-27 10:30:03 +01:00
Bernat Foj Capell
39574aa582 find_by_sql actually triggers after_find 2012-04-27 11:13:48 +02:00
Jon Leighton
7d1a42a0b1 Merge pull request #6011 from aderyabin/nosqlite
Remove old sqlite adapter
2012-04-27 02:10:14 -07:00
Mark Rushakoff
ff44c3352d Fix it's -> its 2012-04-27 00:25:22 -07:00
Mark Rushakof
8cc4159018 Use <tt>Foo::Bar</tt> instead of +Foo::Bar+
The latter doesn't render as code in HTML output.

Regex used in Rubymine to locate the latter form:

    (\+)(:*\w+:(?::|\w)+)(\+)
2012-04-27 00:00:30 -07:00
Andrey Deryabin
d42b60a411 fix tests for SQLite3Adapter 2012-04-27 13:31:37 +07:00
Andrey Deryabin
dd05a49a4a renamed class SQLiteColumn to SQLite3Column 2012-04-27 13:29:58 +07:00
Andrey Deryabin
3cc9b5f196 removed tail of old sqlite versions 2012-04-27 13:23:39 +07:00
Andrey Deryabin
1a3d4f75ce fix SQLite3Adapter doc 2012-04-27 13:19:44 +07:00
Andrey Deryabin
fc1bf36a3a Upgrade sqlite3 version to 1.3.6 2012-04-27 13:14:22 +07:00
Andrey Deryabin
27dea760f8 fix tests for sqlite3 2012-04-27 13:09:12 +07:00