Initial mess

This commit is contained in:
Luca Guidi 2015-06-29 09:05:46 +02:00
commit 2b2608353b
14 changed files with 243 additions and 0 deletions

11
.gitignore vendored Normal file
View File

@ -0,0 +1,11 @@
/.bundle/
/.yardoc
/Gemfile.lock
/_yardoc/
/coverage/
/doc/
/pkg/
/spec/reports/
/tmp/
.devnotes
.greenbar

23
.travis.yml Normal file
View File

@ -0,0 +1,23 @@
sudo: false
cache: bundler
script: 'bundle exec rake test:coverage --trace'
rvm:
- 2.0.0
- 2.1.0
- 2.1.1
- 2.1.2
- 2.1.3
- 2.1.4
- 2.1.5
- 2.1.6
- 2.2.0
- 2.2.1
- 2.2.2
- rbx-2
- jruby-head
matrix:
include:
- rvm: jruby-head
allow_failures:
- rvm: jruby-head

2
CHANGELOG.md Normal file
View File

@ -0,0 +1,2 @@
# Lotus::Router
Mail for Ruby applications

12
Gemfile Normal file
View File

@ -0,0 +1,12 @@
source 'https://rubygems.org'
gemspec
if !ENV['TRAVIS']
gem 'byebug', require: false, platforms: :mri if RUBY_VERSION >= '2.1.0'
gem 'yard', require: false
end
gem 'lotus-utils', '~> 0.5', require: false, github: 'lotus/utils', branch: '0.5.x'
gem 'simplecov', require: false
gem 'coveralls', require: false

22
LICENSE.md Normal file
View File

@ -0,0 +1,22 @@
Copyright © 2015 Luca Guidi
MIT License
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:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
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.

65
README.md Normal file
View File

@ -0,0 +1,65 @@
# Lotus::Mailer
Mail for Ruby applications.
## Status
[![Gem Version](http://img.shields.io/gem/v/lotus-mailer.svg)](https://badge.fury.io/rb/lotus-mailer)
[![Build Status](http://img.shields.io/travis/lotus/mailer/master.svg)](https://travis-ci.org/lotus/mailer?branch=master)
[![Coverage](http://img.shields.io/coveralls/lotus/mailer/master.svg)](https://coveralls.io/r/lotus/mailer)
[![Code Climate](http://img.shields.io/codeclimate/github/lotus/mailer.svg)](https://codeclimate.com/github/lotus/mailer)
[![Dependencies](http://img.shields.io/gemnasium/lotus/mailer.svg)](https://gemnasium.com/lotus/mailer)
[![Inline Docs](http://inch-ci.org/github/lotus/mailer.svg)](http://inch-ci.org/github/lotus/mailer)
## Contact
* Home page: http://lotusrb.org
* Mailing List: http://lotusrb.org/mailing-list
* API Doc: http://rdoc.info/gems/lotus-mailer
* Bugs/Issues: https://github.com/lotus/mailer/issues
* Support: http://stackoverflow.com/questions/tagged/lotus-ruby
* Chat: https://gitter.im/lotus/chat
## Rubies
__Lotus::Mailer__ supports Ruby (MRI) 2+.
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'lotus-mailer'
```
And then execute:
$ bundle
Or install it yourself as:
$ gem install lotus-mailer
## Usage
TODO: Write usage instructions here
## Versioning
__Lotus::Mailer__ uses [Semantic Versioning 2.0.0](http://semver.org)
## Development
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake false` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/lotus-mailer.
## Copyright
Copyright © 2015 Luca Guidi Released under MIT License

17
Rakefile Normal file
View File

@ -0,0 +1,17 @@
require 'rake'
require 'rake/testtask'
require 'bundler/gem_tasks'
Rake::TestTask.new do |t|
t.pattern = 'test/**/*_test.rb'
t.libs.push 'test'
end
namespace :test do
task :coverage do
ENV['COVERAGE'] = 'true'
Rake::Task['test'].invoke
end
end
task default: :test

14
bin/console Executable file
View File

@ -0,0 +1,14 @@
#!/usr/bin/env ruby
require "bundler/setup"
require "lotus/mailer"
# You can add fixtures and/or initialization code here to make experimenting
# with your gem easier. You can also use a different console, if you like.
# (If you use this, don't forget to add pry to your Gemfile!)
# require "pry"
# Pry.start
require "irb"
IRB.start

7
bin/setup Executable file
View File

@ -0,0 +1,7 @@
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
bundle install
# Do any other automated setup that you need to do here

7
lib/lotus/mailer.rb Normal file
View File

@ -0,0 +1,7 @@
require "lotus/mailer/version"
module Lotus
module Mailer
# Your code goes here...
end
end

View File

@ -0,0 +1,5 @@
module Lotus
module Mailer
VERSION = '0.0.0'
end
end

31
lotus-mailer.gemspec Normal file
View File

@ -0,0 +1,31 @@
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'lotus/mailer/version'
Gem::Specification.new do |spec|
spec.name = 'lotus-mailer'
spec.version = Lotus::Mailer::VERSION
spec.authors = ['Luca Guidi']
spec.email = ['me@lucaguidi.com']
spec.summary = %q{Mail for Ruby applications.}
spec.description = %q{Mail for Ruby applications and Lotus mailers}
spec.homepage = 'http://lotusrb.org'
spec.license = 'MIT'
if spec.respond_to?(:metadata)
spec.metadata['allowed_push_host'] = 'https://rubygems.org'
else
raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
end
spec.files = `git ls-files -- lib/* CHANGELOG.md LICENSE.md README.md lotus-mailer.gemspec`.split($/)
spec.bindir = 'exe'
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ['lib']
spec.add_development_dependency 'bundler', '~> 1.10'
spec.add_development_dependency 'rake', '~> 10.0'
spec.add_development_dependency 'minitest', '~> 5.7'
end

20
test/test_helper.rb Normal file
View File

@ -0,0 +1,20 @@
require 'rubygems'
require 'bundler/setup'
if ENV['COVERAGE'] == 'true'
require 'simplecov'
require 'coveralls'
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
SimpleCov::Formatter::HTMLFormatter,
Coveralls::SimpleCov::Formatter
]
SimpleCov.start do
command_name 'test'
add_filter 'test'
end
end
require 'minitest/autorun'
$:.unshift 'lib'

7
test/version_test.rb Normal file
View File

@ -0,0 +1,7 @@
require 'test_helper'
describe Lotus::Mailer::VERSION do
it 'exposes version' do
Lotus::Mailer::VERSION.must_equal '0.0.0'
end
end