Commit Graph

30776 Commits

Author SHA1 Message Date
Alexey Vakhov
d83411134b Update examples of Array #in_groups and #in_groups_of
Examples should be not square to visually underline a difference between
Array#in_groups and Array#in_groups_of.
2012-05-25 16:47:00 +04:00
Alexey Vakhov
05ae220d2e Fix ActiveSupport Cache decrement method description 2012-05-25 10:23:44 +04:00
Oscar Del Ben
0b11840d1b [Guides] Update rack example 2012-05-24 08:53:03 -07:00
Oscar Del Ben
2ccc2109b7 [Guides] Add core_ext/object section 2012-05-24 08:53:03 -07:00
Oscar Del Ben
cd6aa9f095 [Guides] Rewrite Rails application section 2012-05-24 08:53:03 -07:00
Oscar Del Ben
27874a8e43 [Guides] Add extract_options section 2012-05-24 08:53:03 -07:00
Oscar Del Ben
f819b90a13 [Guides] Update ruby version check 2012-05-24 08:53:03 -07:00
Oscar Del Ben
f2c60c7941 [Guides] Add sprockets to list of loaded frameworks 2012-05-24 08:53:02 -07:00
Rory O’Kane
f1c2727d2a capitalize HTML5 in Getting Started Guide
these pages capitalize “HTML5”:

http://en.wikipedia.org/wiki/HTML5
http://dev.w3.org/html5/spec/
http://www.html5rocks.com/en/
2012-05-24 11:39:55 -04:00
Rory O’Kane
aa54d29f9b grammar fixes in a tip in Rails routing guide 2012-05-24 11:39:31 -03:00
Mikhail Dieterle
03fa7085a9 typos 2012-05-24 00:41:13 +03:00
Vijay Dev
91305adef8 Merge branch 'master' of github.com:lifo/docrails 2012-05-23 23:26:39 +05:30
Vijay Dev
9ae0c66787 Merge pull request #6383 from oscardelben/add_oscardelben_to_authors
Add oscardelben to authors
2012-05-23 10:49:06 -07:00
Vijay Dev
030e04f2a1 Merge pull request #6194 from ayrton/optimized_images
Optimizing all images used in the guides
2012-05-23 10:45:57 -07:00
Vijay Dev
1c94868033 copy edits in collection proxy docs [ci skip] 2012-05-23 23:12:35 +05:30
José Valim
92fd2120cd Merge pull request #6462 from grosser/feature/licenses
Add license field to gemspecs, by Matt Griffin
2012-05-23 10:24:50 -07:00
Vijay Dev
d31b765628 Revert "Remove Obsolute root specifiying short syntax"
This reverts commit feaa7b35a0214240eb34780ab51b843571e74904.

Reason: Incorrect change. That's a Rails 4 feature and will not
obviously work in 3.2.3.

[ci skip]
2012-05-23 22:50:21 +05:30
Vijay Dev
1ad0b378cc Revert "Remove blank trailing comments"
This reverts commit fa6d921e11363e9b8c4bc10f7aed0b9faffdc33a.

Reason: Not a fan of such massive changes. We usually close such changes
if made to Rails master as a pull request. Following the same principle
here and reverting.

[ci skip]
2012-05-23 22:43:08 +05:30
Vijay Dev
2642c2961c copy edit[ci skip] 2012-05-23 22:42:49 +05:30
Aaron Patterson
43893f3742 Merge pull request #6463 from jrochkind/connection_pool_timeout_keys
ConnectionPool wait_timeout no longer used for different types of timeouts. #6441
2012-05-23 09:39:09 -07:00
Matt Griffin
6c7b250ac0 Add license field to gemspecs, by Matt Griffin 2012-05-23 09:22:25 -07:00
Carlos Antonio da Silva
541429fbe4 Merge pull request #6060 from lucashungaro/master
Adding deep versions of stringify_keys and symbolize_keys (plain and bang) for nested hashes
2012-05-23 09:19:56 -07:00
Jonathan Rochkind
cb6f839359 ConnectionPool wait_timeout no longer used for different types of timeouts. #6441
An AR ConnectionSpec `wait_timeout` is pre-patch used for three
different things:

* mysql2 uses it for MySQL's own wait_timeout (how long MySQL
  should allow an idle connection before closing it), and
  defaults to 2592000 seconds.
* ConnectionPool uses it for "number of seconds to block and
  wait for a connection before giving up and raising a timeout error",
  default 5 seconds.
* ConnectionPool uses it for the Reaper, for deciding if a 'dead'
  connection can be reaped. Default 5 seconds.

Previously, if you want to change these from defaults, you need
to change them all together. This is problematic _especially_
for the mysql2/ConnectionPool conflict, you will generally _not_
want them to be the same, as evidenced by their wildly different
defaults. This has caused real problems for people #6441 #2894

