griddler 1.5.1 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +8 -8
- data/Rakefile +0 -1
- data/lib/griddler/email.rb +5 -1
- data/lib/griddler/version.rb +1 -1
- metadata +17 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 387b9e94a21b4aeabfb47e2bd40992e762d126f10a25e2a1ec34fe8a52ccdd99
|
4
|
+
data.tar.gz: b75fab320144d2ef0bb6905b3f27a8b02e301052d7dbbd5d041b7987ad5c4f94
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9d9204c7045ef9c2248a864c27ab4d9e26b447db5caa7a691947f47700d1b6c38c44ca0da5c2c632441f26b9897835aa23ac27c86e65788cc04f850e2c5e071
|
7
|
+
data.tar.gz: c2873f80de69cd4214d46d39914e4f6da6004fd7e021c127e7a0922d82ab7b18fadc46ba52a8f328b9defb27904313afede1c12874682abad625055c637e8572
|
data/README.md
CHANGED
@@ -134,11 +134,11 @@ with the following sample factory:
|
|
134
134
|
```ruby
|
135
135
|
factory :email, class: OpenStruct do
|
136
136
|
# Assumes Griddler.configure.to is :hash (default)
|
137
|
-
to [{ full: 'to_user@email.com', email: 'to_user@email.com', token: 'to_user', host: 'email.com', name: nil }]
|
138
|
-
from
|
139
|
-
subject 'email subject'
|
140
|
-
body 'Hello!'
|
141
|
-
attachments {
|
137
|
+
to { [{ full: 'to_user@email.com', email: 'to_user@email.com', token: 'to_user', host: 'email.com', name: nil }] }
|
138
|
+
from { { token: 'from_user', host: 'email.com', email: 'from_email@email.com', full: 'From User <from_user@email.com>', name: 'From User' } }
|
139
|
+
subject { 'email subject' }
|
140
|
+
body { 'Hello!' }
|
141
|
+
attachments { '0' }
|
142
142
|
|
143
143
|
trait :with_attachment do
|
144
144
|
attachments {[
|
@@ -173,7 +173,7 @@ adapter gem in addition to `griddler`.
|
|
173
173
|
| mailgun | [griddler-mailgun]
|
174
174
|
| postmark | [griddler-postmark]
|
175
175
|
| sparkpost | [griddler-sparkpost]
|
176
|
-
| ses (amazon)| [griddler-
|
176
|
+
| ses (amazon)| [griddler-amazon_ses]
|
177
177
|
|
178
178
|
[griddler-sendgrid]: https://github.com/thoughtbot/griddler-sendgrid
|
179
179
|
[griddler-cloudmailin]: https://github.com/thoughtbot/griddler-cloudmailin
|
@@ -181,7 +181,7 @@ adapter gem in addition to `griddler`.
|
|
181
181
|
[griddler-mailgun]: https://github.com/bradpauly/griddler-mailgun
|
182
182
|
[griddler-postmark]: https://github.com/r38y/griddler-postmark
|
183
183
|
[griddler-sparkpost]: https://github.com/PrestoDoctor/griddler-sparkpost
|
184
|
-
[griddler-
|
184
|
+
[griddler-amazon_ses]: https://github.com/ccallebs/griddler-amazon_ses
|
185
185
|
|
186
186
|
Writing an Adapter
|
187
187
|
------------------
|
@@ -213,7 +213,7 @@ implementation.
|
|
213
213
|
Credits
|
214
214
|
-------
|
215
215
|
|
216
|
-
Griddler was written by Caleb
|
216
|
+
Griddler was written by Caleb Hearth and Joel Oliveira.
|
217
217
|
|
218
218
|
Thanks to our [contributors](https://github.com/thoughtbot/griddler/contributors)!
|
219
219
|
|
data/Rakefile
CHANGED
data/lib/griddler/email.rb
CHANGED
@@ -19,7 +19,8 @@ module Griddler
|
|
19
19
|
:raw_headers,
|
20
20
|
:attachments,
|
21
21
|
:vendor_specific,
|
22
|
-
:spam_report
|
22
|
+
:spam_report,
|
23
|
+
:charsets
|
23
24
|
|
24
25
|
def initialize(params)
|
25
26
|
@params = params
|
@@ -47,6 +48,8 @@ module Griddler
|
|
47
48
|
@vendor_specific = params.fetch(:vendor_specific, {})
|
48
49
|
|
49
50
|
@spam_report = params[:spam_report]
|
51
|
+
|
52
|
+
@charsets = params[:charsets]
|
50
53
|
end
|
51
54
|
|
52
55
|
def to_h
|
@@ -66,6 +69,7 @@ module Griddler
|
|
66
69
|
vendor_specific: vendor_specific,
|
67
70
|
spam_score: spam_score,
|
68
71
|
spam_report: spam_report,
|
72
|
+
charsets: charsets,
|
69
73
|
}
|
70
74
|
end
|
71
75
|
|
data/lib/griddler/version.rb
CHANGED
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: griddler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- Caleb
|
7
|
+
- Caleb Hearth
|
8
8
|
- Joel Oliveira
|
9
9
|
- thoughtbot
|
10
10
|
- Swift
|
11
|
-
autorequire:
|
11
|
+
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2024-05-21 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rails
|
@@ -59,16 +59,16 @@ dependencies:
|
|
59
59
|
name: sqlite3
|
60
60
|
requirement: !ruby/object:Gem::Requirement
|
61
61
|
requirements:
|
62
|
-
- - "
|
62
|
+
- - "~>"
|
63
63
|
- !ruby/object:Gem::Version
|
64
|
-
version: '
|
64
|
+
version: '1.4'
|
65
65
|
type: :development
|
66
66
|
prerelease: false
|
67
67
|
version_requirements: !ruby/object:Gem::Requirement
|
68
68
|
requirements:
|
69
|
-
- - "
|
69
|
+
- - "~>"
|
70
70
|
- !ruby/object:Gem::Version
|
71
|
-
version: '
|
71
|
+
version: '1.4'
|
72
72
|
- !ruby/object:Gem::Dependency
|
73
73
|
name: pry
|
74
74
|
requirement: !ruby/object:Gem::Requirement
|
@@ -97,9 +97,9 @@ dependencies:
|
|
97
97
|
- - ">="
|
98
98
|
- !ruby/object:Gem::Version
|
99
99
|
version: '0'
|
100
|
-
description:
|
100
|
+
description:
|
101
101
|
email:
|
102
|
-
-
|
102
|
+
- caleb@calebhearth.com
|
103
103
|
- joel@thoughtbot.com
|
104
104
|
- theycallmeswift@gmail.com
|
105
105
|
executables: []
|
@@ -121,11 +121,12 @@ files:
|
|
121
121
|
- lib/griddler/route_extensions.rb
|
122
122
|
- lib/griddler/testing.rb
|
123
123
|
- lib/griddler/version.rb
|
124
|
-
homepage:
|
124
|
+
homepage: https://github.com/calebhearth/griddler
|
125
125
|
licenses:
|
126
126
|
- MIT
|
127
|
-
metadata:
|
128
|
-
|
127
|
+
metadata:
|
128
|
+
funding-uri: https://github.com/sponsors/calebhearth
|
129
|
+
post_install_message:
|
129
130
|
rdoc_options: []
|
130
131
|
require_paths:
|
131
132
|
- app
|
@@ -141,9 +142,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
141
142
|
- !ruby/object:Gem::Version
|
142
143
|
version: '0'
|
143
144
|
requirements: []
|
144
|
-
|
145
|
-
|
146
|
-
signing_key:
|
145
|
+
rubygems_version: 3.5.9
|
146
|
+
signing_key:
|
147
147
|
specification_version: 4
|
148
|
-
summary:
|
148
|
+
summary: Simplify receiving email in Rails
|
149
149
|
test_files: []
|