1. 18 5月, 2020 1 次提交
  2. 20 3月, 2020 1 次提交
  3. 19 12月, 2019 1 次提交
  4. 27 11月, 2019 1 次提交
  5. 23 11月, 2019 1 次提交
  6. 16 11月, 2019 2 次提交
  7. 20 8月, 2019 1 次提交
  8. 15 8月, 2019 1 次提交
  9. 23 7月, 2019 1 次提交
  10. 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
  11. 08 5月, 2019 2 次提交
  12. 10 4月, 2019 1 次提交
  13. 28 3月, 2019 1 次提交
  14. 22 3月, 2019 1 次提交
  15. 14 3月, 2019 1 次提交
  16. 12 3月, 2019 2 次提交
  17. 11 3月, 2019 2 次提交
  18. 06 3月, 2019 1 次提交
  19. 25 1月, 2019 1 次提交
  20. 18 1月, 2019 1 次提交
  21. 06 1月, 2019 1 次提交
  22. 13 12月, 2018 2 次提交
  23. 05 12月, 2018 1 次提交
  24. 29 11月, 2018 1 次提交
  25. 28 11月, 2018 1 次提交
  26. 24 10月, 2018 1 次提交
  27. 12 9月, 2018 1 次提交
  28. 11 9月, 2018 1 次提交
  29. 07 9月, 2018 1 次提交
  30. 30 8月, 2018 1 次提交
    • 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
  31. 08 8月, 2018 1 次提交
  32. 01 8月, 2018 1 次提交
  33. 31 7月, 2018 1 次提交
  34. 05 7月, 2018 1 次提交
  35. 04 7月, 2018 1 次提交