mandrill_mailer 1.7.1 → 1.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 05eb7c84f82b471a727403aa3737a8be9489bc516fd875a97a02bae7c42bb6a9
4
- data.tar.gz: d399e991ace1c775311c4bd1b278ae63eb775c3b5c9188a391dfee67fc250022
3
+ metadata.gz: 440fbc8df529fb6d5818f2a4dc241d23dcabbfc70dc42416145ac587546ac2b5
4
+ data.tar.gz: 5fd3ce65fd871a8990a4e9a566a513d9b1783771a72d29bdffcbb0eeecd783e9
5
5
  SHA512:
6
- metadata.gz: c2a5011a4579fdff322636fde429bcbeadd3f4fb0a31563e9baf904240231c9f77599688bc7c50e5e90092f5754f3de0b67e40c82295434949785f51a6d2cc42
7
- data.tar.gz: 0d8cd1b3457ba7d026396f5d715e733409076a4267b3a91f9de8c00dbe22375932b41d7a14742ba646cf0eb7f8ab820522ef9003a6478ee25ce05f776571e781
6
+ metadata.gz: a5688e873e80045743da3b417cf5c4d21d877cf8d8c7c32840fb0b9a9e3249638e80a03fc6e2d2b8599b36f959105f8f94825ba8c8530900f999ff53b575898a
7
+ data.tar.gz: 46dd668deff79e85426447c26049fd77408708abdd658da273bb11a10c8e60622bee3fd6cf536f7972918597e0a0805cd5aa2c8b9df24744a2a77e38f9774412
@@ -0,0 +1,28 @@
1
+ name: build
2
+ on: [push, pull_request]
3
+ jobs:
4
+ build:
5
+ runs-on: ubuntu-latest
6
+ strategy:
7
+ matrix:
8
+ os: [ubuntu]
9
+ ruby:
10
+ - 2.0
11
+ - 2.1
12
+ - 2.2
13
+ - 2.3
14
+ - 2.4
15
+ - 2.5
16
+ - 2.6
17
+ - 2.7
18
+ - 3.0
19
+ steps:
20
+ - uses: actions/checkout@v2
21
+ - uses: ruby/setup-ruby@v1
22
+ with:
23
+ ruby-version: ${{ matrix.ruby }}
24
+ bundler-cache: true
25
+ - name: "bundle install"
26
+ run: bundle install --jobs 4 --retry 3
27
+ - name: "rspec"
28
+ run: bundle exec rspec spec/
data/.travis.yml CHANGED
@@ -2,9 +2,14 @@ language: ruby
2
2
  sudo: false
3
3
  cache: bundler
4
4
  rvm:
5
- - 2.0.0-p598
5
+ - 2.0.0-p648
6
6
  - 2.1.0
7
7
  - 2.2.0
8
+ - 2.3.8
9
+ - 2.4.5
10
+ - 2.5.3
11
+ - 2.6.1
12
+ - 2.7.1
8
13
 
9
14
  script:
10
15
  - bundle exec rspec spec/
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
  All notable changes to this project will be documented in this file.
