aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | | | | | | Merge pull request #29764 from georgeclaghorn/third-party-cache-store-configMatthew Draper2017-07-121-1/+1
|\ \ \ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | Fix configuring third-party cache stores such as ActiveSupport::Cache::RedisStore
| * | | | | | | | | | Fix configuring third-party cache stores such as ↵George Claghorn2017-07-121-1/+1
|/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ActiveSupport::Cache::RedisStore Broken in 8da30ad.
* | | | | | | / / / normalize_path used to be nil tolerantAkira Matsuda2017-07-122-0/+5
| |_|_|_|_|_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | fixes a regression introduced at 8607c25ba7810573733d9b37d0015154ba059f5e
* | | | | | | | | Merge pull request #29746 from kamipo/extract_fake_klassRafael França2017-07-113-52/+38
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | Extract `FakeKlass` in `relation_test.rb` and `relation/mutation_test.rb`
| * | | | | | | | | Extract `FakeKlass` in `relation_test.rb` and `relation/mutation_test.rb`Ryuta Kamizono2017-07-113-52/+38
| | |/ / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `FakeKlass` in `relation_test.rb` and `relation/mutation_test.rb` are almost the same.
* | | | | | | | | Merge pull request #29748 from koic/enable_layout_empty_line_after_magic_commentRafael França2017-07-11547-0/+549
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | Enable Layout/EmptyLineAfterMagicComment cop
| * | | | | | | | | [Action Record] `rubocop -a --only Layout/EmptyLineAfterMagicComment`Koichi ITO2017-07-113-0/+3
| | | | | | | | | |
| * | | | | | | | | [Action View] `rubocop -a --only Layout/EmptyLineAfterMagicComment`Koichi ITO2017-07-113-0/+3
| | | | | | | | | |
| * | | | | | | | | [Action Pack] `rubocop -a --only Layout/EmptyLineAfterMagicComment`Koichi ITO2017-07-1116-0/+16
| | | | | | | | | |
| * | | | | | | | | [Active Job] `rubocop -a --only Layout/EmptyLineAfterMagicComment`Koichi ITO2017-07-11100-0/+100
| | | | | | | | | |
| * | | | | | | | | [Active Support] `rubocop -a --only Layout/EmptyLineAfterMagicComment`Koichi ITO2017-07-11424-0/+424
| | | | | | | | | |
| * | | | | | | | | Enable Layout/EmptyLineAfterMagicComment copKoichi ITO2017-07-111-0/+3
| | |/ / / / / / / | |/| | | | | | |
* | | | | | | | | Merge pull request #29756 from yuki24/fix-englishRobin Dupret2017-07-111-1/+1
|\ \ \ \ \ \ \ \ \ | |_|_|_|_|/ / / / |/| | | | | | | | Fix english for the rescue_from warning [ci skip]
| * | | | | | | | Fix english for the rescue_from warning [ci skip]Yuki Nishijima2017-07-111-1/+1
|/ / / / / / / /
* | | | | | | | Merge pull request #29752 from palkan/masterMatthew Draper2017-07-121-1/+1
|\ \ \ \ \ \ \ \ | |/ / / / / / / |/| | | | | | | Fix PostgreSql adapter setup for ActionCable tests
| * | | | | | | Fix postgresql adapter setup for ActionCable testspalkan2017-07-111-1/+1
|/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | (cherry picked from commit e2093c1f678175bde7c37c848686d979427346e1) (cherry picked from commit d7dbe48273bd9e0adb1de5b52e3cdaeb4a65630b)
* | | | | | | Merge pull request #29745 from y-yagi/fix_typo_in_method_nameMatthew Draper2017-07-111-1/+1
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | Fix typo in method name
| * | | | | | Fix typo in method nameyuuji.yaginuma2017-07-111-1/+1
|/ / / / / /
* | | | | | :scissors:Ryuta Kamizono2017-07-111-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | [ci skip]
* | | | | | Add backticks for class names in CHANGELOG [ci skip]Ryuta Kamizono2017-07-111-3/+3
| | | | | |
* | | | | | Merge pull request #29742 from lugray/default_protect_from_forgeryRafael França2017-07-1010-4/+79
|\ \ \ \ \ \ | | | | | | | | | | | | | | Default protect from forgery
| * | | | | | Add ActionController::Base.skip_forgery_protectionLisa Ugray2017-07-102-0/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since we now default to `protect_from_forgery with: :exception`, provide a wrapper to `skip_before_action :verify_authenticity_token` for disabling forgery protection.
| * | | | | | Protect from forgery by defaultLisa Ugray2017-07-109-4/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rather than protecting from forgery in the generated ApplicationController, add it to ActionController::Base by config. This configuration defaults to false to support older versions which have removed it from their ApplicationController, but is set to true for Rails 5.2.
* | | | | | | Merge pull request #29572 from kaspth/test-runner-no-eager-requireKasper Timm Hansen2017-07-1015-275/+251
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | Don't eagerly require Rails' minitest plugin.
| * | | | | | * Don't eagerly require Rails' minitest plugin.Kasper Timm Hansen2017-07-1015-275/+251
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | By making the Rails minitest behave like a standard minitest plugin we're much more likely to not break when people use other minitest plugins. Like minitest-focus and pride. To do this, we need to behave like minitest: require files up front and then perform the plugin behavior via the at_exit hook. This also saves us a fair bit of wrangling with test file loading. Finally, since the environment and warnings options have to be applied as early as possible, and since minitest loads plugins at_exit, they have to be moved to the test command. * Don't expect the root method. It's likely this worked because we eagerly loaded the Rails minitest plugin and that somehow defined a root method on `Rails`. * Assign a backtrace to failed exceptions. Otherwise Minitest pukes when attempting to filter the backtrace (which Rails' backtrace cleaner then removes). Means the exception message test has to be revised too. This is likely caused by the rails minitest plugin now being loaded for these tests and assigning a default backtrace cleaner.
* | | | | | Added time helper method `freeze_time` which is an alias for `travel_to ↵प्रथमेश Sonpatki2017-07-103-0/+47
| | | | | | | | | | | | | | | | | | | | | | | | Time.now` (#29681)
* | | | | | Merge pull request #29735 from ↵Kasper Timm Hansen2017-07-102-1/+9
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | y-yagi/make_sidekiq_and_resque_integration_tests_work_in_ci Make sidekiq and resque integration tests work in CI
| * | | | | | Make sidekiq and resque integration tests work in CIyuuji.yaginuma2017-07-102-1/+9
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since f55ecc6, the integration test of sidekiq and resque is not working in CI. https://travis-ci.org/rails/rails/jobs/251783876 Because f55ecc6 required a password to access redis. Therefore, handling by passing passwords when connecting to redis.
* | | | | | Merge pull request #29733 from kirs/frozen-activejobMatthew Draper2017-07-10102-0/+102
|\ \ \ \ \ \ | | | | | | | | | | | | | | Use frozen-string-literal in ActiveJob
| * | | | | | Use frozen-string-literal in ActiveJobKir Shatrov2017-07-09102-0/+102
|/ / / / / /
* | | | | | Merge pull request #29731 from castrodd/patch-1Kasper Timm Hansen2017-07-091-2/+2
|\ \ \ \ \ \ | | | | | | | | | | | | | | [ci skip] Updated language on validations.
| * | | | | | [ci skip] Updated language on validations.Daniel Castro2017-07-091-2/+2
| | | | | | |
* | | | | | | Merge pull request #29730 from bdewater/update-encryptor-docsKasper Timm Hansen2017-07-091-5/+6
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | Update MessageEncryptor example to use dynamic key length
| * | | | | | [ci skip] update MessageEncryptor example to use the key length as returned ↵Bart de Water2017-07-091-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | by OpenSSL
* | | | | | | Merge pull request #29721 from y-yagi/fix_29696Kasper Timm Hansen2017-07-092-2/+36
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | Treat secrets as binary
| * | | | | | | Treat secrets as binaryyuuji.yaginuma2017-07-092-2/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Until Rails 5.1.1 secrets was treated as binary inside Rails. https://github.com/rails/rails/blob/v5.1.1/railties/lib/rails/secrets.rb#L59 https://github.com/rails/rails/blob/v5.1.1/railties/lib/rails/secrets.rb#L63 However, it is treated as String in Rails 5.1.2(changed by 157db872103429e8782b62d1cb5d1d91337177a7). https://github.com/rails/rails/blob/v5.1.2/railties/lib/rails/secrets.rb#L104 https://github.com/rails/rails/blob/v5.1.2/railties/lib/rails/secrets.rb#L108 As a result, when upgrading from Rails 5.1.1 to 5.1.2, to write the value treated as binary using `File.write`, causing an error. In order to avoid `UndefinedConversionError`, fixed it to treat it as binary like 5.1.1. Fixes #29696
* | | | | | | | Merge pull request #29725 from y-yagi/fix_29717Kasper Timm Hansen2017-07-093-0/+73
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | Load environment file in `dbconsole` command
| * | | | | | | | Load environment file in `dbconsole` commandyuuji.yaginuma2017-07-093-0/+73
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently the environment file is not loaded in `dbconsole` command. Therefore, for example, if use encrypted secrets values in database.yml, `read_encrypted_secrets` will not be true, so the value can not be used correctly. Fixes #29717
* | | | | | | | Merge pull request #29655 from kirs/frozen-friendly-ap-arMatthew Draper2017-07-1018-19/+37
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | Prepare AP and AR to be frozen string friendly
| * | | | | | | | Prepare AP and AR to be frozen string friendlyKir Shatrov2017-07-0618-19/+37
| | | | | | | | |
* | | | | | | | | Merge pull request #29728 from kirs/frozen-activesupportMatthew Draper2017-07-09429-0/+434
|\ \ \ \ \ \ \ \ \ | |_|/ / / / / / / |/| | | | | | | | Use frozen-string-literal in ActiveSupport
| * | | | | | | | Use frozen-string-literal in ActiveSupportKir Shatrov2017-07-09429-0/+434
| |/ / / / / / /
* | | | | | | | Merge pull request #29715 from reverbdotcom/ptd/fix-invalid-uuidsMatthew Draper2017-07-092-2/+4
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | Don't allow uuids with orphan curly braces
| * | | | | | | | Don't allow uuids with orphan curly bracespdebelak2017-07-072-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The uuid validation regex was allowing uuids to have a single leading curly brace or single trailing curly brace. Saving with such a uuid would cause Postgres to generate an exception even though the record seemed valid. With this change, the regex requires both a leading *and* a trailing curly brace or neither to be valid.
* | | | | | | | | Add backticks [ci skip]Ryuta Kamizono2017-07-091-2/+2
| | | | | | | | |
* | | | | | | | | Merge pull request #28867 from eugeneius/skip_query_cache_in_batchesMatthew Draper2017-07-0911-20/+224
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Skip query cache for in_batches and friends
| * | | | | | | | | Skip query cache for in_batches and friendsEugene Kenny2017-07-0610-20/+216
| | |_|_|/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `find_each`, `find_in_batches` and `in_batches` APIs usually operate on large numbers of records, where it's preferable not to load them all into memory at once. If the query cache is enabled, it will hold onto the query results until the end of the execution context (request/job), which means the memory used is still proportional to the total number of records. These queries are typically not repeated, so the query cache isn't desirable here.
* | | | | | | | | Merge pull request #29692 from fimmtiu/avoid-translating-non-database-exceptionsMatthew Draper2017-07-093-2/+31
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | Don't translate non-database exceptions.
| * | | | | | | | | Remove driver-specific hard-coding in the tests.Dennis Taylor2017-07-071-9/+1
| | | | | | | | | |
| * | | | | | | | | Rename the StatementInvalid test method for clarity.Dennis Taylor2017-07-071-1/+1
| | | | | | | | | |