malone 1.0.5 → 1.0.6

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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 801ac23610ff25c73bfee7491db4e6dd3579bb9d
4
- data.tar.gz: dee85dd144618ce9d31c6a68f3d1bd030cc7c950
3
+ metadata.gz: bfbb0d49f1a174005ff8649d837b93e7303c0e10
4
+ data.tar.gz: b859b94f4218a96d1088ca52151553c87b589c96
5
5
  SHA512:
6
- metadata.gz: c4ffbd9bd6a2313c5955eef2af732b4af75b98d858e4ba1b282785c2fa8e7a2b98a98324519f39d2aea21ed3dcd853eae020342b2e8ce090ef95964de36ce6a8
7
- data.tar.gz: e3180d5b36efcd71c50550356ea0c7c5b56401b64a14e94887faef1b123046db20688de3da6c1a52f11c7da5988341e2fd4a1199fc92c9fee98c663efcb141a7
6
+ metadata.gz: bbff80d2df4fae4bddad64a255d2967cfb36825ca84cd21d8a650a5e80e35828f0875ea98329c5e3c351ef258088c9bfda4e7538bbed151a0409ea80b4b6e655
7
+ data.tar.gz: 045095559fd889978923b03c32a24e34b25c8f6882e6ed44d07929a92156e9b4a744c3de00d093261d39d8cb797663f5823591f50b6303e0a2942959fc53462f
@@ -54,15 +54,14 @@ class Malone
54
54
  envelope = Envelope.new
55
55
  envelope.from = dict[:from]
56
56
  envelope.to = dict[:to]
57
+ envelope.replyto = dict[:replyto]
57
58
  envelope.cc = dict[:cc] if dict[:cc]
58
59
  envelope.bcc = dict[:bcc] if dict[:bcc]
59
60
  envelope.text = dict[:text]
60
61
  envelope.rawhtml = dict[:html] if dict[:html]
61
62
  envelope.subject = dict[:subject]
62
63
 
63
- Array(dict[:attach]).each do |file|
64
- envelope.attach(file)
65
- end
64
+ envelope.attach(dict[:attach]) if dict[:attach]
66
65
 
67
66
  return envelope
68
67
  end
@@ -1,10 +1,10 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'malone'
3
- s.version = "1.0.5"
3
+ s.version = "1.0.6"
4
4
  s.summary = %{Dead-simple Ruby mailing solution which always delivers.}
5
5
  s.date = "2011-01-10"
6
6
  s.author = "Cyril David"
7
- s.email = "cyx@cyx.is"
7
+ s.email = "me@cyrildavid.com"
8
8
  s.homepage = "http://github.com/cyx/malone"
9
9
 
10
10
  s.files = Dir[
@@ -89,13 +89,15 @@ test "#envelope" do
89
89
 
90
90
  mail = m.envelope(to: "recipient@me.com", from: "no-reply@mydomain.com",
91
91
  subject: "SUB", text: "TEXT", html: "<h1>TEXT</h1>",
92
- cc: "cc@me.com", bcc: "bcc@me.com")
92
+ cc: "cc@me.com", bcc: "bcc@me.com",
93
+ replyto: "other@me.com")
93
94
 
94
95
  assert_equal ["recipient@me.com"], mail.to
95
96
  assert_equal ["cc@me.com"], mail.cc
96
97
  assert_equal ["bcc@me.com"], mail.bcc
97
98
  assert_equal ["no-reply@mydomain.com"], mail.from
98
99
  assert_equal ["=?utf-8?Q?SUB?="], mail.subject
100
+ assert_equal "other@me.com", mail.replyto
99
101
 
100
102
  assert_equal "TEXT", mail.instance_variable_get(:@text)
101
103
  assert_equal "<h1>TEXT</h1>", mail.instance_variable_get(:@html)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: malone
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cyril David
@@ -39,7 +39,7 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  description:
42
- email: cyx@cyx.is
42
+ email: me@cyrildavid.com
43
43
  executables: []
44
44
  extensions: []
45
45
  extra_rdoc_files: []
@@ -47,10 +47,10 @@ files:
47
47
  - CHANGELOG
48
48
  - LICENSE
49
49
  - README.md
50
- - lib/malone/test.rb
51
50
  - lib/malone.rb
52
- - test/helper.rb
51
+ - lib/malone/test.rb
53
52
  - test/malone.rb
53
+ - test/helper.rb
54
54
  - malone.gemspec
55
55
  homepage: http://github.com/cyx/malone
56
56
  licenses: []
@@ -71,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
71
71
  version: '0'
72
72
  requirements: []
73
73
  rubyforge_project:
74
- rubygems_version: 2.0.3
74
+ rubygems_version: 2.0.14
75
75
  signing_key:
76
76
  specification_version: 4
77
77
  summary: Dead-simple Ruby mailing solution which always delivers.