actionmailer 6.0.0.beta2 → 6.0.2.rc1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of actionmailer might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +32 -0
- data/README.rdoc +3 -1
- data/lib/action_mailer/base.rb +6 -6
- data/lib/action_mailer/gem_version.rb +2 -2
- data/lib/action_mailer/test_helper.rb +2 -1
- metadata +15 -12
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 457d3fed897d4011badd259ff2073833bf0379cf270100d71f23ebd22fbad7f0
         | 
| 4 | 
            +
              data.tar.gz: 8d4ed5bdf3a96ff492208b0a3a00e98b6209857ca34f03cfda023d03681972ae
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 6e01fad3fac36a8eb8035218341aad8f8d73ba8633fe2411a70d76d52a2bc068b5ddc0c301a10b5ef5b7f56ca98e7d9b0468717c6047d26e90be7af162f37dcc
         | 
| 7 | 
            +
              data.tar.gz: 432e9360d7ccaee7eb248f822973de2ae68773f9eb57e99ed598800b4e91666d3ce817490578432a81b5a3f8bab860847437f144b960d29717e1e52ba8afee71
         | 
    
        data/CHANGELOG.md
    CHANGED
    
    | @@ -1,3 +1,35 @@ | |
| 1 | 
            +
            ## Rails 6.0.2.rc1 (November 27, 2019) ##
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            *   Fix ActionMailer assertions don't work for parameterized mail with legacy delivery job.
         | 
| 4 | 
            +
             | 
| 5 | 
            +
                *bogdanvlviv*
         | 
| 6 | 
            +
             | 
| 7 | 
            +
             | 
| 8 | 
            +
            ## Rails 6.0.1 (November 5, 2019) ##
         | 
| 9 | 
            +
             | 
| 10 | 
            +
            *   No changes.
         | 
| 11 | 
            +
             | 
| 12 | 
            +
             | 
| 13 | 
            +
            ## Rails 6.0.0 (August 16, 2019) ##
         | 
| 14 | 
            +
             | 
| 15 | 
            +
            *   No changes.
         | 
| 16 | 
            +
             | 
| 17 | 
            +
             | 
| 18 | 
            +
            ## Rails 6.0.0.rc2 (July 22, 2019) ##
         | 
| 19 | 
            +
             | 
| 20 | 
            +
            *   No changes.
         | 
| 21 | 
            +
             | 
| 22 | 
            +
             | 
| 23 | 
            +
            ## Rails 6.0.0.rc1 (April 24, 2019) ##
         | 
| 24 | 
            +
             | 
| 25 | 
            +
            *   No changes.
         | 
| 26 | 
            +
             | 
| 27 | 
            +
             | 
| 28 | 
            +
            ## Rails 6.0.0.beta3 (March 11, 2019) ##
         | 
| 29 | 
            +
             | 
| 30 | 
            +
            *   No changes.
         | 
| 31 | 
            +
             | 
| 32 | 
            +
             | 
| 1 33 | 
             
            ## Rails 6.0.0.beta2 (February 25, 2019) ##
         | 
| 2 34 |  | 
| 3 35 | 
             
            *   No changes.
         | 
    
        data/README.rdoc
    CHANGED
    
    | @@ -13,6 +13,8 @@ Additionally, an Action Mailer class can be used to process incoming email, | |
| 13 13 | 
             
            such as allowing a blog to accept new posts from an email (which could even
         | 
| 14 14 | 
             
            have been sent from a phone).
         | 
