aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix regression from multiple mountpoint supportDavid Rodríguez2017-07-244-1/+65
|
* Merge pull request #29894 from eugeneius/check_schema_file_dup_stringKasper Timm Hansen2017-07-242-1/+8
|\ | | | | Avoid modifying frozen string in check_schema_file
| * Avoid modifying frozen string in check_schema_fileEugene Kenny2017-07-232-1/+8
| | | | | | | | | | | | This was missed when the frozen string literal pragma was added to this file because the string is only modified when running in the context of a full Rails app, which wasn't covered by the test suite.
* | Merge pull request #29907 from deivid-rodriguez/fix_flaky_message_verifier_testKasper Timm Hansen2017-07-241-1/+1
|\ \ | | | | | | Fix test failure in message verifier tests
| * | Fix test failure in message verifier testsDavid Rodríguez2017-07-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Without this, I get the following result on my machine ``` # Running: F Failure: MessageVerifierTest#test_backward_compatibility_messages_signed_without_metadata [/home/deivid/Code/rails/activesupport/test/message_verifier_test.rb:91]: --- expected +++ actual @@ -1 +1 @@ -{:some=>"data", :now=>2010-01-01 00:00:00 +0100} +{:some=>"data", :now=>2010-01-01 00:00:00 +0000} bin/test test/message_verifier_test.rb:89 ```
* | | Merge pull request #29906 from assain/add_more_tests_to_message_verifierKasper Timm Hansen2017-07-241-0/+15
|\ \ \ | |/ / |/| | Add tests to MessageVerifier
| * | add metadata tests: verify methodAssain2017-07-241-0/+15
|/ /
* | [ci skip] Remove superfluous paragraphs; fully qualify constants.Kasper Timm Hansen2017-07-241-8/+2
| | | | | | | | | | | | | | The paragraphs retread ground covered by the title and the usage examples, so let's just remove them. [ Assain Jaleel & Kasper Timm Hansen ]
* | Merge pull request #29892 from assain/documenation_for_metadataKasper Timm Hansen2017-07-243-0/+100
|\ \ | | | | | | Document metadata support for MessageEncryptor
| * | add to changelog: purpose and expiry supportAssain2017-07-241-0/+28
| | | | | | | | | | | | [ci skip]
| * | document metadata support added to message encryptor and message verifierAssain2017-07-242-0/+72
| |/ | | | | | | [ci skip]
* | Merge pull request #29860 from georgeclaghorn/travel-back-automaticallyRafael França2017-07-243-8/+8
|\ \ | | | | | | Remove time stubs after each test
| * | Remove time stubs after each testGeorge Claghorn2017-07-223-8/+8
| | | | | | | | | | | | Reverts 7abb6e0.
* | | Merge pull request #29820 from kirs/frozen-actioncableSean Griffin2017-07-2381-1/+159
|\ \ \ | | | | | | | | Use frozen string literal in actioncable/
| * | | Use frozen string literal in actioncable/Kir Shatrov2017-07-2381-1/+159
| | | |
* | | | Merge pull request #29900 from kirs/actionview-frozen-friendlySean Griffin2017-07-231-1/+2
|\ \ \ \ | |/ / / |/| | | Make actionview ready for frozen strings
| * | | Make actionview ready for frozen stringsKir Shatrov2017-07-231-1/+2
| | | |
* | | | Merge pull request #29901 from kirs/actioncable-frozen-friendlySean Griffin2017-07-231-1/+5
|\ \ \ \ | |/ / / |/| | | Make actioncable ready for frozen strings
| * | | Make actioncable ready for frozen stringsKir Shatrov2017-07-231-1/+5
| | | |
* | | | Merge pull request #29896 from kirs/frozen-actionmailerRichard Schneeman2017-07-2343-0/+84
|\ \ \ \ | |/ / / |/| | | Use frozen string literal in actionmailer/
| * | | Use frozen string literal in actionmailer/Kir Shatrov2017-07-2343-0/+84
|/ / /
* | | Merge branch 'verify-release'Kasper Timm Hansen2017-07-234-96/+138
|\ \ \
| * | | Update release instructions in light of new tasks.Kasper Timm Hansen2017-07-221-44/+46
| | | |
| * | | Support multiple versions in release announcement.Kasper Timm Hansen2017-07-222-51/+67
| | | | | | | | | | | | | | | | | | | | So releasing 5.1 and 5.0 together won't require manual copy and paste.
| * | | Add task to verify a release.Kasper Timm Hansen2017-07-222-1/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Basically revises the release flow to: * Update the version in RAILS_VERSION + rake changelog:header * Run rake all:verify (click around in the booted app) * If that checks out, run rake release.
* | | | Merge pull request #29867 from koic/fix_a_failed_ar_test_when_using_oracleKasper Timm Hansen2017-07-231-2/+10
|\ \ \ \ | | | | | | | | | | Fix a failued AR test when using OracleAdapter
| * | | | Fix a failued AR test when using OracleAdapterKoichi ITO2017-07-201-2/+10
| | | | |
* | | | | Let Metadata instance handle purpose coercion.Kasper Timm Hansen2017-07-231-4/+4
| | | | | | | | | | | | | | | | | | | | [ Assain Jaleel & Kasper Timm Hansen ]
* | | | | Remove dependency on `from_now` extension.Kasper Timm Hansen2017-07-231-1/+1
| |_|_|/ |/| | | | | | | | | | | [ Assain Jaleel & Kasper Timm Hansen ]
* | | | Merge pull request #29768 from janpieper/sort-enabled-extensions-in-dumpEileen M. Uchitelle2017-07-222-1/+15
|\ \ \ \ | |_|/ / |/| | | Sort enabled adapter extensions in schema dump
| * | | Sort enabled adapter extensions in schema dumpJan Pieper2017-07-122-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The list of enabled adapter extensions in the schema dump isn't sorted by default, so it may happen that the sorting changes over time. If you're using a VCS, a change to the sorting results in a diff without any real change. Sorting the list should solve this problem.
* | | | Merge pull request #29870 from kamipo/use_true_false_literalsSean Griffin2017-07-222-14/+4
|\ \ \ \ | | | | | | | | | | Use `TRUE` and `FALSE` boolean literals for MySQL
| * | | | Use `TRUE` and `FALSE` boolean literals for MySQLRyuta Kamizono2017-07-202-14/+6
| | |/ / | |/| | | | | | | | | | | | | | | | | | Since #29699, abstract boolean serialization has been changed to use `TRUE` and `FALSE` literals. MySQL also support the literals. So we can use the abstract boolean serialization even for MySQL.
* | | | Merge pull request #29858 from ↵Rafael França2017-07-212-19/+18
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | y-yagi/use_argument_error_instead_of_own_error_class Use `ArgumentError` instead of own error class
| * | | | Use `ArgumentError` instead of own error classyuuji.yaginuma2017-07-202-19/+18
| |/ / / | | | | | | | | | | | | | | | | If the argument is invalid, I think that it is more intuitive to use `ArgumentError` than its own error class.
* | | | Merge pull request #29869 from kamipo/make_type_map_to_privateRafael França2017-07-219-31/+28
|\ \ \ \ | | | | | | | | | | Make `type_map` to private because it is only used in the connection adapter
| * | | | Make `type_map` to private because it is only used in the connection adapterRyuta Kamizono2017-07-209-31/+28
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | `type_map` is an internal API and it is only used in the connection adapter. And also, some type map initializer methods requires passed `type_map`, but those instances already has `type_map` in itself. So we don't need explicit passing `type_map` to the initializers.
* | | | Merge pull request #29884 from padi/update_rails_5_upgrade_guideRafael França2017-07-212-2/+12
|\ \ \ \ | | | | | | | | | | Updates Rails upgrade guide on `ActionView::Helpers::RecordTagHelper`
| * | | | Suppress documentation for content_tag_for and div_for since they were ↵Marc Rendl Ignacio2017-07-211-2/+2
| | | | | | | | | | | | | | | | | | | | removed already
| * | | | Updates Rails upgrade guide for 4.2 to 5.0 regarding the removal of ↵Marc Rendl Ignacio2017-07-211-0/+10
| | |/ / | |/| | | | | | | | | | `ActionView::Helpers::RecordTagHelper`
* | | | Merge pull request #29885 from freeletics/fix-false-positive-testRafael França2017-07-211-11/+11
|\ \ \ \ | | | | | | | | | | Fix false positive test related to wrong app root path.
| * | | | Fix false positive test related to wrong app root path.Wojciech Wnętrzak2017-07-211-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Without setting root config, `config.paths["config/secrets"]` located in https://github.com/rails/rails/blob/84eb498f84ebc5d1be0b0db6f7bca9da3d679ca6/railties/lib/rails/application.rb#L390 always returned empty list.
* | | | | Merge pull request #29855 from lugray/has_one_destroyed_by_associationRafael França2017-07-213-0/+42
|\ \ \ \ \ | | | | | | | | | | | | Match destroyed_by_association for has_one to has_many
| * | | | | Match destroyed_by_association for has_one to has_manyLisa Ugray2017-07-213-0/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a has_many association is destroyed by `dependent: destroy`, destroyed_by_association is set to the reflection, and this can be checked in callbacks. This matches that behaviour for has_one associations.
* | | | | | Merge pull request #29732 from kirs/frozen-activerecordRafael França2017-07-21678-11/+1367
|\ \ \ \ \ \ | | | | | | | | | | | | | | Use frozen-string-literal in ActiveRecord
| * | | | | | Reset column information after schema changedyuuji.yaginuma2017-07-202-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes the following failures. https://travis-ci.org/rails/rails/jobs/253990014
| * | | | | | Use frozen-string-literal in ActiveRecordKir Shatrov2017-07-19677-11/+1363
| | |_|_|/ / | |/| | | |
* | | | | | Revert "Extract `bind_param` and `bind_attribute` into `ActiveRecord::TestCase`"Sean Griffin2017-07-2113-46/+56
| |_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit b6ad4052d18e4b29b8a092526c2beef013e2bf4f. This is not something that the majority of Active Record should be testing or care about. We should look at having fewer places rely on these details, not make it easier to rely on them.
* | | | | Merge pull request #29882 from y-yagi/fix_ujs_test_postprocessingKasper Timm Hansen2017-07-211-1/+1
|\ \ \ \ \ | | | | | | | | | | | | Remove log directory in test postprocessing
| * | | | | Remove log directory in test postprocessingyuuji.yaginuma2017-07-211-1/+1
|/ / / / / | | | | | | | | | | | | | | | The "log" is directory. So it is necessary to use `FileUtils.rm_rf`.