-
Notifications
You must be signed in to change notification settings - Fork 0
/
mail-single_file_delivery.gemspec
48 lines (39 loc) · 1.75 KB
/
mail-single_file_delivery.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# -*- encoding: utf-8 -*-
$:.push File.expand_path("../lib", __FILE__)
require "mail-single_file_delivery/version"
Gem::Specification.new do |s|
s.name = "mail-single_file_delivery"
s.version = Mail::SingleFileDelivery::VERSION
s.authors = ["Larry Siden, Westside Consulting LLC"]
s.email = ["[email protected]"]
s.homepage = "https://github.com/lsiden/mail-single_file_delivery"
s.summary = %q{
Delivery all mail to a single file for testing.
}
s.description = %q{
# Single File Delivery Method for Mail gem
## Summary
This gem is a delivery-method plug-in for [mail](https://github.com/mikel/mail)
that delivers all mail to a single file for testing.
The Mail gem already provides a file delivery-method that appends a copy of each message
to a file named after each message recipient,
but I want them to all go to a single file
so that I can monitor them from another window with `tail -f my-file`,
or `cat my-named-pipe` while I hand-test the web interface from a browser.
Of course this is _in addition to_ running automated tests with Rspec and Cucumber.
At some point in development, I want to actually see the pages and enter my own inputs
and perhaps display the mail messages in an HTML reader.
## Synopsis
Mail.defaults do
delivery_method SingleFileDelivery => '/tmp/my-file.txt'
end
}
s.rubyforge_project = "mail-single_file_delivery"
s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ["lib"]
# specify any dependencies here; for example:
s.add_development_dependency "rspec"
s.add_runtime_dependency "mail"
end