Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Initial commit.

  • Loading branch information...
commit c095d141dd6a9105797a7a73f3f3bf577b846960 0 parents
@aarongough authored
20 MIT-LICENSE
@@ -0,0 +1,20 @@
+Copyright (c) 2010 Aaron Gough (http://thingsaaronmade.com/)
+
+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.
9 README.rdoc
@@ -0,0 +1,9 @@
+= mini-smtp-server
+
+mini-smtp-server is a small and easily customizable SMTP server. It is designed mainly to be integrated into other systems that will decide what to do with the mail that is received. By default mini-smtp-server stores any mail it receives in an SQLite database, which makes it easy to use this database an interface for other software to retrieve the emails.
+
+=== Author & Credits
+
+Author:: {Aaron Gough}[mailto:aaron@aarongough.com]
+
+Copyright (c) 2010 {Aaron Gough}[http://thingsaaronmade.com/] ({thingsaaronmade.com}[http://thingsaaronmade.com/]), released under the MIT license
42 Rakefile
@@ -0,0 +1,42 @@
+require 'rake'
+require 'rake/testtask'
+require 'rake/rdoctask'
+
+desc 'Default: run unit tests.'
+task :default => :test
+
+begin
+ require 'jeweler'
+ Jeweler::Tasks.new do |gemspec|
+ gemspec.name = "mini-smtp-server"
+ gemspec.summary = "A small and simple SMTP server"
+ gemspec.description = "A small and simple SMTP server"
+ gemspec.email = "aaron@aarongough.com"
+ gemspec.homepage = "https://github.com/aarongough/mini-smtp-server"
+ gemspec.authors = ["Aaron Gough"]
+ gemspec.rdoc_options << '--line-numbers' << '--inline-source'
+ gemspec.extra_rdoc_files = ['README.rdoc', 'MIT-LICENSE']
+ end
+rescue LoadError
+ puts "Jeweler not available. Install it with: gem install jeweler"
+end
+
+
+desc 'Test mini-smtp-server.'
+Rake::TestTask.new(:test) do |t|
+ t.libs << 'lib/*.rb'
+ t.libs << 'test'
+ t.pattern = 'test/**/*_test.rb'
+ t.verbose = true
+end
+
+
+desc 'Generate documentation for mini-smtp-server.'
+Rake::RDocTask.new(:rdoc) do |rdoc|
+ rdoc.rdoc_dir = 'rdoc'
+ rdoc.title = 'ruby-tmdb'
+ rdoc.options << '--line-numbers' << '--inline-source'
+ rdoc.rdoc_files.include('README.rdoc')
+ rdoc.rdoc_files.include('lib/**/*.rb')
+ rdoc.rdoc_files.include('app/**/*.rb')
+end
1  lib/mini-smtp-server.rb
@@ -0,0 +1 @@
+require File.expand_path(File.join(File.dirname(__FILE__), "mini-smtp-server", "mini-smtp-server.rb"))
0  lib/mini-smtp-server/mini-smtp-server.rb
No changes.
1  test/setup/.gitignore
@@ -0,0 +1 @@
+tmdb_api_key.txt
21 test/setup/test_unit_extensions.rb
@@ -0,0 +1,21 @@
+module Test::Unit
+ # Used to fix a minor minitest/unit incompatibility in flexmock
+ AssertionFailedError = Class.new(StandardError)
+
+ class TestCase
+
+ def self.test(name, &block)
+ test_name = "test_#{name.gsub(/\s+/,'_')}".to_sym
+ defined = instance_method(test_name) rescue false
+ raise "#{test_name} is already defined in #{self}" if defined
+ if block_given?
+ define_method(test_name, &block)
+ else
+ define_method(test_name) do
+ flunk "No implementation provided for #{name}"
+ end
+ end
+ end
+
+ end
+end
20 test/test_helper.rb
@@ -0,0 +1,20 @@
+TEST_LIVE_API = false
+
+require 'rubygems'
+require 'test/unit'
+
+unless(TEST_LIVE_API)
+ require 'webmock/test_unit'
+ include WebMock
+end
+
+require_files = []
+require_files << File.join(File.dirname(__FILE__), '..', 'lib', 'ruby-tmdb.rb')
+require_files.concat Dir[File.join(File.dirname(__FILE__), 'setup', '*.rb')]
+
+require_files.each do |file|
+ require File.expand_path(file)
+end
+
+#load(File.join('unit', 'test_direct_require.rb'), true)
+system('ruby ' + File.expand_path(File.join(File.dirname(__FILE__), 'unit', 'test_direct_require.rb')))
9 test/unit/test_test.rb
@@ -0,0 +1,9 @@
+require "test/unit"
+
+class TestTest < Test::Unit::TestCase
+
+ test "flunk" do
+ flunk
+ end
+
+end
Please sign in to comment.
Something went wrong with that request. Please try again.