1. 19 10月, 2014 2 次提交
  2. 16 10月, 2014 1 次提交
  3. 14 10月, 2014 1 次提交
  4. 13 10月, 2014 1 次提交
  5. 26 9月, 2014 1 次提交
  6. 24 9月, 2014 1 次提交
  7. 22 9月, 2014 1 次提交
  8. 19 9月, 2014 1 次提交
    • X
      inject Rack::Lock if config.eager_load is false · 112077c2
      Xavier Noria 提交于
      If code is not eager loaded constants are loaded on demand. Constant
      autoloading is not thread-safe, so if eager loading is not enabled
      multi-threading should not be allowed.
      
      This showed up in certain Capybara scenarios: Most Capybara drivers
      other than Rack::Test need a web server. In particular, drivers for
      JavaScript support. Capybara launches WEBrick in its own thread for
      those but that per se is fine, because the spec thread and the server
      thread are coordinated.
      
      Problem comes if the page being served in the spec makes Ajax calls.
      Those may hit WEBrick in parallel, and since WEBrick is multi-threaded
      and allow_concurrency? returns true in the test environment before
      this patch, threads are spawned to serve those parallel requests. On
      the other hand, since eager_load is false by default in the test
      environment, constants are not preloaded.
      
      So the suite is autoloading constants in a multi-threaded set. That's
      a receipt for paracetamol. The symptom is random obscure errors whose
      messages point somehow to constant autoloading.
      
      As a consequence of this fix for allow_concurrency? WEBrick in
      Capybara scenarios no longer runs in multi-threaded mode.
      
      Fixes #15089.
      112077c2
  9. 17 9月, 2014 1 次提交
  10. 15 9月, 2014 2 次提交
  11. 11 9月, 2014 4 次提交
  12. 10 9月, 2014 1 次提交
  13. 08 9月, 2014 1 次提交
    • G
      Default to sorting user's test cases for now · 2b41343c
      Godfrey Chan 提交于
      Goals:
      
      1. Default to :random for newly generated applications
      2. Default to :sorted for existing applications with a warning
      3. Only show the warning once
      4. Only show the warning if the app actually uses AS::TestCase
      
      Fixes #16769
      2b41343c
  14. 04 9月, 2014 3 次提交
  15. 03 9月, 2014 1 次提交
    • W
      Dont mess with default order engines load · 435e8d71
      Washington Luiz 提交于
      When copying migrations some engines might depend on schema from other
      engine so we can't blindly reverse all railties collection as that would
      affect the order they were originally loaded. This patch helps to only
      apply the order from engines specified in `railties_order`
      435e8d71
  16. 02 9月, 2014 2 次提交
  17. 28 8月, 2014 3 次提交
  18. 27 8月, 2014 1 次提交
  19. 22 8月, 2014 1 次提交
    • S
      Refactor ActionDispatch::RemoteIp · f9a84bb2
      Sam Aarons 提交于
      Refactored IP address checking in ActionDispatch::RemoteIp to rely on
      the IPAddr class instead of the unwieldly regular expression to match
      IP addresses. This commit keeps the same api but allows users to pass
      IPAddr objects to config.action_dispatch.trusted_proxies in addition
      to passing strings and regular expressions.
      
      Example:
      
          # config/environments/production.rb
          config.action_dispatch.trusted_proxies = IPAddr.new('4.8.15.0/16')
      f9a84bb2
  20. 21 8月, 2014 1 次提交
  21. 20 8月, 2014 4 次提交
    • C
      Fix failing railties tests · e4327144
      Carlos Antonio da Silva 提交于
      A combination of two commits led into these failures:
      
      * The addition of a new active_record config in
        24bb8347
      * The revert of the config to use config.x as options holder in
        43073b39
      
      These tests remove activerecord from the load path, however the
      configuration is still in the application file, and they blow up.
      e4327144
    • C
      Fix setting simple values to the new config.x · 2f7ac9cd
      Carlos Antonio da Silva 提交于
      Previously setting simple values to the config.x object resulted in the
      following:
      
          config.x.super_debugger = true
          config.x.super_debugger #=> {}
      
      Which was against the examples showed in the changelog/release notes.
      2f7ac9cd
    • R
      Revert "Improve custom configuration" · 43073b39
      Rafael Mendonça França 提交于
      This reverts commit de489134.
      
      Conflicts:
      	railties/lib/rails/railtie/configuration.rb
      
      It added regression. Will be back after the beta
      43073b39
    • R
      Improve custom configuration · de489134
      Rafael Mendonça França 提交于
      1. Hashes can be assigned
      2. We don't need a special level anymore
      
      The method chain only works in the top level.
      
      If users need a second level they need to assign a OrderedOptions to the
      key:
      
          config.resque.server = ActiveSupport::OrderedOptions.new
          config.resque.server.url = "http://localhost"
          config.resque.server.port = 3000
      
      [Rafael Mendonça França + Carlos Antonio da Silva]
      de489134
  22. 13 8月, 2014 3 次提交
  23. 12 8月, 2014 2 次提交
  24. 09 8月, 2014 1 次提交