aboutsummaryrefslogtreecommitdiffstats
path: root/guides
Commit message (Collapse)AuthorAgeFilesLines
* Rails 6 requires Ruby 2.3+Jeremy Daer2018-02-173-2/+3
|
* Merge descriptions related to parallel test into one section [ci skip]yuuji.yaginuma2018-02-171-2/+2
|
* Merge pull request #32015 from ↵Eileen M. Uchitelle2018-02-161-0/+24
|\ | | | | | | | | JPrevost/activestorage_integration_test_cleanup_docs ActiveStorage file cleanup in Integration Tests
| * ActiveStorage file cleanup in Integration TestsJeremy Prevost2018-02-151-0/+24
| | | | | | | | | | Documents ActiveStorage file cleanup in Integration Tests which is similar but slightly different than the existing docs for System Tests.
* | Add test parallelization to Railseileencodes2018-02-151-0/+83
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Provides both a forked process and threaded parallelization options. To use add `parallelize` to your test suite. Takes a `workers` argument that controls how many times the process is forked. For each process a new database will be created suffixed with the worker number; test-database-0 and test-database-1 respectively. If `ENV["PARALLEL_WORKERS"]` is set the workers argument will be ignored and the environment variable will be used instead. This is useful for CI environments, or other environments where you may need more workers than you do for local testing. If the number of workers is set to `1` or fewer, the tests will not be parallelized. The default parallelization method is to fork processes. If you'd like to use threads instead you can pass `with: :threads` to the `parallelize` method. Note the threaded parallelization does not create multiple database and will not work with system tests at this time. parallelize(workers: 2, with: :threads) The threaded parallelization uses Minitest's parallel exector directly. The processes paralleliztion uses a Ruby Drb server. For parallelization via threads a setup hook and cleanup hook are provided. ``` class ActiveSupport::TestCase parallelize_setup do |worker| # setup databases end parallelize_teardown do |worker| # cleanup database end parallelize(workers: 2) end ``` [Eileen M. Uchitelle, Aaron Patterson]
* Missing backquote, extra end keyword [ci skip]Yauheni Dakuka2018-02-151-18/+17
|
* Simplify the implementation of custom argument serializersRafael Mendonça França2018-02-141-6/+0
| | | | | | | | | | | | | We can speed up things for the supported types by keeping the code in the way it was. We can also avoid to loop trough all serializers in the deserialization by trying to access the class already in the Hash. We could also speed up the custom serialization if we define the class that is going to be serialized when registering the serializers, but that will remove the possibility of defining a serialzer for a superclass and have the subclass serialized using it.
* Improve documentation on custom serializersRafael Mendonça França2018-02-141-22/+21
|
* Add configuration to set custom serializersRafael Mendonça França2018-02-141-0/+2
|
* Remove non-default serializersEvgenii Pecherkin2018-02-141-4/+0
|
* Introduce serializers to ActiveJobEvgenii Pecherkin2018-02-141-2/+63
|
* Change structure of AS core extensions [ci skip]Yauheni Dakuka2018-02-121-9/+9
|
* Merge pull request #31953 from jameslovejoy/improve-wording-getting-startedEileen M. Uchitelle2018-02-121-13/+13
|\ | | | | Improve wording in getting started guide
| * Improve wording in getting started guideJames Lovejoy2018-02-091-13/+13
| | | | | | | | [ci skip]
* | Remove parentheses [ci skip]Yauheni Dakuka2018-02-121-1/+1
|/
* Merge pull request #31925 from composerinteralia/semicolonEileen M. Uchitelle2018-02-081-12/+0
|\ | | | | Fix grammar bug in security guide [ci skip]
| * Remove password anecdotes from guides [ci skip]Daniel Colson2018-02-071-12/+0
| |
* | Add docs on how to configure Active Storageclaudiob2018-02-081-0/+35
|/ | | | [ci skip]
* Merge pull request #31240 from PHedkvist/sys_test_mobile_guideEileen M. Uchitelle2018-02-061-0/+28
|\ | | | | Example of multiple configurations for system test in guide [ci skip]
| * Example of mobile configuration for system test in guide [ci skip]Pierre Hedkvist2017-12-041-0/+28
| |
* | Correct capitalization of "Rails" in the guide text.Tim Diggins2018-02-031-6/+6
| | | | | | | | correction to #31755 as per https://github.com/rails/rails/pull/31755#discussion_r165819798
* | Fix typoSam Yamashita2018-01-311-1/+1
| |
* | Start Rails 6.0 development!!!Rafael Mendonça França2018-01-301-8/+1
| | | | | | | | :tada::tada::tada:
* | Add Rack::TempfileReaper to tests and docsGeorge Claghorn2018-01-301-0/+5
| |
* | Add ContentSecurityPolicy to list of middlewareclaudiob2018-01-301-0/+4
| | | | | | | | | | Document in the guides the new middleware added in #31162 [ci skip]
* | Merge pull request #31817 from composerinteralia/mediocre-jokeRichard Schneeman2018-01-281-1/+1
|\ \ | | | | | | Remove joke in security guide [ci skip]
| * | Remove joke in security guide [ci skip]Daniel Colson2018-01-281-1/+1
| | | | | | | | | | | | | | | | | | I think this is a joke, although not a great one. It's mildly unprofessional, so I think we should get rid of it.
* | | Merge pull request #31816 from composerinteralia/jquery-referencesRyuta Kamizono2018-01-291-11/+6
|\ \ \ | | | | | | | | Remove out-of-date references to jQuery [ci skip]
| * | | Remove out-of-date references to jQueryDaniel Colson2018-01-281-11/+6
| |/ / | | | | | | | | | Fixes #31703
* | | Update `action_dispatch.default_headers` default value [ci skip]yuuji.yaginuma2018-01-282-2/+8
| | | | | | | | | | | | This was changed with 5d7b70f and 428939b.
* | | Update `google-cloud-storage` gem version [ci skip]yuuji.yaginuma2018-01-281-1/+1
|/ / | | | | | | | | | | | | Because we use `credentials` in an example of configuration files, but `credentials` can not be used unless it is 1.8.0 or later. Ref: 9d65ac3
* | Fix example migrations in Associations guideRyan Lue2018-01-261-17/+9
| |
* | Merge pull request #31755 from timdiggins/adjust-autoloading-in-guidesRafael França2018-01-252-12/+31
|\ \ | | | | | | Clarify autoload_paths and eager_load in guides per current usage.
| * | Clarify autoload_paths and eager_load in guides per current usage. [CI SKIP]Tim Diggins2018-01-212-12/+31
| | |
* | | tweaks for #31704 [ci skip]Ryuta Kamizono2018-01-241-2/+2
| | | | | | | | | | | | | | | * rDBMS -> RDBMS. There is only place using rDBMS. * a SQL -> an SQL
* | | Clarification for noobs. (#31704)loothunter12018-01-232-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update active_record_basics.md I made a bit of clarification for people, who are not familiar with SQL (pretty much like me). However, I don't know what tutorial for MySQL is better, so I haven't inserted a link yet. * [ci skip] For those who new to GitHub Added more instructions for contributing guides. Without them, it was somewhat confusing for me to find what I should actually do. * Update active_record_basics.md Fixed grammar and text wrapping as requested. * Update contributing_to_ruby_on_rails.md Revised instructions. * Update contributing_to_ruby_on_rails.md Typos * Update active_record_basics.md * [ci skip] Update active_record_basics Added a few links to SQL tutorials found on the net. Also, changed MySQL to SQL (or one of its extensions) - I think that it's a good compromise. * [ci skip] I think now it's more clear what to do. * [ci skip] Fixed strings [Rafael Mendonça França + loothunter1]
* | | remove text repetitionutilum2018-01-221-1/+1
| | | | | | | | | | | | [ci skip]
* | | Update guide text not to contradict imageutilum2018-01-221-2/+1
|/ / | | | | | | | | | | | | The bottom line in the image of `ActionController::UnknownFormat`is not truncated. Now the text does not say it is. [ci skip]
* | Fix minor typo [ci skip]Tom Copeland2018-01-181-4/+4
| | | | | | | | Updated the method counts and unified them all on numerals.
* | Merge pull request #31577 from prathamesh-sonpatki/upgrade-guide-bootsnapEileen M. Uchitelle2018-01-181-0/+11
|\ \ | | | | | | Added a note about bootsnap in the Rails 5.2 upgrade guide [ci skip]
| * | Added a note about bootsnap in the Rails 5.2 upgrade guide [ci skip]Prathamesh Sonpatki2017-12-271-0/+11
| | |
* | | Allow `false` for `config.generators.system_tests=`bogdanvlviv2018-01-181-0/+1
| | | | | | | | | | | | | | | Mention `config.generators.system_tests` in the "Configuring Rails Applications" guide.
* | | Update "Layouts and Rendering in Rails" guide [ci skip]bogdanvlviv2018-01-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | - Remove mention about `ActionView::TemplateHandlers` since this module was removed by c1304098cca8a9247a9ad1461a1a343354650843. Change word `subclasses` to `nested classes`. See c7408a0e40545558872efb4129fe4bf097c9ce2f - Remove useless sentence "Beginning with Rails 2, the standard extensions are `.erb` for ERB (HTML with embedded Ruby), and `.builder` for Builder (XML generator)."
* | | Provide a sensible default hostGeorge Claghorn2018-01-161-3/+9
| | |
* | | Extract content types from blob dataGeorge Claghorn2018-01-151-0/+3
| | |
* | | Merge pull request #31651 from eugeneius/use_sha1_digestsSean Griffin2018-01-122-3/+5
|\ \ \ | | | | | | | | Use SHA-1 for non-sensitive digests by default
| * | | Use SHA-1 for non-sensitive digests by defaultEugene Kenny2018-01-082-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | Instead of providing a configuration option to set the hash function, switch to SHA-1 for new apps and allow upgrading apps to opt in later via `new_framework_defaults_5_2.rb`.
* | | | Fix doc typo [ci-skip]Tom Copeland2018-01-121-1/+1
| | | |
* | | | Fix some broken links in guidesDorian Marié2018-01-114-9/+9
| | | |
* | | | Merge pull request #31653 from ydakuka/fix-typo-0801Eileen M. Uchitelle2018-01-115-5/+5
|\ \ \ \ | | | | | | | | | | Fix typos [ci skip]