kurotoshiro-simpleMailer 0.1.2 → 0.1.3
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.
- data/README.rdoc +21 -0
- data/VERSION +1 -1
- data/simpleMailer.gemspec +2 -2
- metadata +2 -2
data/README.rdoc
CHANGED
|
@@ -2,6 +2,27 @@
|
|
|
2
2
|
|
|
3
3
|
SimpleMailer is a very simple wrapper for Ruby's net::smtp
|
|
4
4
|
|
|
5
|
+
== Usage
|
|
6
|
+
|
|
7
|
+
require "rubygems"
|
|
8
|
+
require "simpleMailer"
|
|
9
|
+
|
|
10
|
+
mail=SimpleMailer.new("some.smtp.com",port=25)
|
|
11
|
+
mail.to("foo@bar.com")
|
|
12
|
+
mail.from("simple@mailer.com")
|
|
13
|
+
mail.with_title("That's some title for you")
|
|
14
|
+
mail.message("Later you will be able to use HTML")
|
|
15
|
+
mail.with_files(["/tmp/awesome.file","~/archive.tbz2"])
|
|
16
|
+
mail.send # Nothing is really done before this point
|
|
17
|
+
|
|
18
|
+
But you could have :
|
|
19
|
+
|
|
20
|
+
mail.to("foo@bar").from("foo@bar").with_title("title").message("message").send
|
|
21
|
+
|
|
22
|
+
== Testing
|
|
23
|
+
|
|
24
|
+
No testing right now, but I will work on it for a future version
|
|
25
|
+
|
|
5
26
|
== Note on Patches/Pull Requests
|
|
6
27
|
|
|
7
28
|
* Fork the project.
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.3
|
data/simpleMailer.gemspec
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{simpleMailer}
|
|
8
|
-
s.version = "0.1.
|
|
8
|
+
s.version = "0.1.3"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Yoann LE TOUCHE"]
|
|
12
|
-
s.date = %q{2009-08-
|
|
12
|
+
s.date = %q{2009-08-14}
|
|
13
13
|
s.description = %q{SimpleMailer is a simple wrapper for net::smtp that let you attach files}
|
|
14
14
|
s.email = %q{kurotoshiro@gmail.com}
|
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kurotoshiro-simpleMailer
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Yoann LE TOUCHE
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2009-08-
|
|
12
|
+
date: 2009-08-14 00:00:00 -07:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|