forked from mikel/mail
/
mail.gemspec
30 lines (26 loc) · 1003 Bytes
/
mail.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
def self.load_version
vh = {}
File.read(File.join(File.dirname(__FILE__), 'lib/VERSION')).lines do |line|
type, value = line.chomp.split(":")
next if type =~ /^\s+$/ || value =~ /^\s+$/
vh[type] = value
end
[ vh['major'], vh['minor'], vh['patch'], vh['build'] ].compact.join(".")
end
Gem::Specification.new do |s|
s.name = "mail"
s.version = load_version
s.author = "Mikel Lindsaar"
s.email = "raasdnil@gmail.com"
s.homepage = "http://github.com/mikel/mail"
s.description = "A really Ruby Mail handler."
s.summary = "Mail provides a nice Ruby DSL for making, sending and reading emails."
s.platform = Gem::Platform::RUBY
s.has_rdoc = true
s.extra_rdoc_files = ["README.rdoc", "CHANGELOG.rdoc", "TODO.rdoc"]
s.add_dependency('activesupport', ">= 2.3.6")
s.add_dependency('mime-types')
s.add_dependency('treetop', '>= 1.4.5')
s.require_path = 'lib'
s.files = %w(README.rdoc Rakefile TODO.rdoc) + Dir.glob("lib/**/*")
end