- 23 11月, 2019 9 次提交
-
-
由 Rafael Mendonça França 提交于
-
由 John Hawthorn 提交于
-
由 John Hawthorn 提交于
-
由 John Hawthorn 提交于
We no longer link JS by default, we need to modify manifest.js for that now.
-
由 John Hawthorn 提交于
-
由 John Hawthorn 提交于
We no longer link all js by default, so we should do this test with a css instead (we don't care about that specifics of the dir just that its in the manifest and in this dir).
-
由 John Hawthorn 提交于
-
由 John Hawthorn 提交于
-
由 John Hawthorn 提交于
-
- 20 11月, 2019 2 次提交
-
-
由 Ryuta Kamizono 提交于
Fix "NameError: undefined local variable or method `primary' for #<ApplicationTests::ServerTest:0x000055df43b391d8>"
-
由 Ryuta Kamizono 提交于
Update test to avoid Puma output format change
-
- 20 8月, 2019 1 次提交
-
-
由 Rafael Mendonça França 提交于
Since 9c913116, if you run `rackup` in a machine that doesn't have that folder, the server will not start. This doesn't happen on `rails s` because we create that folder when starting the server on https://github.com/rails/rails/blob/8c8b02784a637570451d7810fd3dfed4eae9a77d/railties/lib/rails/commands/server/server_command.rb#L70-L74.
-
- 05 6月, 2019 1 次提交
-
-
由 Marco Costa 提交于
When generating a new rails application (rails new) using a custom template that includes gems from an authenticated source, the user has to provide credentials to bundler. One way to do this is by exporting environment variables, for example: export BUNDLE_GITHUB__COM=user:pass: provides credentials for bundler to fetch gems from github.com. The problem this PR addresses is that we are currently scrubs all /BUNDLE_.*/ environment variables by wrapping our system calls in Bundler.with_clean_env. We do this because we don't want our commands executed against the generated project to use the generator's bundler environment (e.g. our gems): the generated project should use it's own configuration. The problem with Bundler.with_clean_env is that, on top of restoring environment variables to their original state, it also scrubs any /BUNDLE_.*/ variables, which is harmful for authenticated gem sources. This PR replaces Bundler.with_clean_env with Bundler.with_original_env, which only restores environment variables to their initial state, without additional scrubbing.
-
- 08 5月, 2019 1 次提交
-
-
由 Gannon McGibbon 提交于
[#35782] Allow loading seeds without ActiveJob (~> 5.2.3)
-
- 10 4月, 2019 1 次提交
-
-
由 Rafael França 提交于
Only override async adapter when seeding
-
- 09 4月, 2019 1 次提交
-
-
由 Matthew Draper 提交于
-
- 22 3月, 2019 1 次提交
-
-
由 Yuji Yaginuma 提交于
Since https://github.com/puma/puma/pull/1700, the default host is correctly used. So `localhost` is used instead of `0.0.0.0`. As a result, the log output on restart is changed, and the restart test fails on Puma 3.12.1. https://travis-ci.org/rails/rails/jobs/509239592#L2303-L2305 Specify binding explicitly to avoid being affected by Puma changes.
-
- 14 3月, 2019 2 次提交
-
-
由 Yuji Yaginuma 提交于
Make application work without tmp directory
-
由 eileencodes 提交于
This was missed in the security fix for local dev. CI doesn't have a tmp directory in the apps built for testing so these end up failing. This adds the secret_key_base so we don't need to generate one.
-
- 11 3月, 2019 1 次提交
-
-
由 Aaron Patterson 提交于
If the secret_key_base is nil in dev or test generate a key from random bytes and store it in a tmp file. This prevents the app developers from having to share / checkin the secret key for dev / test but also maintains a key between app restarts in dev/test. [CVE-2019-5420] Co-Authored-By: Neileencodes <eileencodes@gmail.com> Co-Authored-By: NJohn Hawthorn <john@hawthorn.email>
-
- 06 3月, 2019 1 次提交
-
-
由 Benoit Daloze 提交于
* This `if RUBY_ENGINE == 'ruby'` was meant to only skip `byebug` since its introduction in 059bdc34. Listen was added in de6ad566. * Others gems already have appropriate checks for their inclusion. * Test that the listen gem is included when RUBY_ENGINE is not 'ruby'.
-
- 25 1月, 2019 1 次提交
-
-
由 Kasper Timm Hansen 提交于
Don't load app environment when editing credentials
-
- 18 1月, 2019 1 次提交
-
-
由 Rafael França 提交于
Seed database with inline ActiveJob job adapter
-
- 13 12月, 2018 1 次提交
-
-
由 Rafael França 提交于
Fix boolean interaction in scaffold system tests
-
- 14 11月, 2018 2 次提交
-
-
由 Rafael Mendonça França 提交于
-
由 Rafael França 提交于
Reset Capybara sessions if failed system test screenshot raising an exception
-
- 08 10月, 2018 1 次提交
-
-
由 Rafael França 提交于
Remove bundler warnings from bin/setup output
-
- 22 9月, 2018 1 次提交
-
-
由 Rafael Mendonça França 提交于
This reverts commit 130614a8, reversing changes made to 1a3f963f. This is a breaking change even for stores that supports the new schema. Since they don't implement `supports_cache_versioning?` they will now start to fail where they would just work before.
-
- 21 9月, 2018 2 次提交
-
-
由 schneems 提交于
- Moving the `supports_cache_versioning?` check to a class method. - Shorten the method doc. - Expand on the error message.
-
由 schneems 提交于
If you are using the "in cache versioning" also known as "recyclable cache keys" the cache store must be aware of this scheme, otherwise you will generate cache entries that never invalidate. This PR adds a check to the initialization process to ensure that if recyclable cache keys are being used via ``` config.active_record.cache_versioning = true ``` Then the cache store needs to show that it supports this versioning scheme. Cache stores can let Rails know that they support this scheme by adding a method `supports_in_cache_versioning?` and returning true.
-
- 12 9月, 2018 1 次提交
-
-
由 Eileen M. Uchitelle 提交于
Fix query cache to load before first request
-
- 11 9月, 2018 1 次提交
-
-
由 yuuji.yaginuma 提交于
`spec` is the same variable name as gemspec generated by bundler, and its intention is easier to understand than a one-letter variable. https://github.com/bundler/bundler/blob/00fd58eaa69015092ee272c4cb5aa92a5e7ee45c/lib/bundler/templates/newgem/newgem.gemspec.tt#L11 This is follow up 685cf0d5. `spec` is already in use there.
-
- 30 8月, 2018 2 次提交
-
-
由 yuuji.yaginuma 提交于
In the system test template, enter a value based on label. However, since `label` method does not use `titleize` by default. If generate a value including underscore, cannot find a label and the test will fail. ``` $ ./bin/rails g scaffold user name:string phone_number:string $ ./bin/rails t test/system/users_test.rb E Error: UsersTest#test_creating_a_User: Capybara::ElementNotFound: Unable to find field "Phone Number" test/system/users_test.rb:18:in `block in <class:UsersTest>' ``` This removes unnecessary `titleize` so that the generated file will pass even if the attribute contains an underscore.
-
由 Ryuta Kamizono 提交于
Prevent leaking of user's DB credentials on `rails db:create` failure
-
- 21 8月, 2018 1 次提交
-
-
由 Ryuta Kamizono 提交于
Fix `rails routes -c` for controller name consists of multiple word.
-
- 01 8月, 2018 1 次提交
-
-
由 George Claghorn 提交于
Log the remote IP addr of clients behind a proxy
-
- 19 6月, 2018 2 次提交
-
-
由 Rafael Mendonça França 提交于
-
由 Rafael França 提交于
Fix Ruby version in `.ruby-version`
-
- 14 5月, 2018 1 次提交
-
-
由 Yuji Yaginuma 提交于
Don't generate `config/spring.rb` in `app:update` task when spring isn't loaded
-
- 05 5月, 2018 1 次提交
-
-
由 Yuji Yaginuma 提交于
-