Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

License, readme and rake task to generate rdoc.

  • Loading branch information...
commit 8e463601a124e674a37c9ed2b5f22c7f86d44cae 1 parent ecaac07
Tero Tilus authored
Showing with 48 additions and 0 deletions.
  1. +20 −0 LICENSE
  2. +15 −0 README
  3. +13 −0 Rakefile
20 LICENSE
View
@@ -0,0 +1,20 @@
+Copyright (c) 2009 Skillnet Oy
+
+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.
15 README
View
@@ -0,0 +1,15 @@
+= ValidatesEmailWithSmtp
+
+Email validation using SMTP.
+
+ValidatesEmailWithSmtp provides a method to validate email address
+field against the mail server, which would receive the mail in case
+you wanted to send one. The original idea was shamelessly ripped from
+Webdigi blog entry
+<a href="http://www.webdigi.co.uk/blog/2009/how-to-check-if-an-email-address-exists-without-sending-an-email/">
+How to check if an email address exists without sending an email?</a>.
+
+Validation actually almost sends mail. It finds out the mail server
+for the domain part of validated address, connects to server and
+proceeds to sending mail up untill it finds out what the server has to
+say about the recipient address. Then it quits the connection.
13 Rakefile
View
@@ -0,0 +1,13 @@
+require 'rake'
+require 'rake/rdoctask'
+
+desc 'Generate documentation plugin.'
+Rake::RDocTask.new do |rdoc|
+ rdoc.rdoc_dir = 'doc'
+ rdoc.title = 'ValidatesEmailWithSmtp'
+ rdoc.options << '--line-numbers' << '--inline-source'
+ rdoc.main = 'README'
+ rdoc.rdoc_files.include('README')
+ rdoc.rdoc_files.include('LICENSE')
+ rdoc.rdoc_files.include('lib/**/*.rb')
+end
Please sign in to comment.
Something went wrong with that request. Please try again.