simplemailer 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.gitignore +6 -0
- data/.rspec-sample +2 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +60 -0
- data/LICENSE.txt +7 -0
- data/README.md +64 -0
- data/README.rdoc +36 -0
- data/Rakefile +66 -0
- data/bin/simplemailer +57 -0
- data/features/simplemailer.feature +18 -0
- data/features/step_definitions/simplemailer_steps.rb +1 -0
- data/features/support/env.rb +16 -0
- data/lib/simplemailer.rb +43 -0
- data/lib/simplemailer/version.rb +5 -0
- data/simplemailer.gemspec +28 -0
- data/spec/simplemailer/run_spec.rb +46 -0
- data/spec/something_spec.rb +5 -0
- data/spec/spec_helper.rb +20 -0
- metadata +169 -0
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
NmIwMmExYzVmZTYxYWE5ZTI2ZTUxZGI1YWY0NjQ5MmI1OGFkNzRjYQ==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
YjBjNzU0YmJlY2YyYmEzZjM0ZmZlNmYwYzMxY2IxZTg5YTU1OGZiYg==
|
7
|
+
!binary "U0hBNTEy":
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
YzE2NjA4NDdlYmFhZDU5MjI3YzZhYzgxNjM1NTAyMTAxNmUzMjMxZTY3NWU4
|
10
|
+
ODM4ODk2MDU2ZmFlOGFmNTNkMzMyYmZhZWFkOTg1Y2ExNGVlZDllNTA2ZTIz
|
11
|
+
NDE5YTE5ZjkwNzFkZTEwMmIyNzM3MDgzYWRhYjlmZDZjODFjNjY=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
MjkwNjIxNjM3YjU4ZDE0NDUwZWQwODE5NzdkZDBlY2VkMTExYzgxNmMwYTk0
|
14
|
+
YTAwYmNhNGNiZTJmMzU0YjZmMzg3YTQyODRmNTMzNjc4ZTlhODQ0ZWI0ZTgy
|
15
|
+
ODc3MzVjNWNlOTJiNzhhY2RmYmQ5ZDYxMmJlMjQ3NDhhMjk0YmE=
|
data/.gitignore
ADDED
data/.rspec-sample
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,60 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
simplemailer (1.0.0)
|
5
|
+
mail
|
6
|
+
methadone (~> 1.2.6)
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
aruba (0.5.2)
|
12
|
+
childprocess (~> 0.3.6)
|
13
|
+
cucumber (>= 1.1.1)
|
14
|
+
rspec-expectations (>= 2.7.0)
|
15
|
+
builder (3.2.0)
|
16
|
+
childprocess (0.3.9)
|
17
|
+
ffi (~> 1.0, >= 1.0.11)
|
18
|
+
cucumber (1.3.1)
|
19
|
+
builder (>= 2.1.2)
|
20
|
+
diff-lcs (>= 1.1.3)
|
21
|
+
gherkin (~> 2.12.0)
|
22
|
+
multi_json (~> 1.3)
|
23
|
+
diff-lcs (1.2.4)
|
24
|
+
ffi (1.8.1)
|
25
|
+
gherkin (2.12.0)
|
26
|
+
multi_json (~> 1.3)
|
27
|
+
json (1.8.0)
|
28
|
+
mail (2.5.4)
|
29
|
+
mime-types (~> 1.16)
|
30
|
+
treetop (~> 1.4.8)
|
31
|
+
methadone (1.2.6)
|
32
|
+
bundler
|
33
|
+
mime-types (1.23)
|
34
|
+
multi_json (1.7.3)
|
35
|
+
polyglot (0.3.3)
|
36
|
+
rake (0.9.6)
|
37
|
+
rdoc (4.0.1)
|
38
|
+
json (~> 1.4)
|
39
|
+
rspec (2.13.0)
|
40
|
+
rspec-core (~> 2.13.0)
|
41
|
+
rspec-expectations (~> 2.13.0)
|
42
|
+
rspec-mocks (~> 2.13.0)
|
43
|
+
rspec-core (2.13.1)
|
44
|
+
rspec-expectations (2.13.0)
|
45
|
+
diff-lcs (>= 1.1.3, < 2.0)
|
46
|
+
rspec-mocks (2.13.0)
|
47
|
+
treetop (1.4.12)
|
48
|
+
polyglot
|
49
|
+
polyglot (>= 0.3.1)
|
50
|
+
|
51
|
+
PLATFORMS
|
52
|
+
ruby
|
53
|
+
|
54
|
+
DEPENDENCIES
|
55
|
+
aruba
|
56
|
+
bundler (~> 1.3)
|
57
|
+
rake
|
58
|
+
rdoc
|
59
|
+
rspec
|
60
|
+
simplemailer!
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
Copyright (c) 2013 YOUR NAME
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
4
|
+
|
5
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
6
|
+
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,64 @@
|
|
1
|
+
# Simplemailer
|
2
|
+
|
3
|
+
A really simple mailer command line script that sort of emulates mail(1)
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
$ gem install simplemailer
|
8
|
+
|
9
|
+
## Usage
|
10
|
+
|
11
|
+
Get help for simplemailer by typing:
|
12
|
+
|
13
|
+
$ simplemailer --help
|
14
|
+
|
15
|
+
Send a mail:
|
16
|
+
|
17
|
+
$ cat msgbody.txt | simplemailer recipient@example.com
|
18
|
+
|
19
|
+
## Synopsis
|
20
|
+
|
21
|
+
$ simplemailer [OPTIONS] to...
|
22
|
+
|
23
|
+
## Options
|
24
|
+
|
25
|
+
`--from EMAIL`:: Email address to use in the From: field of the message.
|
26
|
+
|
27
|
+
`--subject TEXT`:: Text is used in the Subject: field of the message.
|
28
|
+
|
29
|
+
`--body TEXT`:: Text is used for the body of the message. If this is
|
30
|
+
omitted, the body is read from STDIN.
|
31
|
+
|
32
|
+
`--debug`:: Flag that puts the program in debug mode
|
33
|
+
|
34
|
+
`--log-level`:: Level of logging for the program. Default is
|
35
|
+
`info`. Setting the `--debug` flag also sets the logging level to
|
36
|
+
`debug`. (Note that the opposite is NOT true.)
|
37
|
+
|
38
|
+
|
39
|
+
## Configuration
|
40
|
+
|
41
|
+
`simplemailer` reads a configuration file from
|
42
|
+
`$HOME/.simplemailer.rc`. Configuration is in YAML form. The following
|
43
|
+
items can be configured:
|
44
|
+
|
45
|
+
`transport:`:: a path to the sendmail transport of your choosing.
|
46
|
+
|
47
|
+
`from:`:: the user mail is sent from by default.
|
48
|
+
|
49
|
+
`subject:`:: default subject to use in messages.
|
50
|
+
|
51
|
+
`body:`:: default body to use in messages.
|
52
|
+
|
53
|
+
`debug:`:: turn on/off debugging initially. Overridden by `--debug`
|
54
|
+
flag on command line.
|
55
|
+
|
56
|
+
|
57
|
+
## Contributing
|
58
|
+
|
59
|
+
1. Fork it
|
60
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
61
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
62
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
63
|
+
5. Create new Pull Request
|
64
|
+
=======
|
data/README.rdoc
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
= simplemailer - A really simpler mailer command line script that sort of emulates mail(1)
|
2
|
+
|
3
|
+
Author:: Tamara Temple <tamouse@gmail.com>
|
4
|
+
Copyright:: Copyright (c) 2013 Tamara Temple Web Development
|
5
|
+
|
6
|
+
|
7
|
+
License:: mit, see LICENSE.txt
|
8
|
+
|
9
|
+
A simple command line script that will send a mail. Useful in
|
10
|
+
servers/environments where you don't necessarily have a full-blown
|
11
|
+
email transport, or a command to issue emails easily.
|
12
|
+
|
13
|
+
|
14
|
+
== Links
|
15
|
+
|
16
|
+
* {Source on Github}[http://github.com/tamouse/simplemailerscript]
|
17
|
+
|
18
|
+
== Install
|
19
|
+
|
20
|
+
$ gem install simplermailerscript
|
21
|
+
|
22
|
+
|
23
|
+
== Examples
|
24
|
+
|
25
|
+
$ cat body.txt | simplemailer recipient@example.com
|
26
|
+
|
27
|
+
(See simplemailer --help for more options and info.)
|
28
|
+
|
29
|
+
|
30
|
+
== Contributing
|
31
|
+
|
32
|
+
1. Fork it
|
33
|
+
2. Create your feature branch
|
34
|
+
3. Commit your changes
|
35
|
+
4. Push to the branch
|
36
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
@@ -0,0 +1,66 @@
|
|
1
|
+
def dump_load_path
|
2
|
+
puts $LOAD_PATH.join("\n")
|
3
|
+
found = nil
|
4
|
+
$LOAD_PATH.each do |path|
|
5
|
+
if File.exists?(File.join(path,"rspec"))
|
6
|
+
puts "Found rspec in #{path}"
|
7
|
+
if File.exists?(File.join(path,"rspec","core"))
|
8
|
+
puts "Found core"
|
9
|
+
if File.exists?(File.join(path,"rspec","core","rake_task"))
|
10
|
+
puts "Found rake_task"
|
11
|
+
found = path
|
12
|
+
else
|
13
|
+
puts "!! no rake_task"
|
14
|
+
end
|
15
|
+
else
|
16
|
+
puts "!!! no core"
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
if found.nil?
|
21
|
+
puts "Didn't find rspec/core/rake_task anywhere"
|
22
|
+
else
|
23
|
+
puts "Found in #{path}"
|
24
|
+
end
|
25
|
+
end
|
26
|
+
require 'bundler'
|
27
|
+
require 'rake/clean'
|
28
|
+
|
29
|
+
begin
|
30
|
+
require 'rspec/core/rake_task'
|
31
|
+
rescue LoadError
|
32
|
+
dump_load_path
|
33
|
+
raise
|
34
|
+
end
|
35
|
+
|
36
|
+
require 'cucumber'
|
37
|
+
require 'cucumber/rake/task'
|
38
|
+
gem 'rdoc' # we need the installed RDoc gem, not the system one
|
39
|
+
require 'rdoc/task'
|
40
|
+
|
41
|
+
include Rake::DSL
|
42
|
+
|
43
|
+
Bundler::GemHelper.install_tasks
|
44
|
+
|
45
|
+
|
46
|
+
RSpec::Core::RakeTask.new do |t|
|
47
|
+
# Put spec opts in a file named .rspec in root
|
48
|
+
end
|
49
|
+
|
50
|
+
|
51
|
+
CUKE_RESULTS = 'results.html'
|
52
|
+
CLEAN << CUKE_RESULTS
|
53
|
+
Cucumber::Rake::Task.new(:features) do |t|
|
54
|
+
t.cucumber_opts = "features --format html -o #{CUKE_RESULTS} --format pretty --no-source -x"
|
55
|
+
t.fork = false
|
56
|
+
end
|
57
|
+
|
58
|
+
Rake::RDocTask.new do |rd|
|
59
|
+
|
60
|
+
rd.main = "README.rdoc"
|
61
|
+
|
62
|
+
rd.rdoc_files.include("README.rdoc","lib/**/*.rb","bin/**/*")
|
63
|
+
end
|
64
|
+
|
65
|
+
task :default => [:spec,:features]
|
66
|
+
|
data/bin/simplemailer
ADDED
@@ -0,0 +1,57 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
PROGNAME = File.basename(__FILE__)
|
4
|
+
|
5
|
+
require 'optparse'
|
6
|
+
require 'methadone'
|
7
|
+
require 'simplemailer.rb'
|
8
|
+
|
9
|
+
class App
|
10
|
+
include Methadone::Main
|
11
|
+
include Methadone::CLILogging
|
12
|
+
|
13
|
+
main do |to| # Add args you want: |like,so|
|
14
|
+
# your program code here
|
15
|
+
# You can access CLI options via
|
16
|
+
# the options Hash
|
17
|
+
logger.level = Logger::DEBUG if options[:debug]
|
18
|
+
options[:to] = ARGV.dup
|
19
|
+
SimpleMailer.run(options)
|
20
|
+
end
|
21
|
+
|
22
|
+
# supplemental methods here
|
23
|
+
|
24
|
+
# Declare command-line interface here
|
25
|
+
|
26
|
+
description "Provide a simple mailing script"
|
27
|
+
|
28
|
+
# Accept flags via:
|
29
|
+
# on("--flag VAL","Some flag")
|
30
|
+
# options[flag] will contain VAL
|
31
|
+
|
32
|
+
on("-s SUBJECT","--subject","Subject to use in the message.","Default is <no subject>")
|
33
|
+
on("-f FROM","--from","From address.")
|
34
|
+
on("-b BODY","--body","Body of message","Default is to read from STDIN")
|
35
|
+
|
36
|
+
# Specify switches via:
|
37
|
+
# on("--[no-]switch","Some switch")
|
38
|
+
on("--debug","Turn on debugging")
|
39
|
+
|
40
|
+
# Or, just call OptionParser methods on opts
|
41
|
+
#
|
42
|
+
# Require an argument
|
43
|
+
# arg :some_arg
|
44
|
+
#
|
45
|
+
# # Make an argument optional
|
46
|
+
# arg :optional_arg, :optional
|
47
|
+
arg :to, :many, "Recipients"
|
48
|
+
|
49
|
+
defaults_from_env_var ENV['MAIL_TRANSPORT']
|
50
|
+
defaults_from_config_file '.simplemailer.rc'
|
51
|
+
|
52
|
+
version SimpleMailer::VERSION
|
53
|
+
|
54
|
+
use_log_level_option
|
55
|
+
|
56
|
+
go!
|
57
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
Feature: My bootstrapped app kinda works
|
2
|
+
In order to get going on coding my awesome app
|
3
|
+
I want to have aruba and cucumber setup
|
4
|
+
So I don't have to do it myself
|
5
|
+
|
6
|
+
Scenario: App just runs
|
7
|
+
When I get help for "simplemailer"
|
8
|
+
Then the exit status should be 0
|
9
|
+
And the banner should be present
|
10
|
+
And the banner should document that this app takes options
|
11
|
+
And the following options should be documented:
|
12
|
+
|--version|
|
13
|
+
|--subject|
|
14
|
+
|--from|
|
15
|
+
|--body|
|
16
|
+
|--debug|
|
17
|
+
And the banner should document that this app's arguments are:
|
18
|
+
|to|required|
|
@@ -0,0 +1 @@
|
|
1
|
+
# Put your step definitions here
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'aruba/cucumber'
|
2
|
+
require 'methadone/cucumber'
|
3
|
+
|
4
|
+
ENV['PATH'] = "#{File.expand_path(File.dirname(__FILE__) + '/../../bin')}#{File::PATH_SEPARATOR}#{ENV['PATH']}"
|
5
|
+
LIB_DIR = File.join(File.expand_path(File.dirname(__FILE__)),'..','..','lib')
|
6
|
+
|
7
|
+
Before do
|
8
|
+
# Using "announce" causes massive warnings on 1.9.2
|
9
|
+
@puts = true
|
10
|
+
@original_rubylib = ENV['RUBYLIB']
|
11
|
+
ENV['RUBYLIB'] = LIB_DIR + File::PATH_SEPARATOR + ENV['RUBYLIB'].to_s
|
12
|
+
end
|
13
|
+
|
14
|
+
After do
|
15
|
+
ENV['RUBYLIB'] = @original_rubylib
|
16
|
+
end
|
data/lib/simplemailer.rb
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
begin
|
2
|
+
PROGNAME.nil?
|
3
|
+
rescue NameError => e
|
4
|
+
PROGNAME = File.basename(__FILE__)
|
5
|
+
end
|
6
|
+
|
7
|
+
require 'methadone'
|
8
|
+
require 'mail'
|
9
|
+
require "simplemailer/version"
|
10
|
+
|
11
|
+
module SimpleMailer
|
12
|
+
|
13
|
+
include Methadone::CLILogging
|
14
|
+
|
15
|
+
module_function
|
16
|
+
|
17
|
+
def run(options)
|
18
|
+
logger.level = Logger::DEBUG if options[:debug] && !logger.debug?
|
19
|
+
|
20
|
+
debug "#{PROGNAME}@#{__LINE__} in #{self.class}##{__method__}: options: #{options.to_yaml}"
|
21
|
+
|
22
|
+
mail = Mail.new()
|
23
|
+
mail[:from] = options[:from]
|
24
|
+
mail[:to] = options[:to].join(",")
|
25
|
+
mail[:subject] = options[:subject] ||= '<no subject>'
|
26
|
+
mail['X-Mailer'] = "#{PROGNAME} #{SimpleMailer::VERSION}"
|
27
|
+
|
28
|
+
if options[:body]
|
29
|
+
mail[:body] = options[:body]
|
30
|
+
else
|
31
|
+
mail[:body] = STDIN.read
|
32
|
+
end
|
33
|
+
if options[:transport]
|
34
|
+
mail.delivery_method :sendmail, :location => options[:transport]
|
35
|
+
end
|
36
|
+
|
37
|
+
|
38
|
+
debug "#{PROGNAME}@#{__LINE__} in #{self.class}##{__method__}: mail: #{mail}"
|
39
|
+
mail.deliver unless options[:debug]
|
40
|
+
|
41
|
+
end
|
42
|
+
|
43
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'simplemailer/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "simplemailer"
|
8
|
+
spec.version = SimpleMailer::VERSION
|
9
|
+
spec.authors = ["Tamara Temple"]
|
10
|
+
spec.email = ["tamouse@gmail.com"]
|
11
|
+
spec.description = SimpleMailer::DESCRIPTION
|
12
|
+
spec.summary = SimpleMailer::SUMMARY
|
13
|
+
spec.homepage = ""
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files`.split($/)
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.3"
|
22
|
+
spec.add_development_dependency "rake"
|
23
|
+
spec.add_development_dependency('rdoc')
|
24
|
+
spec.add_development_dependency('aruba')
|
25
|
+
spec.add_development_dependency('rspec')
|
26
|
+
spec.add_dependency('methadone', '~> 1.2.6')
|
27
|
+
spec.add_dependency('mail')
|
28
|
+
end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
=begin rdoc
|
2
|
+
|
3
|
+
= RUN_SPEC.RB
|
4
|
+
|
5
|
+
*Author*:: Tamara Temple <tamara@tamaratemple.com>
|
6
|
+
*Since*:: 2013-05-27
|
7
|
+
*Copyright*:: (c) 2013 Tamara Temple Web Development
|
8
|
+
*License*:: MIT
|
9
|
+
|
10
|
+
=end
|
11
|
+
|
12
|
+
require 'spec_helper.rb'
|
13
|
+
|
14
|
+
module SimpleMailer
|
15
|
+
|
16
|
+
include Methadone::CLILogging
|
17
|
+
logger.level = Logger::DEBUG
|
18
|
+
|
19
|
+
Mail.defaults do
|
20
|
+
delivery_method :test
|
21
|
+
end
|
22
|
+
|
23
|
+
|
24
|
+
describe "SimpleMailer" do
|
25
|
+
it {SimpleMailer.should respond_to(:run)}
|
26
|
+
describe "#run" do
|
27
|
+
include Mail::Matchers
|
28
|
+
let(:recipients) {["tamouse@example.com", "another_mouse@example.com", "and_another@example.com"]}
|
29
|
+
let(:options) {
|
30
|
+
{:to => recipients,
|
31
|
+
:from => "sending_mouse@example.net",
|
32
|
+
:subject => "Test subject",
|
33
|
+
:body => "Test body for #{example.description}.\n\nHello, World!\n",
|
34
|
+
}
|
35
|
+
}
|
36
|
+
before(:each) do
|
37
|
+
Mail::TestMailer.deliveries.clear
|
38
|
+
SimpleMailer.run(options)
|
39
|
+
end
|
40
|
+
it {should have_sent_email}
|
41
|
+
it {should have_sent_email.from "sending_mouse@example.net"}
|
42
|
+
it {should have_sent_email.to(recipients) }
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# This file was generated by the `rspec --init` command. Conventionally, all
|
2
|
+
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
3
|
+
# Require this file using `require "spec_helper"` to ensure that it is only
|
4
|
+
# loaded once.
|
5
|
+
#
|
6
|
+
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
7
|
+
RSpec.configure do |config|
|
8
|
+
config.treat_symbols_as_metadata_keys_with_true_values = true
|
9
|
+
config.run_all_when_everything_filtered = true
|
10
|
+
config.filter_run :focus
|
11
|
+
|
12
|
+
# Run specs in random order to surface order dependencies. If you find an
|
13
|
+
# order dependency and want to debug it, you can fix the order by providing
|
14
|
+
# the seed, which is printed after each run.
|
15
|
+
# --seed 1234
|
16
|
+
config.order = 'random'
|
17
|
+
end
|
18
|
+
|
19
|
+
require 'methadone'
|
20
|
+
require 'simplemailer.rb'
|
metadata
ADDED
@@ -0,0 +1,169 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: simplemailer
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Tamara Temple
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-05-27 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.3'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.3'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ! '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ! '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rdoc
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ! '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: aruba
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ! '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ! '>='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ! '>='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: methadone
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ~>
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 1.2.6
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ~>
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 1.2.6
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: mail
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ! '>='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ! '>='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
description: A simple mailing script so I don't have to install a bunch of packages
|
112
|
+
I don't need.
|
113
|
+
email:
|
114
|
+
- tamouse@gmail.com
|
115
|
+
executables:
|
116
|
+
- simplemailer
|
117
|
+
extensions: []
|
118
|
+
extra_rdoc_files: []
|
119
|
+
files:
|
120
|
+
- .gitignore
|
121
|
+
- .rspec-sample
|
122
|
+
- Gemfile
|
123
|
+
- Gemfile.lock
|
124
|
+
- LICENSE.txt
|
125
|
+
- README.md
|
126
|
+
- README.rdoc
|
127
|
+
- Rakefile
|
128
|
+
- bin/simplemailer
|
129
|
+
- features/simplemailer.feature
|
130
|
+
- features/step_definitions/simplemailer_steps.rb
|
131
|
+
- features/support/env.rb
|
132
|
+
- lib/simplemailer.rb
|
133
|
+
- lib/simplemailer/version.rb
|
134
|
+
- simplemailer.gemspec
|
135
|
+
- spec/simplemailer/run_spec.rb
|
136
|
+
- spec/something_spec.rb
|
137
|
+
- spec/spec_helper.rb
|
138
|
+
homepage: ''
|
139
|
+
licenses:
|
140
|
+
- MIT
|
141
|
+
metadata: {}
|
142
|
+
post_install_message:
|
143
|
+
rdoc_options: []
|
144
|
+
require_paths:
|
145
|
+
- lib
|
146
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
147
|
+
requirements:
|
148
|
+
- - ! '>='
|
149
|
+
- !ruby/object:Gem::Version
|
150
|
+
version: '0'
|
151
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
152
|
+
requirements:
|
153
|
+
- - ! '>='
|
154
|
+
- !ruby/object:Gem::Version
|
155
|
+
version: '0'
|
156
|
+
requirements: []
|
157
|
+
rubyforge_project:
|
158
|
+
rubygems_version: 2.0.0
|
159
|
+
signing_key:
|
160
|
+
specification_version: 4
|
161
|
+
summary: A simple mailing script so I don't have to install a bunch of packages I
|
162
|
+
don't need.
|
163
|
+
test_files:
|
164
|
+
- features/simplemailer.feature
|
165
|
+
- features/step_definitions/simplemailer_steps.rb
|
166
|
+
- features/support/env.rb
|
167
|
+
- spec/simplemailer/run_spec.rb
|
168
|
+
- spec/something_spec.rb
|
169
|
+
- spec/spec_helper.rb
|