Make mailcatcher aware of its version.

This commit is contained in:
Samuel Cochran 2011-10-09 16:50:17 +08:00
parent 024186ebc3
commit bbcd792a03
2 changed files with 2 additions and 1 deletions

View File

@ -55,6 +55,7 @@ module_function
@@defaults.dup.tap do |options|
OptionParser.new do |parser|
parser.banner = "Usage: mailcatcher [options]"
parser.version = File.read(File.expand_path("../../VERSION", __FILE__))
parser.on("--ip IP", "Set the ip address of both servers") do |ip|
options[:smtp_ip] = options[:http_ip] = ip

View File

@ -15,7 +15,7 @@ Gem::Specification.new do |s|
s.homepage = "http://mailcatcher.me"
s.files = Dir[
"README.md", "LICENSE",
"README.md", "LICENSE", "VERSION",
"bin/*",
"lib/**/*.rb",
"public/images/**/*",