postmark-rails 0.22.0 → 0.22.1
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.
- checksums.yaml +4 -4
 - data/.circleci/config.yml +65 -0
 - data/CHANGELOG.rdoc +3 -0
 - data/Gemfile +3 -1
 - data/README.md +32 -31
 - data/lib/postmark-rails/version.rb +1 -1
 - data/postmark-rails.gemspec +1 -2
 - data/spec/unit/templated_mailer_spec.rb +5 -5
 - metadata +6 -17
 - data/.travis/setup.sh +0 -13
 - data/.travis.yml +0 -93
 - data/gemfiles/Gemfile.actionmailer-3.0.x +0 -14
 - data/gemfiles/Gemfile.actionmailer-3.2.x +0 -15
 - data/gemfiles/Gemfile.actionmailer-4.0.x +0 -12
 - data/gemfiles/Gemfile.actionmailer-4.1.x +0 -12
 - data/gemfiles/Gemfile.actionmailer-4.2.x +0 -12
 - data/gemfiles/Gemfile.actionmailer-5.0.x +0 -11
 - data/gemfiles/Gemfile.actionmailer-5.1.x +0 -11
 - data/gemfiles/Gemfile.actionmailer-5.2.x +0 -11
 - data/gemfiles/Gemfile.actionmailer-6.0.x +0 -11
 - data/gemfiles/Gemfile.actionmailer-7.0.x +0 -11
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 2cae4b6f4ec05353f6f8876e57fcce7bc71693a118b6b8f2cdfa9df1f44b24ef
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: c269ad10fc7f285eeb883588b775784c074859be9cfe26d636ce7b7d5edca238
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 07ad01f2a5fa409df9d27a89a816d2eb5dcb049ac46a9ab8eed8d15ffa3499f1c0eb6731e34a7553fbfc12895dad6a94116503930aa5c67b8d80d03af5ec1a15
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 69b6b42988ee76c2766c6f46d37005ddd030fb4570b6c418d6617c77573f06e07c6c81153b1a4758d9a320ecc0e4814d2e5991fa965f3fbafefda0cbe7a0e8a6
         
     | 
| 
         @@ -0,0 +1,65 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            version: 2.1
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            orbs:
         
     | 
| 
      
 4 
     | 
    
         
            +
              ruby: circleci/ruby@1.8.0
         
     | 
| 
      
 5 
     | 
    
         
            +
             
     | 
| 
      
 6 
     | 
    
         
            +
            jobs:
         
     | 
| 
      
 7 
     | 
    
         
            +
              build:
         
     | 
| 
      
 8 
     | 
    
         
            +
                parameters:
         
     | 
| 
      
 9 
     | 
    
         
            +
                  ruby_version:
         
     | 
| 
      
 10 
     | 
    
         
            +
                    type: string
         
     | 
| 
      
 11 
     | 
    
         
            +
                  rails_version:
         
     | 
| 
      
 12 
     | 
    
         
            +
                    type: string
         
     | 
| 
      
 13 
     | 
    
         
            +
                  mime_types_version:
         
     | 
| 
      
 14 
     | 
    
         
            +
                    type: string
         
     | 
| 
      
 15 
     | 
    
         
            +
                    default: "~> 3.1"
         
     | 
| 
      
 16 
     | 
    
         
            +
                docker:
         
     | 
| 
      
 17 
     | 
    
         
            +
                  - image: cimg/ruby:<< parameters.ruby_version >>
         
     | 
| 
      
 18 
     | 
    
         
            +
                executor: ruby/default
         
     | 
| 
      
 19 
     | 
    
         
            +
                environment:
         
     | 
| 
      
 20 
     | 
    
         
            +
                  RAILS_TEST_VERSION: << parameters.rails_version >>
         
     | 
| 
      
 21 
     | 
    
         
            +
                  MIME_TYPES_TEST_VERSION: << parameters.mime_types_version >>
         
     | 
| 
      
 22 
     | 
    
         
            +
                steps:
         
     | 
| 
      
 23 
     | 
    
         
            +
                  - checkout
         
     | 
| 
      
 24 
     | 
    
         
            +
                  - ruby/install-deps:
         
     | 
| 
      
 25 
     | 
    
         
            +
                      bundler-version: 2.2.3
         
     | 
| 
      
 26 
     | 
    
         
            +
                      path: vendor/bundle/rails-<< parameters.rails_version>>
         
     | 
| 
      
 27 
     | 
    
         
            +
                      with-cache: false # requires Gemfile.lock
         
     | 
| 
      
 28 
     | 
    
         
            +
                  - run:
         
     | 
| 
      
 29 
     | 
    
         
            +
                      name: Run tests
         
     | 
| 
      
 30 
     | 
    
         
            +
                      command: bundle exec rake spec
         
     | 
| 
      
 31 
     | 
    
         
            +
             
     | 
| 
      
 32 
     | 
    
         
            +
            workflows:
         
     | 
| 
      
 33 
     | 
    
         
            +
              tests:
         
     | 
| 
      
 34 
     | 
    
         
            +
                jobs:
         
     | 
| 
      
 35 
     | 
    
         
            +
                  - build:
         
     | 
| 
      
 36 
     | 
    
         
            +
                      matrix:
         
     | 
| 
      
 37 
     | 
    
         
            +
                        alias: Rails 3
         
     | 
| 
      
 38 
     | 
    
         
            +
                        parameters:
         
     | 
| 
      
 39 
     | 
    
         
            +
                          rails_version: ["~> 3.0", "~> 3.2"]
         
     | 
| 
      
 40 
     | 
    
         
            +
                          ruby_version: ["2.5"]
         
     | 
| 
      
 41 
     | 
    
         
            +
                          mime_types_version: ["1.25.1"]
         
     | 
| 
      
 42 
     | 
    
         
            +
                  - build:
         
     | 
| 
      
 43 
     | 
    
         
            +
                      matrix:
         
     | 
| 
      
 44 
     | 
    
         
            +
                        alias: Rails 4
         
     | 
| 
      
 45 
     | 
    
         
            +
                        parameters:
         
     | 
| 
      
 46 
     | 
    
         
            +
                          rails_version: ["~> 4.0", "~> 4.1", "~> 4.2"]
         
     | 
| 
      
 47 
     | 
    
         
            +
                          ruby_version: ["2.5"]
         
     | 
| 
      
 48 
     | 
    
         
            +
                  - build:
         
     | 
| 
      
 49 
     | 
    
         
            +
                      matrix:
         
     | 
| 
      
 50 
     | 
    
         
            +
                        alias: Rails 5
         
     | 
| 
      
 51 
     | 
    
         
            +
                        parameters:
         
     | 
| 
      
 52 
     | 
    
         
            +
                          rails_version: ["~> 5.0", "~> 5.1", "~> 5.2"]
         
     | 
| 
      
 53 
     | 
    
         
            +
                          ruby_version: ["2.5", "2.6", "2.7"]
         
     | 
| 
      
 54 
     | 
    
         
            +
                  - build:
         
     | 
| 
      
 55 
     | 
    
         
            +
                      matrix:
         
     | 
| 
      
 56 
     | 
    
         
            +
                        alias: Rails 6
         
     | 
| 
      
 57 
     | 
    
         
            +
                        parameters:
         
     | 
| 
      
 58 
     | 
    
         
            +
                          rails_version: ["~> 6.0"]
         
     | 
| 
      
 59 
     | 
    
         
            +
                          ruby_version: ["2.5", "2.6", "2.7"]
         
     | 
| 
      
 60 
     | 
    
         
            +
                  - build:
         
     | 
| 
      
 61 
     | 
    
         
            +
                      matrix:
         
     | 
| 
      
 62 
     | 
    
         
            +
                        alias: Rails 7
         
     | 
| 
      
 63 
     | 
    
         
            +
                        parameters:
         
     | 
| 
      
 64 
     | 
    
         
            +
                          rails_version: ["~> 7.0"]
         
     | 
| 
      
 65 
     | 
    
         
            +
                          ruby_version: ["2.7"]
         
     | 
    
        data/CHANGELOG.rdoc
    CHANGED
    
    
    
        data/Gemfile
    CHANGED
    
    
    
        data/README.md
    CHANGED
    
    | 
         @@ -4,7 +4,8 @@ 
     | 
|
| 
       4 
4 
     | 
    
         | 
| 
       5 
5 
     | 
    
         
             
            # Postmark Rails Gem
         
     | 
| 
       6 
6 
     | 
    
         | 
| 
       7 
     | 
    
         
            -
            [](https://dl.circleci.com/status-badge/redirect/gh/ActiveCampaign/postmark-rails/tree/main)
         
     | 
| 
      
 8 
     | 
    
         
            +
            [](https://codeclimate.com/github/ActiveCampaign/postmark-rails)
         
     | 
| 
       8 
9 
     | 
    
         
             
            [](http://www.opensource.org/licenses/MIT)
         
     | 
| 
       9 
10 
     | 
    
         
             
            [](https://badge.fury.io/rb/postmark-rails)
         
     | 
| 
       10 
11 
     | 
    
         | 
| 
         @@ -16,74 +17,74 @@ The gem has been created for fast implementation and fully supports all of [Post 
     | 
|
| 
       16 
17 
     | 
    
         | 
| 
       17 
18 
     | 
    
         
             
            ## Usage
         
     | 
| 
       18 
19 
     | 
    
         | 
| 
       19 
     | 
    
         
            -
            Please see the [wiki](https://github.com/ 
     | 
| 
      
 20 
     | 
    
         
            +
            Please see the [wiki](https://github.com/ActiveCampaign/postmark-rails/wiki) for detailed instructions about library features.
         
     | 
| 
       20 
21 
     | 
    
         
             
            For details about Postmark API in general, please check out [Postmark developer docs](https://postmarkapp.com/developer).
         
     | 
| 
       21 
22 
     | 
    
         | 
| 
       22 
23 
     | 
    
         
             
            ## Requirements
         
     | 
| 
       23 
24 
     | 
    
         | 
| 
       24 
25 
     | 
    
         
             
            You will need a Postmark account, server and sender signature (or verified domain) set up to use it.
         
     | 
| 
       25 
     | 
    
         
            -
            For details about setup, check out [wiki pages](https://github.com/ 
     | 
| 
      
 26 
     | 
    
         
            +
            For details about setup, check out [wiki pages](https://github.com/ActiveCampaign/postmark-rails/wiki/Getting-Started).
         
     | 
| 
       26 
27 
     | 
    
         | 
| 
       27 
     | 
    
         
            -
            Also you will need a [postmark gem](https://github.com/ 
     | 
| 
      
 28 
     | 
    
         
            +
            Also you will need a [postmark gem](https://github.com/ActiveCampaign/postmark-gem) version 1.0 and higher is required.
         
     | 
| 
       28 
29 
     | 
    
         | 
| 
       29 
30 
     | 
    
         
             
            ### Supported Rails Versions
         
     | 
| 
       30 
31 
     | 
    
         | 
| 
       31 
     | 
    
         
            -
             
     | 
| 
       32 
     | 
    
         
            -
             
     | 
| 
       33 
     | 
    
         
            -
             
     | 
| 
       34 
     | 
    
         
            -
             
     | 
| 
       35 
     | 
    
         
            -
             
     | 
| 
      
 32 
     | 
    
         
            +
            - Rails 7.0
         
     | 
| 
      
 33 
     | 
    
         
            +
            - Rails 6.0
         
     | 
| 
      
 34 
     | 
    
         
            +
            - Rails 5.0
         
     | 
| 
      
 35 
     | 
    
         
            +
            - Rails 4.x
         
     | 
| 
      
 36 
     | 
    
         
            +
            - Rails 3.x
         
     | 
| 
       36 
37 
     | 
    
         | 
| 
       37 
     | 
    
         
            -
            For Rails 2.3 please take a look at [version 0.4](https://github.com/ 
     | 
| 
      
 38 
     | 
    
         
            +
            For Rails 2.3 please take a look at [version 0.4](https://github.com/ActiveCampaign/postmark-rails/tree/v0.4.2).
         
     | 
| 
       38 
39 
     | 
    
         
             
            It may miss some new features, but receives all required bug fixes and other support if needed.
         
     | 
| 
       39 
40 
     | 
    
         | 
| 
       40 
41 
     | 
    
         
             
            ## Installation
         
     | 
| 
       41 
42 
     | 
    
         | 
| 
       42 
43 
     | 
    
         
             
            Add `postmark-rails` to your Gemfile and run `bundle install`.
         
     | 
| 
       43 
44 
     | 
    
         | 
| 
       44 
     | 
    
         
            -
            ``` 
     | 
| 
      
 45 
     | 
    
         
            +
            ```ruby
         
     | 
| 
       45 
46 
     | 
    
         
             
            gem 'postmark-rails'
         
     | 
| 
       46 
47 
     | 
    
         
             
            ```
         
     | 
| 
       47 
48 
     | 
    
         | 
| 
       48 
     | 
    
         
            -
             
     | 
| 
       49 
     | 
    
         
            -
             
     | 
| 
       50 
49 
     | 
    
         
             
            ## Rails 6-7
         
     | 
| 
      
 50 
     | 
    
         
            +
             
     | 
| 
       51 
51 
     | 
    
         
             
            Save your Postmark Server API Token to [config/credentials.yml.enc](https://guides.rubyonrails.org/security.html#custom-credentials):
         
     | 
| 
       52 
52 
     | 
    
         | 
| 
       53 
53 
     | 
    
         
             
            run `rails secret`, then run `rails credentials:edit` and add:
         
     | 
| 
       54 
54 
     | 
    
         | 
| 
       55 
     | 
    
         
            -
            ``` 
     | 
| 
      
 55 
     | 
    
         
            +
            ```yaml
         
     | 
| 
       56 
56 
     | 
    
         
             
            postmark_api_token: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
         
     | 
| 
       57 
57 
     | 
    
         
             
            ```
         
     | 
| 
      
 58 
     | 
    
         
            +
             
     | 
| 
       58 
59 
     | 
    
         
             
            Set Postmark as your preferred mail delivery method via `config/application.rb`:
         
     | 
| 
       59 
60 
     | 
    
         | 
| 
       60 
     | 
    
         
            -
            ``` 
     | 
| 
      
 61 
     | 
    
         
            +
            ```ruby
         
     | 
| 
       61 
62 
     | 
    
         
             
            config.action_mailer.delivery_method = :postmark
         
     | 
| 
       62 
63 
     | 
    
         
             
            config.action_mailer.postmark_settings = { api_token: Rails.application.credentials.postmark_api_token }
         
     | 
| 
       63 
64 
     | 
    
         
             
            ```
         
     | 
| 
       64 
65 
     | 
    
         | 
| 
       65 
66 
     | 
    
         
             
            ## Rails 3-5
         
     | 
| 
      
 67 
     | 
    
         
            +
             
     | 
| 
       66 
68 
     | 
    
         
             
            Save your Postmark Server API token to [config/secrets.yml](http://guides.rubyonrails.org/4_1_release_notes.html#config-secrets-yml).
         
     | 
| 
       67 
69 
     | 
    
         | 
| 
       68 
     | 
    
         
            -
            ``` 
     | 
| 
      
 70 
     | 
    
         
            +
            ```yaml
         
     | 
| 
       69 
71 
     | 
    
         
             
            postmark_api_token: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
         
     | 
| 
       70 
72 
     | 
    
         
             
            ```
         
     | 
| 
       71 
73 
     | 
    
         | 
| 
       72 
74 
     | 
    
         
             
            Set Postmark as your preferred mail delivery method via `config/application.rb`:
         
     | 
| 
       73 
75 
     | 
    
         | 
| 
       74 
     | 
    
         
            -
            ``` 
     | 
| 
      
 76 
     | 
    
         
            +
            ```ruby
         
     | 
| 
       75 
77 
     | 
    
         
             
            config.action_mailer.delivery_method = :postmark
         
     | 
| 
       76 
78 
     | 
    
         
             
            config.action_mailer.postmark_settings = { :api_token => Rails.application.secrets.postmark_api_token }
         
     | 
| 
       77 
79 
     | 
    
         
             
            ```
         
     | 
| 
       78 
80 
     | 
    
         | 
| 
       79 
     | 
    
         
            -
             
     | 
| 
       80 
     | 
    
         
            -
             
     | 
| 
       81 
     | 
    
         
            -
            **Note**: The `postmark_settings` hash can contain [any options](https://github.com/wildbit/postmark-gem#communicating-with-the-api) supported by `Postmark::ApiClient`.
         
     | 
| 
      
 81 
     | 
    
         
            +
            ---
         
     | 
| 
       82 
82 
     | 
    
         | 
| 
      
 83 
     | 
    
         
            +
            **Note**: The `postmark_settings` hash can contain [any options](https://github.com/ActiveCampaign/postmark-gem#communicating-with-the-api) supported by `Postmark::ApiClient`.
         
     | 
| 
       83 
84 
     | 
    
         | 
| 
       84 
85 
     | 
    
         
             
            ### Additional information
         
     | 
| 
       85 
86 
     | 
    
         | 
| 
       86 
     | 
    
         
            -
            Looking for the advanced usage examples? Check out [the documentation](https://github.com/ 
     | 
| 
      
 87 
     | 
    
         
            +
            Looking for the advanced usage examples? Check out [the documentation](https://github.com/ActiveCampaign/postmark-gem/blob/main/README.md) for the [postmark gem](https://github.com/ActiveCampaign/postmark-gem).
         
     | 
| 
       87 
88 
     | 
    
         
             
            The `postmark-rails` gem is built on top of it, so you can benefit from all it's features.
         
     | 
| 
       88 
89 
     | 
    
         | 
| 
       89 
90 
     | 
    
         
             
            ## Note on Patches/Pull Requests
         
     | 
| 
         @@ -92,14 +93,14 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) file for details. 
     | 
|
| 
       92 
93 
     | 
    
         | 
| 
       93 
94 
     | 
    
         
             
            ## Authors & Contributors
         
     | 
| 
       94 
95 
     | 
    
         | 
| 
       95 
     | 
    
         
            -
             
     | 
| 
       96 
     | 
    
         
            -
             
     | 
| 
       97 
     | 
    
         
            -
             
     | 
| 
       98 
     | 
    
         
            -
             
     | 
| 
       99 
     | 
    
         
            -
             
     | 
| 
       100 
     | 
    
         
            -
             
     | 
| 
       101 
     | 
    
         
            -
             
     | 
| 
       102 
     | 
    
         
            -
             
     | 
| 
      
 96 
     | 
    
         
            +
            - Artem Chistyakov
         
     | 
| 
      
 97 
     | 
    
         
            +
            - Petyo Ivanov
         
     | 
| 
      
 98 
     | 
    
         
            +
            - Ilya Sabanin
         
     | 
| 
      
 99 
     | 
    
         
            +
            - Hristo Deshev
         
     | 
| 
      
 100 
     | 
    
         
            +
            - Randy Schmidt
         
     | 
| 
      
 101 
     | 
    
         
            +
            - Chris Williams
         
     | 
| 
      
 102 
     | 
    
         
            +
            - Nicolás Sanguinetti
         
     | 
| 
      
 103 
     | 
    
         
            +
            - Laust Rud Jacobsen (rud)
         
     | 
| 
       103 
104 
     | 
    
         | 
| 
       104 
105 
     | 
    
         
             
            ## Issues & Comments
         
     | 
| 
       105 
106 
     | 
    
         | 
| 
         @@ -109,8 +110,8 @@ Please leave all comments, bugs, requests and issues on the Issues page. 
     | 
|
| 
       109 
110 
     | 
    
         
             
            ## License
         
     | 
| 
       110 
111 
     | 
    
         | 
| 
       111 
112 
     | 
    
         
             
            The Postmark Rails gem is licensed under the [MIT](http://www.opensource.org/licenses/mit-license.php) license.
         
     | 
| 
       112 
     | 
    
         
            -
            Refer to the [LICENSE](https://github.com/ 
     | 
| 
      
 113 
     | 
    
         
            +
            Refer to the [LICENSE](https://github.com/ActiveCampaign/postmark-rails/blob/main/LICENSE) file for more information.
         
     | 
| 
       113 
114 
     | 
    
         | 
| 
       114 
115 
     | 
    
         
             
            ## Copyright
         
     | 
| 
       115 
116 
     | 
    
         | 
| 
       116 
     | 
    
         
            -
            Copyright ©  
     | 
| 
      
 117 
     | 
    
         
            +
            Copyright © 2022 ActiveCampaign LLC.
         
     | 
    
        data/postmark-rails.gemspec
    CHANGED
    
    | 
         @@ -6,12 +6,11 @@ Gem::Specification.new do |s| 
     | 
|
| 
       6 
6 
     | 
    
         
             
              s.version = PostmarkRails::VERSION
         
     | 
| 
       7 
7 
     | 
    
         
             
              s.authors = ["Petyo Ivanov", "Ilya Sabanin", "Artem Chistyakov"]
         
     | 
| 
       8 
8 
     | 
    
         
             
              s.description = %q{The Postmark Rails Gem is a drop-in plug-in for ActionMailer to send emails via Postmark, an email delivery service for web apps.}
         
     | 
| 
       9 
     | 
    
         
            -
              s.email = %q{tema@wildbit.com}
         
     | 
| 
       10 
9 
     | 
    
         
             
              s.homepage = %q{http://postmarkapp.com}
         
     | 
| 
       11 
10 
     | 
    
         
             
              s.summary = %q{Postmark adapter for ActionMailer}
         
     | 
| 
       12 
11 
     | 
    
         | 
| 
       13 
12 
     | 
    
         
             
              s.metadata = {
         
     | 
| 
       14 
     | 
    
         
            -
                "source_code_uri" => "https://github.com/ 
     | 
| 
      
 13 
     | 
    
         
            +
                "source_code_uri" => "https://github.com/ActiveCampaign/postmark-rails"
         
     | 
| 
       15 
14 
     | 
    
         
             
              }
         
     | 
| 
       16 
15 
     | 
    
         | 
| 
       17 
16 
     | 
    
         
             
              s.extra_rdoc_files = [
         
     | 
| 
         @@ -16,7 +16,7 @@ RSpec.describe PostmarkRails::TemplatedMailer do 
     | 
|
| 
       16 
16 
     | 
    
         
             
                let(:mailer) do
         
     | 
| 
       17 
17 
     | 
    
         
             
                  make_mailer(described_class) do
         
     | 
| 
       18 
18 
     | 
    
         
             
                    def test_message
         
     | 
| 
       19 
     | 
    
         
            -
                      mail :from => 'sender@ 
     | 
| 
      
 19 
     | 
    
         
            +
                      mail :from => 'sender@postmarkapp.com', :to => 'recipient@postmarkapp.com'
         
     | 
| 
       20 
20 
     | 
    
         
             
                    end
         
     | 
| 
       21 
21 
     | 
    
         
             
                  end
         
     | 
| 
       22 
22 
     | 
    
         
             
                end
         
     | 
| 
         @@ -28,8 +28,8 @@ RSpec.describe PostmarkRails::TemplatedMailer do 
     | 
|
| 
       28 
28 
     | 
    
         
             
                let(:mailer) do
         
     | 
| 
       29 
29 
     | 
    
         
             
                  make_mailer(described_class) do
         
     | 
| 
       30 
30 
     | 
    
         
             
                    def test_message
         
     | 
| 
       31 
     | 
    
         
            -
                      mail :from => 'sender@ 
     | 
| 
       32 
     | 
    
         
            -
                           :to => 'recipient@ 
     | 
| 
      
 31 
     | 
    
         
            +
                      mail :from => 'sender@postmarkapp.com',
         
     | 
| 
      
 32 
     | 
    
         
            +
                           :to => 'recipient@postmarkapp.com',
         
     | 
| 
       33 
33 
     | 
    
         
             
                           :postmark_template_alias => 'custom_template'
         
     | 
| 
       34 
34 
     | 
    
         
             
                    end
         
     | 
| 
       35 
35 
     | 
    
         
             
                  end
         
     | 
| 
         @@ -43,8 +43,8 @@ RSpec.describe PostmarkRails::TemplatedMailer do 
     | 
|
| 
       43 
43 
     | 
    
         
             
                  make_mailer(described_class) do
         
     | 
| 
       44 
44 
     | 
    
         
             
                    def test_message
         
     | 
| 
       45 
45 
     | 
    
         
             
                      self.template_model = { :foo => 'bar' }
         
     | 
| 
       46 
     | 
    
         
            -
                      mail :from => 'sender@ 
     | 
| 
       47 
     | 
    
         
            -
                           :to => 'recipient@ 
     | 
| 
      
 46 
     | 
    
         
            +
                      mail :from => 'sender@postmarkapp.com',
         
     | 
| 
      
 47 
     | 
    
         
            +
                           :to => 'recipient@postmarkapp.com'
         
     | 
| 
       48 
48 
     | 
    
         
             
                    end
         
     | 
| 
       49 
49 
     | 
    
         
             
                  end
         
     | 
| 
       50 
50 
     | 
    
         
             
                end
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: postmark-rails
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0.22. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.22.1
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Petyo Ivanov
         
     | 
| 
         @@ -10,7 +10,7 @@ authors: 
     | 
|
| 
       10 
10 
     | 
    
         
             
            autorequire:
         
     | 
| 
       11 
11 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       12 
12 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       13 
     | 
    
         
            -
            date: 2022- 
     | 
| 
      
 13 
     | 
    
         
            +
            date: 2022-06-29 00:00:00.000000000 Z
         
     | 
| 
       14 
14 
     | 
    
         
             
            dependencies:
         
     | 
| 
       15 
15 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       16 
16 
     | 
    
         
             
              name: actionmailer
         
     | 
| 
         @@ -62,33 +62,22 @@ dependencies: 
     | 
|
| 
       62 
62 
     | 
    
         
             
                    version: '0'
         
     | 
| 
       63 
63 
     | 
    
         
             
            description: The Postmark Rails Gem is a drop-in plug-in for ActionMailer to send
         
     | 
| 
       64 
64 
     | 
    
         
             
              emails via Postmark, an email delivery service for web apps.
         
     | 
| 
       65 
     | 
    
         
            -
            email: 
     | 
| 
      
 65 
     | 
    
         
            +
            email:
         
     | 
| 
       66 
66 
     | 
    
         
             
            executables: []
         
     | 
| 
       67 
67 
     | 
    
         
             
            extensions: []
         
     | 
| 
       68 
68 
     | 
    
         
             
            extra_rdoc_files:
         
     | 
| 
       69 
69 
     | 
    
         
             
            - LICENSE
         
     | 
| 
       70 
70 
     | 
    
         
             
            - README.md
         
     | 
| 
       71 
71 
     | 
    
         
             
            files:
         
     | 
| 
      
 72 
     | 
    
         
            +
            - ".circleci/config.yml"
         
     | 
| 
       72 
73 
     | 
    
         
             
            - ".document"
         
     | 
| 
       73 
74 
     | 
    
         
             
            - ".gitignore"
         
     | 
| 
       74 
     | 
    
         
            -
            - ".travis.yml"
         
     | 
| 
       75 
     | 
    
         
            -
            - ".travis/setup.sh"
         
     | 
| 
       76 
75 
     | 
    
         
             
            - CHANGELOG.rdoc
         
     | 
| 
       77 
76 
     | 
    
         
             
            - CONTRIBUTING.md
         
     | 
| 
       78 
77 
     | 
    
         
             
            - Gemfile
         
     | 
| 
       79 
78 
     | 
    
         
             
            - LICENSE
         
     | 
| 
       80 
79 
     | 
    
         
             
            - README.md
         
     | 
| 
       81 
80 
     | 
    
         
             
            - Rakefile
         
     | 
| 
       82 
     | 
    
         
            -
            - gemfiles/Gemfile.actionmailer-3.0.x
         
     | 
| 
       83 
     | 
    
         
            -
            - gemfiles/Gemfile.actionmailer-3.2.x
         
     | 
| 
       84 
     | 
    
         
            -
            - gemfiles/Gemfile.actionmailer-4.0.x
         
     | 
| 
       85 
     | 
    
         
            -
            - gemfiles/Gemfile.actionmailer-4.1.x
         
     | 
| 
       86 
     | 
    
         
            -
            - gemfiles/Gemfile.actionmailer-4.2.x
         
     | 
| 
       87 
     | 
    
         
            -
            - gemfiles/Gemfile.actionmailer-5.0.x
         
     | 
| 
       88 
     | 
    
         
            -
            - gemfiles/Gemfile.actionmailer-5.1.x
         
     | 
| 
       89 
     | 
    
         
            -
            - gemfiles/Gemfile.actionmailer-5.2.x
         
     | 
| 
       90 
     | 
    
         
            -
            - gemfiles/Gemfile.actionmailer-6.0.x
         
     | 
| 
       91 
     | 
    
         
            -
            - gemfiles/Gemfile.actionmailer-7.0.x
         
     | 
| 
       92 
81 
     | 
    
         
             
            - lib/postmark-rails.rb
         
     | 
| 
       93 
82 
     | 
    
         
             
            - lib/postmark-rails/preview_interceptor.rb
         
     | 
| 
       94 
83 
     | 
    
         
             
            - lib/postmark-rails/railtie.rb
         
     | 
| 
         @@ -116,7 +105,7 @@ files: 
     | 
|
| 
       116 
105 
     | 
    
         
             
            homepage: http://postmarkapp.com
         
     | 
| 
       117 
106 
     | 
    
         
             
            licenses: []
         
     | 
| 
       118 
107 
     | 
    
         
             
            metadata:
         
     | 
| 
       119 
     | 
    
         
            -
              source_code_uri: https://github.com/ 
     | 
| 
      
 108 
     | 
    
         
            +
              source_code_uri: https://github.com/ActiveCampaign/postmark-rails
         
     | 
| 
       120 
109 
     | 
    
         
             
            post_install_message:
         
     | 
| 
       121 
110 
     | 
    
         
             
            rdoc_options:
         
     | 
| 
       122 
111 
     | 
    
         
             
            - "--charset=UTF-8"
         
     | 
| 
         @@ -133,7 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       133 
122 
     | 
    
         
             
                - !ruby/object:Gem::Version
         
     | 
| 
       134 
123 
     | 
    
         
             
                  version: '0'
         
     | 
| 
       135 
124 
     | 
    
         
             
            requirements: []
         
     | 
| 
       136 
     | 
    
         
            -
            rubygems_version: 3. 
     | 
| 
      
 125 
     | 
    
         
            +
            rubygems_version: 3.0.8
         
     | 
| 
       137 
126 
     | 
    
         
             
            signing_key:
         
     | 
| 
       138 
127 
     | 
    
         
             
            specification_version: 4
         
     | 
| 
       139 
128 
     | 
    
         
             
            summary: Postmark adapter for ActionMailer
         
     | 
    
        data/.travis/setup.sh
    DELETED
    
    
    
        data/.travis.yml
    DELETED
    
    | 
         @@ -1,93 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            language: ruby
         
     | 
| 
       2 
     | 
    
         
            -
            rvm:
         
     | 
| 
       3 
     | 
    
         
            -
              - 2.0.0
         
     | 
| 
       4 
     | 
    
         
            -
              - 2.1.10
         
     | 
| 
       5 
     | 
    
         
            -
              - 2.2.10
         
     | 
| 
       6 
     | 
    
         
            -
              - 2.3.8
         
     | 
| 
       7 
     | 
    
         
            -
              - 2.4.5
         
     | 
| 
       8 
     | 
    
         
            -
              - 2.5.3
         
     | 
| 
       9 
     | 
    
         
            -
              - 2.6.0
         
     | 
| 
       10 
     | 
    
         
            -
              - 2.7.0
         
     | 
| 
       11 
     | 
    
         
            -
            script: bundle exec rake spec
         
     | 
| 
       12 
     | 
    
         
            -
            gemfile:
         
     | 
| 
       13 
     | 
    
         
            -
              - Gemfile
         
     | 
| 
       14 
     | 
    
         
            -
              - gemfiles/Gemfile.actionmailer-3.0.x
         
     | 
| 
       15 
     | 
    
         
            -
              - gemfiles/Gemfile.actionmailer-3.2.x
         
     | 
| 
       16 
     | 
    
         
            -
              - gemfiles/Gemfile.actionmailer-4.0.x
         
     | 
| 
       17 
     | 
    
         
            -
              - gemfiles/Gemfile.actionmailer-4.1.x
         
     | 
| 
       18 
     | 
    
         
            -
              - gemfiles/Gemfile.actionmailer-4.2.x
         
     | 
| 
       19 
     | 
    
         
            -
              - gemfiles/Gemfile.actionmailer-5.0.x
         
     | 
| 
       20 
     | 
    
         
            -
              - gemfiles/Gemfile.actionmailer-5.1.x
         
     | 
| 
       21 
     | 
    
         
            -
              - gemfiles/Gemfile.actionmailer-5.2.x
         
     | 
| 
       22 
     | 
    
         
            -
              - gemfiles/Gemfile.actionmailer-6.0.x
         
     | 
| 
       23 
     | 
    
         
            -
              - gemfiles/Gemfile.actionmailer-7.0.x
         
     | 
| 
       24 
     | 
    
         
            -
            matrix:
         
     | 
| 
       25 
     | 
    
         
            -
              exclude:
         
     | 
| 
       26 
     | 
    
         
            -
                - rvm: 2.0.0
         
     | 
| 
       27 
     | 
    
         
            -
                  gemfile: Gemfile
         
     | 
| 
       28 
     | 
    
         
            -
                - rvm: 2.0.0
         
     | 
| 
       29 
     | 
    
         
            -
                  gemfile: gemfiles/Gemfile.actionmailer-5.0.x
         
     | 
| 
       30 
     | 
    
         
            -
                - rvm: 2.0.0
         
     | 
| 
       31 
     | 
    
         
            -
                  gemfile: gemfiles/Gemfile.actionmailer-5.1.x
         
     | 
| 
       32 
     | 
    
         
            -
                - rvm: 2.0.0
         
     | 
| 
       33 
     | 
    
         
            -
                  gemfile: gemfiles/Gemfile.actionmailer-5.2.x
         
     | 
| 
       34 
     | 
    
         
            -
                - rvm: 2.0.0
         
     | 
| 
       35 
     | 
    
         
            -
                  gemfile: gemfiles/Gemfile.actionmailer-6.0.x
         
     | 
| 
       36 
     | 
    
         
            -
                - rvm: 2.0.0
         
     | 
| 
       37 
     | 
    
         
            -
                  gemfile: gemfiles/Gemfile.actionmailer-7.0.x
         
     | 
| 
       38 
     | 
    
         
            -
             
     | 
| 
       39 
     | 
    
         
            -
                - rvm: 2.1.10
         
     | 
| 
       40 
     | 
    
         
            -
                  gemfile: Gemfile
         
     | 
| 
       41 
     | 
    
         
            -
                - rvm: 2.1.10
         
     | 
| 
       42 
     | 
    
         
            -
                  gemfile: gemfiles/Gemfile.actionmailer-5.0.x
         
     | 
| 
       43 
     | 
    
         
            -
                - rvm: 2.1.10
         
     | 
| 
       44 
     | 
    
         
            -
                  gemfile: gemfiles/Gemfile.actionmailer-5.1.x
         
     | 
| 
       45 
     | 
    
         
            -
                - rvm: 2.1.10
         
     | 
| 
       46 
     | 
    
         
            -
                  gemfile: gemfiles/Gemfile.actionmailer-5.2.x
         
     | 
| 
       47 
     | 
    
         
            -
                - rvm: 2.1.10
         
     | 
| 
       48 
     | 
    
         
            -
                  gemfile: gemfiles/Gemfile.actionmailer-6.0.x
         
     | 
| 
       49 
     | 
    
         
            -
                - rvm: 2.1.10
         
     | 
| 
       50 
     | 
    
         
            -
                  gemfile: gemfiles/Gemfile.actionmailer-7.0.x
         
     | 
| 
       51 
     | 
    
         
            -
             
     | 
| 
       52 
     | 
    
         
            -
                - rvm: 2.3.8
         
     | 
| 
       53 
     | 
    
         
            -
                  gemfile: gemfiles/Gemfile.actionmailer-6.0.x
         
     | 
| 
       54 
     | 
    
         
            -
                - rvm: 2.3.8
         
     | 
| 
       55 
     | 
    
         
            -
                  gemfile: gemfiles/Gemfile.actionmailer-7.0.x
         
     | 
| 
       56 
     | 
    
         
            -
             
     | 
| 
       57 
     | 
    
         
            -
                - rvm: 2.4.5
         
     | 
| 
       58 
     | 
    
         
            -
                  gemfile: gemfiles/Gemfile.actionmailer-6.0.x
         
     | 
| 
       59 
     | 
    
         
            -
                - rvm: 2.4.5
         
     | 
| 
       60 
     | 
    
         
            -
                  gemfile: gemfiles/Gemfile.actionmailer-7.0.x
         
     | 
| 
       61 
     | 
    
         
            -
             
     | 
| 
       62 
     | 
    
         
            -
                - rvm: 2.5.3
         
     | 
| 
       63 
     | 
    
         
            -
                  gemfile: gemfiles/Gemfile.actionmailer-3.0.x
         
     | 
| 
       64 
     | 
    
         
            -
                - rvm: 2.5.3
         
     | 
| 
       65 
     | 
    
         
            -
                  gemfile: gemfiles/Gemfile.actionmailer-3.2.x
         
     | 
| 
       66 
     | 
    
         
            -
                - rvm: 2.5.3
         
     | 
| 
       67 
     | 
    
         
            -
                  gemfile: gemfiles/Gemfile.actionmailer-7.0.x
         
     | 
| 
       68 
     | 
    
         
            -
             
     | 
| 
       69 
     | 
    
         
            -
                - rvm: 2.6.0
         
     | 
| 
       70 
     | 
    
         
            -
                  gemfile: gemfiles/Gemfile.actionmailer-3.0.x
         
     | 
| 
       71 
     | 
    
         
            -
                - rvm: 2.6.0
         
     | 
| 
       72 
     | 
    
         
            -
                  gemfile: gemfiles/Gemfile.actionmailer-3.2.x
         
     | 
| 
       73 
     | 
    
         
            -
                - rvm: 2.6.0
         
     | 
| 
       74 
     | 
    
         
            -
                  gemfile: gemfiles/Gemfile.actionmailer-4.0.x
         
     | 
| 
       75 
     | 
    
         
            -
                - rvm: 2.6.0
         
     | 
| 
       76 
     | 
    
         
            -
                  gemfile: gemfiles/Gemfile.actionmailer-4.1.x
         
     | 
| 
       77 
     | 
    
         
            -
                - rvm: 2.6.0
         
     | 
| 
       78 
     | 
    
         
            -
                  gemfile: gemfiles/Gemfile.actionmailer-4.2.x
         
     | 
| 
       79 
     | 
    
         
            -
                - rvm: 2.6.0
         
     | 
| 
       80 
     | 
    
         
            -
                  gemfile: gemfiles/Gemfile.actionmailer-7.0.x
         
     | 
| 
       81 
     | 
    
         
            -
             
     | 
| 
       82 
     | 
    
         
            -
                - rvm: 2.7.0
         
     | 
| 
       83 
     | 
    
         
            -
                  gemfile: gemfiles/Gemfile.actionmailer-3.0.x
         
     | 
| 
       84 
     | 
    
         
            -
                - rvm: 2.7.0
         
     | 
| 
       85 
     | 
    
         
            -
                  gemfile: gemfiles/Gemfile.actionmailer-3.2.x
         
     | 
| 
       86 
     | 
    
         
            -
                - rvm: 2.7.0
         
     | 
| 
       87 
     | 
    
         
            -
                  gemfile: gemfiles/Gemfile.actionmailer-4.0.x
         
     | 
| 
       88 
     | 
    
         
            -
                - rvm: 2.7.0
         
     | 
| 
       89 
     | 
    
         
            -
                  gemfile: gemfiles/Gemfile.actionmailer-4.1.x
         
     | 
| 
       90 
     | 
    
         
            -
                - rvm: 2.7.0
         
     | 
| 
       91 
     | 
    
         
            -
                  gemfile: gemfiles/Gemfile.actionmailer-4.2.x
         
     | 
| 
       92 
     | 
    
         
            -
            before_install:
         
     | 
| 
       93 
     | 
    
         
            -
              - .travis/setup.sh
         
     | 
| 
         @@ -1,14 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            source "https://rubygems.org"
         
     | 
| 
       2 
     | 
    
         
            -
             
     | 
| 
       3 
     | 
    
         
            -
            gemspec :path => '../'
         
     | 
| 
       4 
     | 
    
         
            -
             
     | 
| 
       5 
     | 
    
         
            -
            gem 'json', '< 2.0.0'
         
     | 
| 
       6 
     | 
    
         
            -
            gem 'rake', '< 11.0.0'
         
     | 
| 
       7 
     | 
    
         
            -
            gem 'postmark', '~> 1.15', :path => ENV['POSTMARK_GEM_PATH']
         
     | 
| 
       8 
     | 
    
         
            -
            gem 'actionmailer', '~> 3.0.0'
         
     | 
| 
       9 
     | 
    
         
            -
            gem 'rack-cache', '~> 1.2.0'
         
     | 
| 
       10 
     | 
    
         
            -
             
     | 
| 
       11 
     | 
    
         
            -
            group :test do
         
     | 
| 
       12 
     | 
    
         
            -
              gem 'rspec', '~> 3.7'
         
     | 
| 
       13 
     | 
    
         
            -
              gem 'mime-types', '~> 1.25.1'
         
     | 
| 
       14 
     | 
    
         
            -
            end
         
     | 
| 
         @@ -1,15 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            source "https://rubygems.org"
         
     | 
| 
       2 
     | 
    
         
            -
             
     | 
| 
       3 
     | 
    
         
            -
            gemspec :path => '../'
         
     | 
| 
       4 
     | 
    
         
            -
             
     | 
| 
       5 
     | 
    
         
            -
            gem 'json', '< 2.0.0'
         
     | 
| 
       6 
     | 
    
         
            -
            gem 'rake', '< 11.0.0'
         
     | 
| 
       7 
     | 
    
         
            -
            gem 'postmark', '~> 1.15', :path => ENV['POSTMARK_GEM_PATH']
         
     | 
| 
       8 
     | 
    
         
            -
            gem 'actionmailer', :github => 'rails', :branch => '3-2-stable'
         
     | 
| 
       9 
     | 
    
         
            -
            gem 'i18n', '~> 0.6.0'
         
     | 
| 
       10 
     | 
    
         
            -
            gem 'rack-cache', '~> 1.2.0'
         
     | 
| 
       11 
     | 
    
         
            -
             
     | 
| 
       12 
     | 
    
         
            -
            group :test do
         
     | 
| 
       13 
     | 
    
         
            -
              gem 'rspec', '~> 3.7'
         
     | 
| 
       14 
     | 
    
         
            -
              gem 'mime-types', '~> 1.25.1'
         
     | 
| 
       15 
     | 
    
         
            -
            end
         
     | 
| 
         @@ -1,12 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            source "https://rubygems.org"
         
     | 
| 
       2 
     | 
    
         
            -
             
     | 
| 
       3 
     | 
    
         
            -
            gemspec :path => '../'
         
     | 
| 
       4 
     | 
    
         
            -
             
     | 
| 
       5 
     | 
    
         
            -
            gem 'json', '< 2.0.0'
         
     | 
| 
       6 
     | 
    
         
            -
            gem 'postmark', '~> 1.15', path: ENV['POSTMARK_GEM_PATH']
         
     | 
| 
       7 
     | 
    
         
            -
            gem 'actionmailer', '~> 4.0.0'
         
     | 
| 
       8 
     | 
    
         
            -
             
     | 
| 
       9 
     | 
    
         
            -
            group :test do
         
     | 
| 
       10 
     | 
    
         
            -
              gem 'rspec', '~> 3.7'
         
     | 
| 
       11 
     | 
    
         
            -
              gem 'mime-types', '~> 1.25.1'
         
     | 
| 
       12 
     | 
    
         
            -
            end
         
     | 
| 
         @@ -1,12 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            source "https://rubygems.org"
         
     | 
| 
       2 
     | 
    
         
            -
             
     | 
| 
       3 
     | 
    
         
            -
            gemspec :path => '../'
         
     | 
| 
       4 
     | 
    
         
            -
             
     | 
| 
       5 
     | 
    
         
            -
            gem 'json', '< 2.0.0'
         
     | 
| 
       6 
     | 
    
         
            -
            gem 'postmark', '~> 1.15', path: ENV['POSTMARK_GEM_PATH']
         
     | 
| 
       7 
     | 
    
         
            -
            gem 'actionmailer', '~> 4.1.0'
         
     | 
| 
       8 
     | 
    
         
            -
             
     | 
| 
       9 
     | 
    
         
            -
            group :test do
         
     | 
| 
       10 
     | 
    
         
            -
              gem 'rspec', '~> 3.7'
         
     | 
| 
       11 
     | 
    
         
            -
              gem 'mime-types', '~> 1.25.1'
         
     | 
| 
       12 
     | 
    
         
            -
            end
         
     | 
| 
         @@ -1,12 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            source "https://rubygems.org"
         
     | 
| 
       2 
     | 
    
         
            -
             
     | 
| 
       3 
     | 
    
         
            -
            gemspec :path => '../'
         
     | 
| 
       4 
     | 
    
         
            -
             
     | 
| 
       5 
     | 
    
         
            -
            gem 'json', '< 2.0.0'
         
     | 
| 
       6 
     | 
    
         
            -
            gem 'postmark', '~> 1.15', path: ENV['POSTMARK_GEM_PATH']
         
     | 
| 
       7 
     | 
    
         
            -
            gem 'actionmailer', '~> 4.2.0'
         
     | 
| 
       8 
     | 
    
         
            -
             
     | 
| 
       9 
     | 
    
         
            -
            group :test do
         
     | 
| 
       10 
     | 
    
         
            -
              gem 'rspec', '~> 3.7'
         
     | 
| 
       11 
     | 
    
         
            -
              gem 'mime-types', '~> 1.25.1'
         
     | 
| 
       12 
     | 
    
         
            -
            end
         
     |