Commit Graph

27158 Commits

Author SHA1 Message Date
José Valim
6f44fa0a8a Merge pull request #4251 from castlerock/rename_ruby_debug_to_ruby_debug19
rename ruby-debug to ruby-debug19
2012-01-01 10:35:28 -08:00
Vijay Dev
881ca628b0 fix a warning about grouped expressions 2012-01-01 23:01:28 +05:30
Vishnu Atrai
423dd88d62 rename ruby-debug to ruby-debug19 2012-01-01 22:40:23 +05:30
Vijay Dev
f3e079e8b5 Merge pull request #4248 from andrew/2012
Updated copyright notices for 2012
2011-12-31 12:48:19 -08:00
Andrew Nesbitt
1b413510fe Updated copyright notices for 2012 2011-12-31 20:30:08 +00:00
Vijay Dev
b5927b8237 DRY up guides index page
Use the list of guides available in documents.yaml to fill in the
menu in the index page instead of duplicating the list again. Also,
remove WIP guides from the menu.
2011-12-31 22:59:16 +05:30
Santiago Pastorino
d3a2c0e183 Merge pull request #4242 from castlerock/remove_condition_for_MiniTest
MiniTest condition removed
2011-12-31 09:13:40 -08:00
Vijay Dev
86705b60a3 Merge branch 'master' of github.com:lifo/docrails 2011-12-31 19:08:46 +05:30
Vijay Dev
cc843abb50 remove wiki link 2011-12-31 15:18:01 +05:30
Vijay Dev
b6aa300e70 fix a couple of formatting issues 2011-12-31 15:17:53 +05:30
Xavier Noria
80be90f3de removes comment obsoleted by 18ed37b 2011-12-31 10:37:01 +01:00
Vishnu Atrai
c20a74da4f MiniTest condition removed 2011-12-31 13:52:37 +05:30
José Valim
226528dfcc Merge pull request #4241 from castlerock/remove_more_conditions_for_Fiber_ruby19
remove more conditions for Fiber in ruby19
2011-12-30 22:55:43 -08:00
Aaron Patterson
ed17983ec5 Merge pull request #4237 from castlerock/fiber_available_in_ruby19
fiber is available in ruby19 condition removed
2011-12-30 16:49:20 -08:00
Aaron Patterson
641b43e865 updating the reaping frequency documentation 2011-12-30 16:14:25 -08:00
Aaron Patterson
59f2696d00 rename start to run and use Thread.pass rather than sleeping to schedule the watchdog 2011-12-30 16:10:53 -08:00
Aaron Patterson
405aeb5da4 connection pool starts the reaper 2011-12-30 15:39:39 -08:00
Aaron Patterson
3af68df080 just dup the spec now that it will deep copy 2011-12-30 15:36:48 -08:00
Aaron Patterson
ddde548816 connection specification will deep copy the config 2011-12-30 15:35:21 -08:00
Aaron Patterson
41c24eb3e3 each connection pool has a reaper 2011-12-30 15:27:41 -08:00
Aaron Patterson
cde7692d4e introduce a timer class for reaping connections 2011-12-30 15:19:07 -08:00
Aaron Patterson
cceabe03a8 raise a pull full error when the connection pool is full and no connection can be obtained 2011-12-30 14:56:26 -08:00
Aaron Patterson
b1ac881433 connections are only removed if they are inactve 2011-12-30 14:31:30 -08:00
Aaron Patterson
86729eb733 connections can be reaped via the reap method 2011-12-30 14:26:29 -08:00
Sam Umbach
c3224db6ae Minor readability improvements 2011-12-30 17:23:19 -05:00
Sam Umbach
8daa9f5da9 SCSS processor is provided by the sass gem 2011-12-30 17:23:19 -05:00
Aaron Patterson
e060cf01a5 deal with removing connections associated with the current thread 2011-12-30 14:14:13 -08:00
Aaron Patterson
17ff88c4d4 connections can be removed from the pool 2011-12-30 14:09:39 -08:00
Aaron Patterson
bf9e6c7c9b queue and signal no longer needed 2011-12-30 13:49:31 -08:00
Aaron Patterson
5dc7257b7a refactor checking out the connection 2011-12-30 13:47:10 -08:00
Vishnu Atrai
8fbb44787e remove more conditions for Fiber available in ruby19 2011-12-31 01:22:40 +05:30
Aaron Patterson
df9de6fc6c infinite loop is no longer necessary 2011-12-30 11:45:34 -08:00
Vishnu Atrai
18ed37b925 fiber is available in ruby19 2011-12-31 01:12:53 +05:30
Aaron Patterson
6769293988 connections must be checked in at the end of a thread 2011-12-30 11:37:21 -08:00
José Valim
7c55d6977c Merge pull request #4235 from castlerock/remove_ruby_18_BasicObject
ruby 1.8 ActiveSupport BasicObject no longer available
2011-12-30 10:59:14 -08:00
José Valim
50f1743286 Merge pull request #4236 from castlerock/to_time_available_in_ruby19_DateTime
remove condition since to_time always available in ruby19 DateTime
2011-12-30 10:58:35 -08:00
Vishnu Atrai
7249f94e6c remove condition since to_time always available in ruby19 DateTime 2011-12-31 00:15:21 +05:30
Vishnu Atrai
e734f001d3 ruby 1.8 ActiveSupport BasicObject no longer available 2011-12-30 23:45:57 +05:30
Aaron Patterson
5681f79f64 be explicit about where helpers are installed 2011-12-30 10:02:49 -08:00
Aaron Patterson
116b9edf95 Merge pull request #4224 from alexeymuranov/my-fix-for-fixture-tables
Fix #2572 and define fixture table name in the associated model
2011-12-30 10:02:19 -08:00
José Valim
4b99732552 Merge pull request #4233 from bogdan/remove_define_runner
AS::Callbacks: remove __define_runner
2011-12-30 04:43:45 -08:00
Xavier Noria
9fa59ca208 adds a comments that clarifies why Range#include? chooses the comparison operator 2011-12-30 02:18:07 -08:00
Xavier Noria
edfe7d8013 Merge pull request #4229 from lest/range-include
refactor Range#include? to handle ranges with floats
2011-12-30 02:13:37 -08:00
Alejandro Andrés
ec2cf2499a Fixed documentation error in code examples from form_tag_helper.rb 2011-12-30 11:00:04 +01:00
Alexey Muranov
b52d9d0ff5 Fixes for TestFixtures::setup_fixture_accessors
Renamed "fixture_name" to "accessor_name" and made fixture names in the form "admin/users" be used as the key for the hashes @fixture_cache and @loaded_fixtures.