| 15 15 |  | 
| 16 | 
            +
            You can read more about Action Mailer in the {Action Mailer Basics}[https://edgeguides.rubyonrails.org/action_mailer_basics.html] guide.
         | 
| 17 | 
            +
             | 
| 16 18 | 
             
            == Sending emails
         | 
| 17 19 |  | 
| 18 20 | 
             
            The framework works by initializing any instance variables you want to be
         | 
| @@ -128,7 +130,7 @@ Action Mailer is released under the MIT license: | |
| 128 130 |  | 
| 129 131 | 
             
            API documentation is at
         | 
| 130 132 |  | 
| 131 | 
            -
            *  | 
| 133 | 
            +
            * https://api.rubyonrails.org
         | 
| 132 134 |  | 
| 133 135 | 
             
            Bug reports for the Ruby on Rails project can be filed here:
         | 
| 134 136 |  | 
    
        data/lib/action_mailer/base.rb
    CHANGED
    
    | @@ -408,7 +408,7 @@ module ActionMailer | |
| 408 408 | 
             
              #     really useful if you need to validate a self-signed and/or a wildcard certificate. You can use the name
         | 
| 409 409 | 
             
              #     of an OpenSSL verify constant (<tt>'none'</tt> or <tt>'peer'</tt>) or directly the constant
         | 
| 410 410 | 
             
              #     (<tt>OpenSSL::SSL::VERIFY_NONE</tt> or <tt>OpenSSL::SSL::VERIFY_PEER</tt>).
         | 
| 411 | 
            -
              # | 
| 411 | 
            +
              #   * <tt>:ssl/:tls</tt> Enables the SMTP connection to use SMTP/TLS (SMTPS: SMTP over direct TLS connection)
         | 
| 412 412 | 
             
              #
         | 
| 413 413 | 
             
              # * <tt>sendmail_settings</tt> - Allows you to override options for the <tt>:sendmail</tt> delivery method.
         | 
| 414 414 | 
             
              #   * <tt>:location</tt> - The location of the sendmail executable. Defaults to <tt>/usr/sbin/sendmail</tt>.
         | 
| @@ -944,9 +944,9 @@ module ActionMailer | |
| 944 944 | 
             
                    assignable.each { |k, v| message[k] = v }
         | 
| 945 945 | 
             
                  end
         | 
| 946 946 |  | 
| 947 | 
            -
                  def collect_responses(headers)
         | 
| 947 | 
            +
                  def collect_responses(headers, &block)
         | 
| 948 948 | 
             
                    if block_given?
         | 
| 949 | 
            -
                      collect_responses_from_block(headers, & | 
| 949 | 
            +
                      collect_responses_from_block(headers, &block)
         | 
| 950 950 | 
             
                    elsif headers[:body]
         | 
| 951 951 | 
             
                      collect_responses_from_text(headers)
         | 
| 952 952 | 
             
                    else
         | 
| @@ -973,10 +973,10 @@ module ActionMailer | |
| 973 973 | 
             
                    templates_name = headers[:template_name] || action_name
         | 
| 974 974 |  | 
| 975 975 | 
             
                    each_template(Array(templates_path), templates_name).map do |template|
         | 
| 976 | 
            -
                       | 
| 976 | 
            +
                      format = template.format || self.formats.first
         | 
| 977 977 | 
             
                      {
         | 
| 978 | 
            -
                        body: render(template: template),
         | 
| 979 | 
            -
                        content_type:  | 
| 978 | 
            +
                        body: render(template: template, formats: [format]),
         | 
| 979 | 
            +
                        content_type: Mime[format].to_s
         | 
| 980 980 | 
             
                      }
         | 
| 981 981 | 
             
                    end
         | 
| 982 982 | 
             
                  end
         | 
| @@ -156,7 +156,8 @@ module ActionMailer | |
| 156 156 | 
             
                  def delivery_job_filter(job)
         | 
| 157 157 | 
             
                    job_class = job.is_a?(Hash) ? job.fetch(:job) : job.class
         | 
| 158 158 |  | 
| 159 | 
            -
                    Base.descendants.map(&:delivery_job).include?(job_class)
         | 
| 159 | 
            +
                    Base.descendants.map(&:delivery_job).include?(job_class) ||
         | 
| 160 | 
            +
                      ActionMailer::Parameterized::DeliveryJob == job_class
         | 
| 160 161 | 
             
                  end
         | 
| 161 162 | 
             
              end
         | 
| 162 163 | 
             
            end
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: actionmailer
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 6.0. | 
| 4 | 
            +
              version: 6.0.2.rc1
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - David Heinemeier Hansson
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2019- | 
| 11 | 
            +
            date: 2019-11-27 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: actionpack
         | 
| @@ -16,42 +16,42 @@ dependencies: | |
| 16 16 | 
             
                requirements:
         | 
| 17 17 | 
             
                - - '='
         | 
| 18 18 | 
             
                  - !ruby/object:Gem::Version
         | 
| 19 | 
            -
                    version: 6.0. | 
| 19 | 
            +
                    version: 6.0.2.rc1
         | 
| 20 20 | 
             
              type: :runtime
         | 
| 21 21 | 
             
              prerelease: false
         | 
| 22 22 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 23 23 | 
             
                requirements:
         | 
| 24 24 | 
             
                - - '='
         | 
| 25 25 | 
             
                  - !ruby/object:Gem::Version
         | 
| 26 | 
            -
                    version: 6.0. | 
| 26 | 
            +
                    version: 6.0.2.rc1
         | 
| 27 27 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 28 28 | 
             
              name: actionview
         | 
| 29 29 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 30 30 | 
             
                requirements:
         | 
| 31 31 | 
             
                - - '='
         | 
| 32 32 | 
             
                  - !ruby/object:Gem::Version
         | 
| 33 | 
            -
                    version: 6.0. | 
| 33 | 
            +
                    version: 6.0.2.rc1
         | 
| 34 34 | 
             
              type: :runtime
         | 
| 35 35 | 
             
              prerelease: false
         | 
| 36 36 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 37 37 | 
             
                requirements:
         | 
| 38 38 | 
             
                - - '='
         | 
| 39 39 | 
             
                  - !ruby/object:Gem::Version
         | 
| 40 | 
            -
                    version: 6.0. | 
| 40 | 
            +
                    version: 6.0.2.rc1
         | 
| 41 41 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 42 42 | 
             
              name: activejob
         | 
| 43 43 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 44 44 | 
             
                requirements:
         | 
| 45 45 | 
             
                - - '='
         | 
| 46 46 | 
             
                  - !ruby/object:Gem::Version
         | 
| 47 | 
            -
                    version: 6.0. | 
| 47 | 
            +
                    version: 6.0.2.rc1
         | 
| 48 48 | 
             
              type: :runtime
         | 
| 49 49 | 
             
              prerelease: false
         | 
| 50 50 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 51 51 | 
             
                requirements:
         | 
| 52 52 | 
             
                - - '='
         | 
| 53 53 | 
             
                  - !ruby/object:Gem::Version
         | 
| 54 | 
            -
                    version: 6.0. | 
| 54 | 
            +
                    version: 6.0.2.rc1
         | 
| 55 55 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 56 56 | 
             
              name: mail
         | 
| 57 57 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| @@ -118,12 +118,15 @@ files: | |
| 118 118 | 
             
            - lib/rails/generators/mailer/mailer_generator.rb
         | 
| 119 119 | 
             
            - lib/rails/generators/mailer/templates/application_mailer.rb.tt
         | 
| 120 120 | 
             
            - lib/rails/generators/mailer/templates/mailer.rb.tt
         | 
| 121 | 
            -
            homepage:  | 
| 121 | 
            +
            homepage: https://rubyonrails.org
         | 
| 122 122 | 
             
            licenses:
         | 
| 123 123 | 
             
            - MIT
         | 
| 124 124 | 
             
            metadata:
         | 
| 125 | 
            -
               | 
| 126 | 
            -
              changelog_uri: https://github.com/rails/rails/blob/v6.0. | 
| 125 | 
            +
              bug_tracker_uri: https://github.com/rails/rails/issues
         | 
| 126 | 
            +
              changelog_uri: https://github.com/rails/rails/blob/v6.0.2.rc1/actionmailer/CHANGELOG.md
         | 
| 127 | 
            +
              documentation_uri: https://api.rubyonrails.org/v6.0.2.rc1/
         | 
| 128 | 
            +
              mailing_list_uri: https://groups.google.com/forum/#!forum/rubyonrails-talk
         | 
| 129 | 
            +
              source_code_uri: https://github.com/rails/rails/tree/v6.0.2.rc1/actionmailer
         | 
| 127 130 | 
             
            post_install_message: 
         | 
| 128 131 | 
             
            rdoc_options: []
         | 
| 129 132 | 
             
            require_paths:
         | 
| @@ -140,7 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 140 143 | 
             
                  version: 1.3.1
         | 
| 141 144 | 
             
            requirements:
         | 
| 142 145 | 
             
            - none
         | 
| 143 | 
            -
            rubygems_version: 3.0. | 
| 146 | 
            +
            rubygems_version: 3.0.3
         | 
| 144 147 | 
             
            signing_key: 
         | 
| 145 148 | 
             
            specification_version: 4
         | 
| 146 149 | 
             
            summary: Email composition and delivery framework (part of Rails).
         |