pony 1.4.1 → 1.5

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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YzcwMWViNjdkOTEwNjQ5NTAzYzAzMjRjYmM4MzI3ZjQwZDFiNTBjNA==
4
+ MzA3YWY3ZjNkNDEzNDdjZjhlZjUzOTAxMzc5MDdjMGRjZWY0MTFkMQ==
5
5
  data.tar.gz: !binary |-
6
- OTZkOGJhZDlkYzhjOTg3N2RiYzI5ZmExODdlNmUwOWViZjhmNGYzOA==
6
+ ZTdhOTU5NDI4NGIzMjVkMGJkZDExYTA0Y2YxNmYwMTJjZGIyZTEyZA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MDMxNDE0MDM1MDE4MzU0ZTJkMGNjNGMxMmFiY2RjNDFkNTlhMWY1YzFmNjlj
10
- MTU2MTAzNWM3ZDkyNmQ4ZmY5MWEyNzE1MDllOGE4MDFkYjg2NjQzNzM3NDJk
11
- ODY3YjQyMDZmNzFhY2ZlNDk1MTA2Y2UxZTBkYTNkNmViNWFlZGY=
9
+ ZGRiZWI0OWEwNWVjNTA3YmRiOTM1MzNmNWQ0NzMxM2JhZTA0OGNkNmU2MGU2
10
+ NmZkNjY4MDc5N2I0MWU5ODIwNjAwNWQwZTQwOWU3N2NhMzQ3N2VjMzc1YzU1
11
+ YjU0YjQ2NWRiMGY5Yjc4NjYxZWJmNzFiNWUyY2UzMWZkZDczOTk=
12
12
  data.tar.gz: !binary |-
13
- NTVlZTc0N2FkY2M0NzUwNzJhMWJlNjVjMDQ2MTVlZjY4M2U4NjI1ZjMxNGNh
14
- ZjUxMDU4MmIyYWVjOWQwMmRlNWNkZWY1MTZkNjQ4MjBmMjIxNDc5MTA2MWRi
15
- NGVlZGZjMTEzZTk1NDBiYjM2ZjdiMjA2ZGM5MzY3YmVlOGQzOGM=
13
+ YmE3MzI3M2Q3YmIwNTE4YTJlZWIxMmQ2YjY4M2E2Njg3ZmE4NDQ4NGFjNjI5
14
+ ZDhhOGM4OWJiOWZhYmE3OGMwMzBkODQyZGNkYTU3MzMzZmZlZTY5NjFiYzZi
15
+ M2JlZDMxYTVkZmQzMTNmMzY0OWM3NjdmOTcxYmMzODFkZDkwODc=
@@ -148,6 +148,8 @@ mailing list: ponyrb@googlegroups.com
148
148
 
149
149
 
150
150
  == Releases
151
+ 1.5
152
+ * Specify content-id of attachments as filename@hostname
151
153
 
152
154
  1.4.1
153
155
  * Update gemfile
@@ -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|
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{pony}
5
- s.version = "1.4.1"
5
+ s.version = "1.5"
6
6
 
7
7
  s.description = "Send email in one command: Pony.mail(:to => 'someone@example.com', :body => 'hello')"
8
8
  s.summary = s.description
@@ -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.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-05-03 00:00:00.000000000 Z
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: