1. 08 3月, 2017 1 次提交
  2. 24 2月, 2017 1 次提交
  3. 07 2月, 2017 1 次提交
  4. 04 2月, 2017 1 次提交
  5. 31 1月, 2017 9 次提交
  6. 30 1月, 2017 1 次提交
  7. 29 1月, 2017 1 次提交
  8. 28 1月, 2017 1 次提交
  9. 15 1月, 2017 2 次提交
  10. 12 1月, 2017 1 次提交
  11. 06 1月, 2017 1 次提交
  12. 05 1月, 2017 1 次提交
  13. 24 12月, 2016 2 次提交
  14. 06 12月, 2016 1 次提交
  15. 30 11月, 2016 1 次提交
  16. 29 10月, 2016 1 次提交
  17. 14 9月, 2016 1 次提交
  18. 02 9月, 2016 1 次提交
  19. 25 8月, 2016 1 次提交
    • R
      Add load hooks to all tests classes · 0510208d
      Rafael Mendonça França 提交于
      Usually users extends tests classes doing something like:
      
          ActionView::TestCase.include MyCustomTestHelpers
      
      This is bad because it will load the ActionView::TestCase right aways
      and this will load ActionController::Base making its on_load hooks to
      execute early than it should.
      
      One way to fix this is using the on_load hooks of the components like:
      
          ActiveSupport.on_load(:action_view) do
            ActionView::TestCase.include MyCustomTestHelpers
          end
      
      The problem with this approach is that the test extension will be only
      load when ActionView::Base is loaded and this may happen too late in the
      test.
      
      To fix this we are adding hooks to people extend the test classes that
      will be loaded exactly when the test classes are needed.
      0510208d
  20. 16 8月, 2016 1 次提交
  21. 07 8月, 2016 3 次提交
  22. 06 7月, 2016 1 次提交
  23. 07 6月, 2016 1 次提交
    • J
      Do not suggest nonsensical OpenSSL verify modes [ci skip] · 5e3fb2f7
      Jonne Haß 提交于
      SSL_set_verify(3) explains:
      
      SSL_VERIFY_FAIL_IF_NO_PEER_CERT
        Server mode: if the client did not return a certificate, the TLS/SSL
      handshake is immediately terminated with a "handshake failure" alert.
      This flag must
        be used together with SSL_VERIFY_PEER.
      
        Client mode: ignored
      
      SSL_VERIFY_CLIENT_ONCE
        Server mode: only request a client certificate on the initial TLS/SSL
      handshake. Do not ask for a client certificate again in case of a
      renegotiation.
        This flag must be used together with SSL_VERIFY_PEER.
      
        Client mode: ignored
      
      The SMTP connection here uses a OpenSSL socket in client mode,
      suggesting invalid/ignored flags is rather misleading.
      5e3fb2f7
  24. 31 5月, 2016 1 次提交
  25. 16 5月, 2016 1 次提交
    • J
      Action Mailer: Declarative exception handling with `rescue_from`. · e35b98e6
      Jeremy Daer 提交于
      Follows the same pattern as controllers and jobs. Exceptions raised in
      delivery jobs (enqueued by `#deliver_later`) are also delegated to the
      mailer's rescue_from handlers, so you can handle the DeserializationError
      raised by delivery jobs:
      
      ```ruby
      class MyMailer < ApplicationMailer
        rescue_from ActiveJob::DeserializationError do
          …
        end
      ```
      
      ActiveSupport::Rescuable polish:
      * Add the `rescue_with_handler` class method so exceptions may be
        handled at the class level without requiring an instance.
      * Rationalize `exception.cause` handling. If no handler matches the
        exception, fall back to the handler that matches its cause.
      * Handle exceptions raised elsewhere. Pass `object: …` to execute
        the `rescue_from` handler (e.g. a method call or a block to
        instance_exec) against a different object. Defaults to `self`.
      e35b98e6
  26. 10 5月, 2016 2 次提交
  27. 07 5月, 2016 1 次提交