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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fe49ac48dbbef01dbbe18d96e06ed7af349d6858
4
- data.tar.gz: 6a722af6c7b10747a1859200da527b22f75f5303
3
+ metadata.gz: 18a3e008f6b56eaf8822431e7b8ca475a82919aa
4
+ data.tar.gz: 376b2dae4fd84d6db306b3a30ea87350e549a79f
5
5
  SHA512:
6
- metadata.gz: d0a8b7a4a6ccf9a7ac503911f2ed89e6a48c628956c3f7ac8f94256f8c8d25b86e67727a3c69d972f1cae3e872fd46e1d0b118aff1c9399fb6f808efe0b893b5
7
- data.tar.gz: 7b963bf04a0388e59b4d8ec357c3b15e037b579ca2e038d2489455aa0ef2c765f0bc062642585cad270eb3ea8d8766375116ec343079abf183589ee583ae7123
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-06
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
@@ -164,9 +164,6 @@ module SendGrid
164
164
  end
165
165
  end
166
166
 
167
- puts payload[:files]
168
- puts payload[:content]
169
-
170
167
  payload
171
168
  end
172
169
  # rubocop:enable Style/HashSyntax
@@ -1,3 +1,3 @@
1
1
  module SendGrid
2
- VERSION = '1.0.4'
2
+ VERSION = '1.0.5'
3
3
  end
@@ -2,6 +2,6 @@ require 'spec_helper'
2
2
 
3
3
  describe 'SendGrid' do
4
4
  it 'should have a version' do
5
- expect(SendGrid::VERSION).to eq('1.0.4')
5
+ expect(SendGrid::VERSION).to eq('1.0.5')
6
6
  end
7
7
  end
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
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-06 00:00:00.000000000 Z
12
+ date: 2015-10-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: smtpapi