Previously the variable "fixture_name" here was getting a value of the form "admin_user", and this value was then used as the hash key.
2011-12-30 10:34:02 +01:00
Alexey Muranov
7162ea2a0c Fixture's table name be defined in the model
Made the fixture's table name be taken from its model class whenever this class responds to table_name, instead of inferring it sometimes from the fixture's pass.

The previous behavior seemed buggy because it depended on whether the model class was passed as a constant or as a name string.

Improved Fixtures#initialize.
2011-12-30 10:34:02 +01:00
Alexey Muranov
d3e6e7e484 Test case: fixture table name is defined in model 2011-12-30 10:34:02 +01:00
Alexey Muranov
e0ef093619 Use foo/bar instead of foo_bar keys for fixtures
This solves an issue with set_fixture_class class method caused by create_fixtures method's overwriting passed to it fixture model classes, when the fixtures are "namespased": foo/bar or admin/users.

The idea is to use "foo/bar" string as the name and identifier of a
fixture file bar in directory foo.  The model class of the fixture is either set with set_fixture_class method, or otherwise inferred from its name using camelize method.

Also a bug is fixed in lines 487-489 when the table names were guessed by substitution from the fixture file names, ambiguously called  table_names, instead of being taken from fixture attributes.  Now they are taken from attributes.

I plan to submit another fix so that the fixture's table name (for
example foo_bar) be defined by the fixture's model whenever possible,
instead of inferring it from the fixture's name ("foo/bar").
2011-12-30 10:34:01 +01:00
Alexey Muranov
6468ff4197 Test fixtures with custom model and table names
Test using fixtures with random names and model names, that is not following naming conventions but using set_fixture_class instead.

It is expected that the table name be defined in the model, but this is not explicitly tested here.  This will need to be fixed.
2011-12-30 10:34:01 +01:00
Bogdan Gusiev
2a78886a1d AS::Callbacks: remove __define_runner 2011-12-30 10:53:46 +02:00