Commit Graph

47865 Commits

Author SHA1 Message Date
Rafael Mendonça França
5b7b98d590 document_root_element need to be public 2014-11-17 16:37:17 -02:00
Abdelkader Boudih
ed8dc23e8e Merge pull request #17647 from tgxworld/fix_typo
Fix typo. [ci skip]
2014-11-17 15:53:07 +00:00
Guo Xiang Tan
1966ecf668 Fix typo. 2014-11-17 23:45:58 +08:00
Sean Griffin
29b3e548f3 Improve the performance of quoting table names on PG
This caused a pretty major performance regression for 4.2, as this is a
hotspot for query construction. We're still slightly slower than 4.1,
but it's much less significant.
2014-11-17 07:11:13 -08:00
Sean Griffin
7da5d8a5dc Add StackProf to the test group for 2.1
Makes life easier for people profiling on master.
2014-11-17 06:39:32 -08:00
Sean Griffin
409e7e4fc5 Remove pointless private
This class no longer has any private methods
2014-11-17 05:59:29 -08:00
Sean Griffin
ed1c3bcb5d Merge pull request #17643 from SamSaffron/select_all_perf
PERF: optimise type lookup to avoid invoking procs
2014-11-17 05:56:09 -08:00
Rafael Mendonça França
94de3979dd Merge pull request #17640 from michaeljayt/spring-not-working-in-cygwin
Skip spring install in Cygwin due to fork() bad support.
2014-11-17 11:51:42 -02:00
Rafael Mendonça França
5495771938 Merge pull request #17642 from tgxworld/fix_template_assertion_on_assigns
Fix for assigns(:..) resetting template assertions
2014-11-17 11:50:09 -02:00
Rafael Mendonça França
8fd5592bee Merge pull request #17628 from bf4/update_unicode
Update to Unicode 7.0.0
2014-11-17 11:43:41 -02:00
Rafael Mendonça França
e37edf1c6c Merge pull request #17645 from georgemillo/master
Minor English fixes in docs [ci skip]
2014-11-17 11:35:25 -02:00
Godfrey Chan
c7727559e1 Meant to describe the concept, not the setting [ci skip] 2014-11-17 04:23:00 -08:00
Godfrey Chan
a6de6f508c Deprecate different default for log_level in production
This is a more conservative approach to 2602a49. Also changed the comment to be
more inline with everything else in the file (describing what the config value
is doing and why). People should just read the docs for alternatives.
2014-11-17 04:19:49 -08:00
Godfrey Chan
402cc9f46a Revert "Merge pull request #16622 from matthewd/default-debug"
This reverts commit 2602a49a8600ab52f807599bbd5b1f9c0be4214f, reversing
changes made to 5d7c1057684c377bc2801c8851e99ff11ab23530.

The explicit default was introduced in 21f6d72, so apps created with Rails < 4
have the commented out version, which means that this change would break those
apps.
2014-11-17 03:42:00 -08:00
George Millo
6f57e1240e Minor English fixes in docs [ci skip] 2014-11-17 15:31:39 +07:00
Sam
da99a2a298 PERF: optimise type lookup to avoid invoking procs 2014-11-17 14:55:17 +11:00
Calvin Correli
c3e8d15e8b Fix for assigns(:..) resetting template assertions
When calling assigns(:...) or cookies(:...), template assertions would be reset, which they obviously shouldn't be.
2014-11-17 09:49:07 +08:00
Guillermo Iguaran
3a804aab95 Merge pull request #17630 from gsamokovarov/exception-wrapper-source-extract
Rename #source_extract to #source_extracts in ExceptionWrapper
2014-11-16 14:27:12 -05:00
Guillermo Iguaran
7830bb0d9d Merge pull request #17639 from gsamokovarov/faster-exception-wrapper-traces
Don't double check trace origin in ExceptionWrapper#traces
2014-11-16 14:26:28 -05:00
Guillermo Iguaran
28dfc6a10b Merge pull request #17638 from gsamokovarov/focus-application-trace
Don't show full trace on routing errors
2014-11-16 14:25:30 -05:00
michaeljayt
2cfaa22d38 Skip spring install in Cygwin due to fork() bad support.
See also: https://www.cygwin.com/faq.html#faq.using.fixing-fork-failures
2014-11-17 02:42:29 +08:00
Genadi Samokovarov
ff1902789d Don't double check trace origin in ExceptionWrapper#traces
If a trace isn't an application one, then it comes from a framework.
That's the definition of framework trace. We can speed up the traces
generation if we don't double check that.
2014-11-16 20:20:14 +02:00
Genadi Samokovarov
2301d8cd26 Don't show full trace on routing errors
Since dbcbbcf2bc58e8971672b143d1c52c0244e33f26 the full trace is shown
by default on routing errors. While this is a nice feature to have, it
does take the attention off the routes table in this view and I think
this is what most of the people look for in this page.

