1. 23 11月, 2019 9 次提交
  2. 20 11月, 2019 2 次提交
  3. 20 8月, 2019 1 次提交
  4. 05 6月, 2019 1 次提交
    • M
      Preserve Bundle configuration during app generation (#34755) · b1464e34
      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.
      b1464e34
  5. 08 5月, 2019 1 次提交
  6. 10 4月, 2019 1 次提交
  7. 09 4月, 2019 1 次提交
  8. 22 3月, 2019 1 次提交
  9. 14 3月, 2019 2 次提交
  10. 11 3月, 2019 1 次提交
  11. 06 3月, 2019 1 次提交
  12. 25 1月, 2019 1 次提交
  13. 18 1月, 2019 1 次提交
  14. 13 12月, 2018 1 次提交
  15. 14 11月, 2018 2 次提交
  16. 08 10月, 2018 1 次提交
  17. 22 9月, 2018 1 次提交
  18. 21 9月, 2018 2 次提交
    • S
      Switch to supports_cache_versioning? check to a class method · 2d7de594
      schneems 提交于
      - Moving the `supports_cache_versioning?` check to a class method. 
      - Shorten the method doc. 
      - Expand on the error message.
      2d7de594
    • S
      [close #33907] Error when using "recyclable" cache keys with a store that does not support it · 49b0e69b
      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.
      49b0e69b
  19. 12 9月, 2018 1 次提交
  20. 11 9月, 2018 1 次提交
  21. 30 8月, 2018 2 次提交
    • Y
      Generate the same value as a label of view in system test template · 545a1104
      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.
      545a1104
    • R
      Merge pull request #33744 from bogdanvlviv/fixes-27852 · 0e8362b1
      Ryuta Kamizono 提交于
      Prevent leaking of user's DB credentials on `rails db:create` failure
      0e8362b1
  22. 21 8月, 2018 1 次提交
  23. 01 8月, 2018 1 次提交
  24. 19 6月, 2018 2 次提交
  25. 14 5月, 2018 1 次提交
  26. 05 5月, 2018 1 次提交