sendgrid-ruby 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -1
- data/README.md +15 -0
- data/lib/sendgrid/mail.rb +0 -3
- data/lib/sendgrid/version.rb +1 -1
- data/spec/lib/sendgrid_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 18a3e008f6b56eaf8822431e7b8ca475a82919aa
|
4
|
+
data.tar.gz: 376b2dae4fd84d6db306b3a30ea87350e549a79f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: edbc9740e858675a0f030d8034b5a2ead47d27cd533528faab52f111f68b12a3093b872176746e9a1f9213234cfd69c2dc682188aa6df87459be2246b0d84aae
|
7
|
+
data.tar.gz: 7afef6adf85b26dc6e61786cb308e096c36a899aafc6e48b76f4f03cf5e7eff4c6250bc75c0759dd6a42a59d2370525d83d5507e5ec14dd0ca44b568ecf82c72
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,11 @@
|
|
1
1
|
# Change Log
|
2
2
|
All notable changes to this project will be documented in this file.
|
3
3
|
|
4
|
-
## [1.0.5] - 2015-10-
|
4
|
+
## [1.0.5] - 2015-10-21
|
5
|
+
### Fixed
|
6
|
+
Remove puts from mail.rb [#29](https://github.com/sendgrid/sendgrid-ruby/pull/29)
|
7
|
+
|
8
|
+
## [1.0.4] - 2015-10-06
|
5
9
|
### Added
|
6
10
|
Inline content support
|
7
11
|
|
data/README.md
CHANGED
@@ -75,6 +75,21 @@ Attachments can be added to a Mail object with the `add_attachment` method. The
|
|
75
75
|
mail.add_attachment('/tmp/report.pdf', 'july_report.pdf')
|
76
76
|
```
|
77
77
|
|
78
|
+
#### Inline Content
|
79
|
+
|
80
|
+
Inline content can be added to a Mail object with the `add_content` method. The first parameter is the path to the file, the second parameter is the cid to be referenced in the html.
|
81
|
+
```ruby
|
82
|
+
mail = SendGrid::Mail.new do |m|
|
83
|
+
m.to = 'test@sendgrid.com'
|
84
|
+
m.from = 'taco@cat.limo'
|
85
|
+
m.subject = 'Hello world!'
|
86
|
+
m.text = 'I heard you like the beach.'
|
87
|
+
m.html = 'I heard you like the beach <div><img src="cid:beach"></div>'
|
88
|
+
end
|
89
|
+
mail.add_content('/tmp/beach.jpg', 'beach')
|
90
|
+
result = client.send(mail)
|
91
|
+
```
|
92
|
+
|
78
93
|
#### Available Params
|
79
94
|
|
80
95
|
```ruby
|
data/lib/sendgrid/mail.rb
CHANGED
data/lib/sendgrid/version.rb
CHANGED
data/spec/lib/sendgrid_spec.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sendgrid-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robin Johnson
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-10-
|
12
|
+
date: 2015-10-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: smtpapi
|