malone 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/malone.rb +2 -3
- data/malone.gemspec +2 -2
- data/test/malone.rb +3 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bfbb0d49f1a174005ff8649d837b93e7303c0e10
|
4
|
+
data.tar.gz: b859b94f4218a96d1088ca52151553c87b589c96
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bbff80d2df4fae4bddad64a255d2967cfb36825ca84cd21d8a650a5e80e35828f0875ea98329c5e3c351ef258088c9bfda4e7538bbed151a0409ea80b4b6e655
|
7
|
+
data.tar.gz: 045095559fd889978923b03c32a24e34b25c8f6882e6ed44d07929a92156e9b4a744c3de00d093261d39d8cb797663f5823591f50b6303e0a2942959fc53462f
|
data/lib/malone.rb
CHANGED
@@ -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
|
-
|
64
|
-
envelope.attach(file)
|
65
|
-
end
|
64
|
+
envelope.attach(dict[:attach]) if dict[:attach]
|
66
65
|
|
67
66
|
return envelope
|
68
67
|
end
|
data/malone.gemspec
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'malone'
|
3
|
-
s.version = "1.0.
|
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 = "
|
7
|
+
s.email = "me@cyrildavid.com"
|
8
8
|
s.homepage = "http://github.com/cyx/malone"
|
9
9
|
|
10
10
|
s.files = Dir[
|
data/test/malone.rb
CHANGED
@@ -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.
|
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:
|
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
|
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.
|
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.
|