Added an exception to the default trace switching rule to remove that
noise.
2014-11-16 19:19:48 +02:00
Zachary Scott
823336c2c8 Merge pull request #17637 from gregmolnar/docs
add Nokogiri to docs generation guides [ci skip]
2014-11-16 08:54:59 -08:00
Genadi Samokovarov
20ad04e5fc Rename #source_extract to #source_extracts in ExceptionWrapper
It returns multiple source extracts since 1ed264bc. Also cleaned its
result structure, as we no longer need the file in a code extract.
2014-11-16 18:39:45 +02:00
Greg Molnar
e950c3e47b add Nokogiri to docs generation guides 2014-11-16 16:38:08 +00:00
Zachary Scott
759054abfc Merge pull request #17635 from tgxworld/missing_space
[ci skip] Missing space in Active Job guide for referring to Action Mailer
2014-11-16 07:56:52 -08:00
Guillermo Iguaran
7ae7ae5b28 Merge pull request #17636 from gsamokovarov/exception-wrapper-less-nils
Don't let #{application,framework,full}_trace be nil
2014-11-16 10:41:35 -05:00
Guo Xiang Tan
b7c262b250 [CI SKIP] Missing space. 2014-11-16 23:22:33 +08:00
Genadi Samokovarov
e05714fdbc Don't let #{application,framework,full}_trace be nil
Those three can be nil when exception backtrace is nil. This happens and
that forced a couple of nil guards in the code. I'm proposing to make
those always return an array, even on nil backtrace.
2014-11-16 17:17:06 +02:00
Benjamin Fleischer
a25753b299 Update to Unicode 7.0.0
7.0.0 was released on June 16, 2014

http://unicode-inc.blogspot.com.ar/2014/10/unicode-version-70-complete-text-of.html

ruby bin/generate_tables
2014-11-15 03:40:43 -06:00
Abdelkader Boudih
4b4dca48a5 Merge pull request #17626 from y-yagi/queue_adapters_doc
[ci skip] add "Qu" to Backends Features list
2014-11-15 07:10:35 +00:00
yuuji.yaginuma
3e296e7a3a [ci skip] add "Qu" to Backends Features list 2014-11-15 13:48:52 +09:00
Sean Griffin
48f2620df9 Don't freeze the same hash we use for memoization 2014-11-14 14:30:40 -07:00
Sean Griffin
895a53e716 Allow LazyAttributeHash to be marshalled
`default_proc` makes a hash unmarshallable, and adds unneccessary
overhead. Since we control all access to the hash, let's just handle it
in that method. This has the side effect of improving performance on
initialization (but not neccessarily on access). We'll need to profile
further once the tests are passing.
2014-11-14 14:30:40 -07:00
Sean Griffin
3f63ac4e4d Correctly determine if an attribute is uninitialized
In real usage, we give the builder a types hash with a default value of
`Type::Value.new`. This means we need to explicitly check for the key,
rather than the truthiness of the type to determine if it's a known but
uninitialized attribute
2014-11-14 14:30:40 -07:00
Sean Griffin
0f29c21607 Reduce the amount of work performed when instantiating AR models
We don't know which attributes will or won't be used, and we don't want
to create massive bottlenecks at instantiation. Rather than doing *any*
iteration over types and values, we can lazily instantiate the object.

The lazy attribute hash should not fully implement hash, or subclass
hash at any point in the future. It is not meant to be a replacement,
but instead implement its own interface which happens to overlap.
2014-11-14 14:30:40 -07:00
Sean Griffin
70d1b5a7f8 Revert "Improve performance of AR object instantiation"
This reverts commit 8fee923888192a658d8823b31e77ed0683dfd665.

Conflicts:
	activerecord/lib/active_record/attribute_set/builder.rb

This solution sucks, and is hard to actually apply across the board.
Going to try other solutions
2014-11-14 14:30:39 -07:00
Rafael Mendonça França
114e9f2bdf Merge pull request #17623 from jonatack/patch-8
Simplify and fix grammar [ci skip]
2014-11-14 18:23:38 -02:00
Jon Atack
d987bdd7fa Simplify and fix grammar
[skip ci]
2014-11-14 21:22:10 +01:00
Sean Griffin
1c610eed94 Merge pull request #17620 from arunagw/aa-build-fix-isolated
Build fix when running in isolation
2014-11-14 08:07:42 -07:00
Sean Griffin
85b40edd94 Use DelegateClass instead of SimpleDelegator for type decorators
There is a significant performance difference between the two. Closes
2014-11-14 07:39:32 -07:00
Santiago Pastorino
ee74d9c969 Merge pull request #17614 from gsamokovarov/exception-wrapper-basic-tests
Add basic tests for ActionDispatch::ExceptionWrapper
2014-11-14 12:21:22 -02:00
Arun Agrawal
9ae210ba09 Build fix when running in isolation
`Computer` class needs to be require

See #17217 for more details
2014-11-14 10:24:11 +01:00
Zachary Scott
8ea604972d Merge pull request #17619 from tgxworld/fixes_to_testing_guide
[ci skip] Corrections to testing guide.
2014-11-14 01:08:18 -08:00
Guo Xiang Tan
f88a4d3900 [CI SKIP] Corrections to testing guide.
Partially revert c31e638a37.
2014-11-14 16:52:51 +08:00
Arun Agrawal
5865fba626 Merge pull request #17618 from sandipransing/testing-guide
[ci skip] Remove deprecated testing tasks
2014-11-14 08:17:37 +01:00
Sandip Ransing
5e3c5cef85 [ci skip] Remove deprecated testing tasks
This has changed recently and so rake test:all and rake
test:all:db are deprecated.
2014-11-14 11:51:06 +05:30
Aaron Patterson
aeb917d475 exec_prepared is GVL friendly, so lets use it.
also increase the version of pg required so that people will get the
GVL friendly version
2014-11-13 15:31:54 -08:00
Genadi Samokovarov
5007929826 Add basic tests for ActionDispatch::ExceptionWrapper 2014-11-13 23:34:27 +01:00