pony 1.4.1 → 1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.rdoc +2 -0
- data/lib/pony.rb +2 -0
- data/pony.gemspec +1 -1
- data/spec/pony_spec.rb +1 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MzA3YWY3ZjNkNDEzNDdjZjhlZjUzOTAxMzc5MDdjMGRjZWY0MTFkMQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZTdhOTU5NDI4NGIzMjVkMGJkZDExYTA0Y2YxNmYwMTJjZGIyZTEyZA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZGRiZWI0OWEwNWVjNTA3YmRiOTM1MzNmNWQ0NzMxM2JhZTA0OGNkNmU2MGU2
|
10
|
+
NmZkNjY4MDc5N2I0MWU5ODIwNjAwNWQwZTQwOWU3N2NhMzQ3N2VjMzc1YzU1
|
11
|
+
YjU0YjQ2NWRiMGY5Yjc4NjYxZWJmNzFiNWUyY2UzMWZkZDczOTk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YmE3MzI3M2Q3YmIwNTE4YTJlZWIxMmQ2YjY4M2E2Njg3ZmE4NDQ4NGFjNjI5
|
14
|
+
ZDhhOGM4OWJiOWZhYmE3OGMwMzBkODQyZGNkYTU3MzMzZmZlZTY5NjFiYzZi
|
15
|
+
M2JlZDMxYTVkZmQzMTNmMzY0OWM3NjdmOTcxYmMzODFkZDkwODc=
|
data/README.rdoc
CHANGED
data/lib/pony.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'mail'
|
2
2
|
require 'base64'
|
3
|
+
require 'socket'
|
3
4
|
|
4
5
|
# = The express way to send email in Ruby
|
5
6
|
#
|
@@ -212,6 +213,7 @@ module Pony
|
|
212
213
|
else
|
213
214
|
mail.attachments[name] = body
|
214
215
|
end
|
216
|
+
mail.attachments[name].add_content_id("<#{name}@#{Socket.gethostname}>")
|
215
217
|
end
|
216
218
|
|
217
219
|
(options[:headers] ||= {}).each do |key, value|
|
data/pony.gemspec
CHANGED
data/spec/pony_spec.rb
CHANGED
@@ -140,6 +140,7 @@ describe Pony do
|
|
140
140
|
mail = Pony.build_mail(:attachments => {"foo.txt" => "content of foo.txt"}, :body => 'test')
|
141
141
|
mail.parts.length.should == 2
|
142
142
|
mail.parts.first.to_s.should =~ /Content-Type: text\/plain/
|
143
|
+
mail.attachments.first.content_id.should == "<foo.txt@#{Socket.gethostname}>"
|
143
144
|
end
|
144
145
|
|
145
146
|
it "suggests mime-type" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pony
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: '1.5'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Wiggins
|
@@ -9,16 +9,16 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-06-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
type: :runtime
|
16
|
-
prerelease: false
|
17
16
|
version_requirements: !ruby/object:Gem::Requirement
|
18
17
|
requirements:
|
19
18
|
- - ! '>'
|
20
19
|
- !ruby/object:Gem::Version
|
21
20
|
version: '2.0'
|
21
|
+
prerelease: false
|
22
22
|
name: mail
|
23
23
|
requirement: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
@@ -27,12 +27,12 @@ dependencies:
|
|
27
27
|
version: '2.0'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
type: :development
|
30
|
-
prerelease: false
|
31
30
|
version_requirements: !ruby/object:Gem::Requirement
|
32
31
|
requirements:
|
33
32
|
- - ! '>='
|
34
33
|
- !ruby/object:Gem::Version
|
35
34
|
version: 2.0.0
|
35
|
+
prerelease: false
|
36
36
|
name: rspec
|
37
37
|
requirement: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|