But as long as we're changing this, forcing renaming the
ConnectionPool key to be more specific, it made sense
to seperate the two ConnectionPool uses too -- these two
types of ConnectionPool timeouts ought to be able to be
changed independently, you won't neccesarily want them
to be the same, even though the defaults are (currently)
the same.
2012-05-23 12:08:11 -04:00
Oscar Del Ben
07f73219c0 [Guides] Fix sample code 2012-05-23 09:01:21 -07:00
Oscar Del Ben
13612ae501 [Guides] Rewrite server start section 2012-05-23 08:53:08 -07:00
Oscar Del Ben
05a4d8b859 [Guides] Rewrite server start section 2012-05-23 08:45:48 -07:00
Lucas Húngaro
a4bb195c91 Adding deep versions of stringify_keys and symbolize_keys (plain and bang) for nested hashes 2012-05-23 11:56:10 -03:00
Rafael Mendonça França
c1487f6190 Merge pull request #6259 from markmcspadden/hash_transform_keys
Add Hash#transform_keys and Hash#transform_keys!
2012-05-23 07:27:21 -07:00
Mark McSpadden
6ff887321b Add Hash#transform_keys and Hash#transform_keys! and refactor *_keys methods to use them. 2012-05-23 09:08:04 -05:00
Carlos Antonio da Silva
a6d0e37957 Merge pull request #6446 from acapilleri/mini_xml_4
Change xml type datetime to dateTime
2012-05-23 05:52:44 -07:00
Angelo capilleri
5646d65d01 changed xml type datetime to dateTime, fixes #6328
XmlMini define the xml 'datatime', but according to
http://www.w3.org/TR/xmlschema-2/#dateTime could be better
change this to 'dateTime' with upper case letter 'T.
So 'DateTime' and 'Time' are redefined from 'datetime' to 'dateTime'

add the changing to the changelog
2012-05-23 14:45:56 +02:00
Carlos Antonio da Silva
90d8c8a2be Merge pull request #6455 from ugisozols/master
Remove unnecessary comment.
2012-05-23 05:39:31 -07:00
Uģis Ozols
bd9953f11e Remove unnecessary comment. 2012-05-23 11:45:08 +03:00
José Valim
cb92efbf04 Merge pull request #6453 from parndt/session_keys
Added session.keys and session.values back to ActionDispatch::Request::Session
2012-05-22 22:49:14 -07:00
David Morton
2227064b2a Fix incorrect example for fields_for - without the '=' it will not output anything. 2012-05-22 22:00:31 -05:00
Philip Arndt
6ac458d341 Added ActionDispatch::Request::Session#keys and ActionDispatch::Request::Session#values 2012-05-23 14:47:30 +12:00
Rafael Mendonça França
41cfe17658 Merge pull request #6452 from carlosgaldino/refactor-date-helpers
Refactor date related input helpers
2012-05-22 19:43:58 -07:00
Carlos Galdino
30847b499b Add tests for time_field and date_field helpers
These tests check the values of 'min' and 'max' input attrs
2012-05-22 23:33:07 -03:00
Carlos Galdino
a9a9e8a3cb Refactor date related helpers 2012-05-22 23:32:29 -03:00
Aaron Patterson
d7de7a79c5 I guess we have to return a pathname object. o_O 2012-05-22 19:21:56 -07:00
Aaron Patterson
3f870f607d use File.realpath and avoid making Pathname objects 2012-05-22 17:22:06 -07:00
Aaron Patterson
1ca1b1ab91 use RUBY_PLATFORM in case of cross compiled ruby 2012-05-22 16:52:39 -07:00
Aaron Patterson
580333fdc2 initialize instance variables 2012-05-22 16:52:39 -07:00
Aaron Patterson
8662722f4f initialize our instance variables 2012-05-22 16:52:39 -07:00
Jeremy Kemper
65d2a60a8c Merge pull request #6359 from carlosgaldino/add-html5-inputs
Add HTML5 color and date/time inputs
2012-05-22 16:17:40 -07:00
Rafael Mendonça França
5089d65f43 Merge pull request #6433 from parndt/fix_typo
Fixed typo new_defautls -> new_defaults.
2012-05-22 16:06:15 -07:00
Philip Arndt
40c0b3a25d Fixed typo new_defautls -> new_defaults.
* Added tests for 'else' case in ActionView::Helpers::TranslationHelper#wrap_translate_defaults
* Also updated the testing syntax of translation.html_safe? asserts to provide better output upon failure.
2012-05-23 11:04:15 +12:00
Rory O’Kane
f09c84ca26 clarified how file naming affects load order of initializers 2012-05-22 15:50:19 -03:00
Rafael Mendonça França
7c69e2db36 Revert "Merge pull request #6416 from pmahoney/threadsafe-connection-pool"
This reverts commit d2901f0fc4270a765717ad572d559dc49a56b3a8, reversing
changes made to 525839fdd8cc34d6d524f204528d5b6f36fe410c.

Conflicts:
	activerecord/test/cases/connection_pool_test.rb

Reason: This change broke the build (http://travis-ci.org/#!/rails/rails/builds/1391490)
and we don't have any solution until now. I asked the author to try to
fix it and open a new pull request.
2012-05-22 15:01:36 -03:00
Francesco Rodriguez
eb2c0a4f71 add CollectionProxy#length documentation 2012-05-22 12:34:12 -05:00