mandrill_dm 1.3.10
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 +7 -0
- data/Appraisals +11 -0
- data/CHANGELOG.md +51 -0
- data/Gemfile +2 -0
- data/LICENSE +21 -0
- data/MIGRATE +27 -0
- data/README.md +104 -0
- data/Rakefile +35 -0
- data/lib/mandrill_dm/delivery_method.rb +38 -0
- data/lib/mandrill_dm/message.rb +277 -0
- data/lib/mandrill_dm/railtie.rb +11 -0
- data/lib/mandrill_dm.rb +37 -0
- data/mandrill_dm.gemspec +27 -0
- data/spec/mandrill_dm/delivery_method_integration_spec.rb +108 -0
- data/spec/mandrill_dm/delivery_method_spec.rb +171 -0
- data/spec/mandrill_dm/message_spec.rb +752 -0
- data/spec/spec_helper.rb +33 -0
- metadata +201 -0
data/spec/spec_helper.rb
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
require 'simplecov'
|
|
2
|
+
|
|
3
|
+
if ENV['COVERAGE']
|
|
4
|
+
SimpleCov.start do
|
|
5
|
+
coverage_dir 'tmp/coverage'
|
|
6
|
+
add_filter '/spec/'
|
|
7
|
+
|
|
8
|
+
SimpleCov.at_exit do
|
|
9
|
+
SimpleCov.result.format!
|
|
10
|
+
system('open tmp/coverage/index.html') if RUBY_PLATFORM['darwin']
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
require 'rubygems'
|
|
16
|
+
require 'bundler/setup'
|
|
17
|
+
Bundler.require(:default)
|
|
18
|
+
|
|
19
|
+
require 'mail'
|
|
20
|
+
|
|
21
|
+
MandrillDm.configure do |config|
|
|
22
|
+
config.api_key = '1234567890'
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
RSpec.configure do |config|
|
|
26
|
+
config.run_all_when_everything_filtered = true
|
|
27
|
+
|
|
28
|
+
config.before(:all) do
|
|
29
|
+
Excon.defaults[:mock] = true
|
|
30
|
+
# stubs any request to return an empty JSON string
|
|
31
|
+
Excon.stub({}, body: '{}', status: 200)
|
|
32
|
+
end
|
|
33
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: mandrill_dm
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 1.3.10
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Jonathan Berglund
|
|
8
|
+
- John Dell
|
|
9
|
+
- Kirill Shnurov
|
|
10
|
+
autorequire:
|
|
11
|
+
bindir: bin
|
|
12
|
+
cert_chain: []
|
|
13
|
+
date: 2020-03-20 00:00:00.000000000 Z
|
|
14
|
+
dependencies:
|
|
15
|
+
- !ruby/object:Gem::Dependency
|
|
16
|
+
name: mail
|
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
|
18
|
+
requirements:
|
|
19
|
+
- - ">="
|
|
20
|
+
- !ruby/object:Gem::Version
|
|
21
|
+
version: '2.6'
|
|
22
|
+
type: :runtime
|
|
23
|
+
prerelease: false
|
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
25
|
+
requirements:
|
|
26
|
+
- - ">="
|
|
27
|
+
- !ruby/object:Gem::Version
|
|
28
|
+
version: '2.6'
|
|
29
|
+
- !ruby/object:Gem::Dependency
|
|
30
|
+
name: mandrill-api-json
|
|
31
|
+
requirement: !ruby/object:Gem::Requirement
|
|
32
|
+
requirements:
|
|
33
|
+
- - "~>"
|
|
34
|
+
- !ruby/object:Gem::Version
|
|
35
|
+
version: 1.0.54
|
|
36
|
+
type: :runtime
|
|
37
|
+
prerelease: false
|
|
38
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
39
|
+
requirements:
|
|
40
|
+
- - "~>"
|
|
41
|
+
- !ruby/object:Gem::Version
|
|
42
|
+
version: 1.0.54
|
|
43
|
+
- !ruby/object:Gem::Dependency
|
|
44
|
+
name: pry
|
|
45
|
+
requirement: !ruby/object:Gem::Requirement
|
|
46
|
+
requirements:
|
|
47
|
+
- - ">="
|
|
48
|
+
- !ruby/object:Gem::Version
|
|
49
|
+
version: '0'
|
|
50
|
+
type: :development
|
|
51
|
+
prerelease: false
|
|
52
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
53
|
+
requirements:
|
|
54
|
+
- - ">="
|
|
55
|
+
- !ruby/object:Gem::Version
|
|
56
|
+
version: '0'
|
|
57
|
+
- !ruby/object:Gem::Dependency
|
|
58
|
+
name: rake
|
|
59
|
+
requirement: !ruby/object:Gem::Requirement
|
|
60
|
+
requirements:
|
|
61
|
+
- - ">="
|
|
62
|
+
- !ruby/object:Gem::Version
|
|
63
|
+
version: '0'
|
|
64
|
+
type: :development
|
|
65
|
+
prerelease: false
|
|
66
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
67
|
+
requirements:
|
|
68
|
+
- - ">="
|
|
69
|
+
- !ruby/object:Gem::Version
|
|
70
|
+
version: '0'
|
|
71
|
+
- !ruby/object:Gem::Dependency
|
|
72
|
+
name: rspec
|
|
73
|
+
requirement: !ruby/object:Gem::Requirement
|
|
74
|
+
requirements:
|
|
75
|
+
- - "~>"
|
|
76
|
+
- !ruby/object:Gem::Version
|
|
77
|
+
version: 3.7.0
|
|
78
|
+
type: :development
|
|
79
|
+
prerelease: false
|
|
80
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
81
|
+
requirements:
|
|
82
|
+
- - "~>"
|
|
83
|
+
- !ruby/object:Gem::Version
|
|
84
|
+
version: 3.7.0
|
|
85
|
+
- !ruby/object:Gem::Dependency
|
|
86
|
+
name: rubocop
|
|
87
|
+
requirement: !ruby/object:Gem::Requirement
|
|
88
|
+
requirements:
|
|
89
|
+
- - '='
|
|
90
|
+
- !ruby/object:Gem::Version
|
|
91
|
+
version: 0.50.0
|
|
92
|
+
type: :development
|
|
93
|
+
prerelease: false
|
|
94
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
95
|
+
requirements:
|
|
96
|
+
- - '='
|
|
97
|
+
- !ruby/object:Gem::Version
|
|
98
|
+
version: 0.50.0
|
|
99
|
+
- !ruby/object:Gem::Dependency
|
|
100
|
+
name: simplecov
|
|
101
|
+
requirement: !ruby/object:Gem::Requirement
|
|
102
|
+
requirements:
|
|
103
|
+
- - "~>"
|
|
104
|
+
- !ruby/object:Gem::Version
|
|
105
|
+
version: 0.15.1
|
|
106
|
+
type: :development
|
|
107
|
+
prerelease: false
|
|
108
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
109
|
+
requirements:
|
|
110
|
+
- - "~>"
|
|
111
|
+
- !ruby/object:Gem::Version
|
|
112
|
+
version: 0.15.1
|
|
113
|
+
- !ruby/object:Gem::Dependency
|
|
114
|
+
name: appraisal
|
|
115
|
+
requirement: !ruby/object:Gem::Requirement
|
|
116
|
+
requirements:
|
|
117
|
+
- - ">="
|
|
118
|
+
- !ruby/object:Gem::Version
|
|
119
|
+
version: '0'
|
|
120
|
+
type: :development
|
|
121
|
+
prerelease: false
|
|
122
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
123
|
+
requirements:
|
|
124
|
+
- - ">="
|
|
125
|
+
- !ruby/object:Gem::Version
|
|
126
|
+
version: '0'
|
|
127
|
+
description: A basic Mandrill delivery method for Rails.
|
|
128
|
+
email:
|
|
129
|
+
- jonathan.berglund@gmail.com
|
|
130
|
+
- spovich@gmail.com
|
|
131
|
+
executables: []
|
|
132
|
+
extensions: []
|
|
133
|
+
extra_rdoc_files: []
|
|
134
|
+
files:
|
|
135
|
+
- Appraisals
|
|
136
|
+
- CHANGELOG.md
|
|
137
|
+
- Gemfile
|
|
138
|
+
- LICENSE
|
|
139
|
+
- MIGRATE
|
|
140
|
+
- README.md
|
|
141
|
+
- Rakefile
|
|
142
|
+
- lib/mandrill_dm.rb
|
|
143
|
+
- lib/mandrill_dm/delivery_method.rb
|
|
144
|
+
- lib/mandrill_dm/message.rb
|
|
145
|
+
- lib/mandrill_dm/railtie.rb
|
|
146
|
+
- mandrill_dm.gemspec
|
|
147
|
+
- spec/mandrill_dm/delivery_method_integration_spec.rb
|
|
148
|
+
- spec/mandrill_dm/delivery_method_spec.rb
|
|
149
|
+
- spec/mandrill_dm/message_spec.rb
|
|
150
|
+
- spec/spec_helper.rb
|
|
151
|
+
homepage: http://github.com/spovich/mandrill_dm
|
|
152
|
+
licenses:
|
|
153
|
+
- MIT
|
|
154
|
+
metadata: {}
|
|
155
|
+
post_install_message: |-
|
|
156
|
+
####################################################
|
|
157
|
+
# !!! MIGRATE from Mandrill IMMEDIATELY! #
|
|
158
|
+
####################################################
|
|
159
|
+
|
|
160
|
+
On 15.03.2022 Mailchimp blocked tens of thousands of accounts
|
|
161
|
+
for one reason: their nationality. There's no law that required that.
|
|
162
|
+
(email: https://github.com/kshnurov/mandrill_dm/mailchimp_email.png)
|
|
163
|
+
|
|
164
|
+
They didn't give any prior notice, time to migrate, or an option to
|
|
165
|
+
download our data and email lists. We're unable to log in despite
|
|
166
|
+
using Mailchimp & Mandrill for 8 years and an excellent account score.
|
|
167
|
+
|
|
168
|
+
WE'VE LOST ALL OUR DATA and our operations were disrupted.
|
|
169
|
+
|
|
170
|
+
Mailchimp's actions are completely unlawful, violate business ethics and
|
|
171
|
+
moral norms. This is pure racism and Nazism. It should not be tolerated.
|
|
172
|
+
|
|
173
|
+
We urge you to MIGRATE to other services IMMEDIATELY until your account
|
|
174
|
+
is blocked because of your race, sex, nationality, or T-shirt color.
|
|
175
|
+
|
|
176
|
+
This gem will continue to work, but will log error on every sent message.
|
|
177
|
+
|
|
178
|
+
You're free to fork it and keep using Mandrill if you support
|
|
179
|
+
punishing innocent people for being born in a particular country,
|
|
180
|
+
no matter what they think about their government and recent events.
|
|
181
|
+
|
|
182
|
+
####################################################
|
|
183
|
+
rdoc_options: []
|
|
184
|
+
require_paths:
|
|
185
|
+
- lib
|
|
186
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
187
|
+
requirements:
|
|
188
|
+
- - ">="
|
|
189
|
+
- !ruby/object:Gem::Version
|
|
190
|
+
version: '2.0'
|
|
191
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
192
|
+
requirements:
|
|
193
|
+
- - ">="
|
|
194
|
+
- !ruby/object:Gem::Version
|
|
195
|
+
version: '0'
|
|
196
|
+
requirements: []
|
|
197
|
+
rubygems_version: 3.1.6
|
|
198
|
+
signing_key:
|
|
199
|
+
specification_version: 4
|
|
200
|
+
summary: A basic Mandrill delivery method for Rails.
|
|
201
|
+
test_files: []
|