3
3
  This project adheres to [Semantic Versioning](http://semver.org/).
4
4
 
5
+ # Unreleased
6
+
7
+ ## 1.8.0 - 2021-03-18
8
+ - Support Ruby 3.0.0 [#142](https://github.com/renz45/mandrill_mailer/pull/142) (via @berkos)
9
+ - Allow symbols in vars [#140](https://github.com/renz45/mandrill_mailer/pull/140) (via @raphaelpra)
10
+
5
11
  ## 1.7.1 - 2018-10-06
6
12
  - Fix rspec matcher: https://github.com/renz45/mandrill_mailer/pull/136
7
13
 
data/README.md CHANGED
@@ -1,7 +1,6 @@
1
1
  # Mandrill Mailer
2
- [![Build Status](https://travis-ci.org/renz45/mandrill_mailer.svg)](https://travis-ci.org/renz45/mandrill_mailer) [![Gem Version](http://img.shields.io/gem/v/mandrill_mailer.svg)](https://rubygems.org/gems/mandrill_mailer)
3
- [![Code Climate](http://img.shields.io/codeclimate/github/renz45/mandrill_mailer.svg)](https://codeclimate.com/github/renz45/mandrill_mailer)
4
- [![Dependencies](http://img.shields.io/gemnasium/renz45/mandrill_mailer.svg)](https://gemnasium.com/renz45/mandrill_mailer) [![Inline Documentation](http://inch-ci.org/github/renz45/mandrill_mailer.svg?branch=master)](http://inch-ci.org/github/renz45/mandrill_mailer)
2
+ [![Build Status](https://img.shields.io/github/workflow/status/renz45/mandrill_mailer/build.svg)](https://github.com/renz45/mandrill_mailer/actions/workflows/tests.yml) [![Gem Version](http://img.shields.io/gem/v/mandrill_mailer.svg)](https://rubygems.org/gems/mandrill_mailer)
3
+ [![Inline Documentation](http://inch-ci.org/github/renz45/mandrill_mailer.svg?branch=master)](http://inch-ci.org/github/renz45/mandrill_mailer)
5
4
 
6
5
  Inherit the MandrillMailer class in your existing Rails mailers to send transactional emails through Mandrill using their template-based emails.
7
6
 
@@ -25,7 +25,7 @@ module MandrillMailer
25
25
  # convert a normal hash into the format mandrill needs
26
26
  def self.mandrill_args(args)
27
27
  return [] unless args
28
- args.map do |k,v|
28
+ args.stringify_keys.map do |k,v|
29
29
  {'name' => k, 'content' => v}
30
30
  end
31
31
  end
@@ -290,11 +290,16 @@ module MandrillMailer
290
290
  end
291
291
 
292
292
  # Makes this class act as a singleton without it actually being a singleton
293
- # This keeps the syntax the same as the orginal mailers so we can swap quickly if something
293
+ # This keeps the syntax the same as the original mailers so we can swap quickly if something
294
294
  # goes wrong.
295
- def self.method_missing(method, *args)
296
- return super unless respond_to?(method)
297
- new.method(method).call(*args)
295
+
296
+ class << self
297
+ def method_missing(method, *args, &block)
298
+ return super unless respond_to?(method)
299
+ new.method(method).call(*args, &block)
300
+ end
301
+
302
+ ruby2_keywords(:method_missing) if respond_to?(:ruby2_keywords, true)
298
303
  end
299
304
 
300
305
  def self.respond_to?(method, include_private = false)
@@ -1,3 +1,3 @@
1
1
  module MandrillMailer
2
- VERSION = "1.7.1"
2
+ VERSION = "1.8.0"
3
3
  end
@@ -121,7 +121,7 @@ describe MandrillMailer::CoreMailer do
121
121
  expect(new_unique_mailer.message['from_email']).to eq default_from_email
122
122
  expect(new_unique_mailer.message['view_content_link']).to eq default_view_content_link
123
123
 
124
- global_merge_vars = [{ "name" => :foo, "content" => "bar" }]
124
+ global_merge_vars = [{ "name" => "foo", "content" => "bar" }]
125
125
  expect(new_unique_mailer.message['global_merge_vars']).to eq global_merge_vars
126
126
  end
127
127
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mandrill_mailer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.1
4
+ version: 1.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Rensel
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-30 00:00:00.000000000 Z
11
+ date: 2021-03-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -101,6 +101,7 @@ executables: []
101
101
  extensions: []
102
102
  extra_rdoc_files: []
103
103
  files:
104
+ - ".github/workflows/tests.yml"
104
105
  - ".gitignore"
105
106
  - ".rspec"
106
107
  - ".travis.yml"
@@ -137,7 +138,7 @@ homepage: https://github.com/renz45/mandrill_mailer
137
138
  licenses:
138
139
  - MIT
139
140
  metadata: {}
140
- post_install_message:
141
+ post_install_message:
141
142
  rdoc_options: []
142
143
  require_paths:
143
144
  - lib
@@ -152,9 +153,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
152
153
  - !ruby/object:Gem::Version
153
154
  version: '0'
154
155
  requirements: []
155
- rubyforge_project:
156
- rubygems_version: 2.7.6
157
- signing_key:
156
+ rubygems_version: 3.2.3
157
+ signing_key:
158
158
  specification_version: 4
159
159
  summary: Transactional Mailer for Mandrill
160
160
  test_files: