require 'rake'

spec = Gem::Specification.new do |s|
  s.name = 'validates_email_format_of'
  s.version = '1.4.5'
  s.summary = 'Validate e-mail addresses against RFC 2822 and RFC 3696.'
  s.description = s.summary
  s.extra_rdoc_files = ['README.rdoc', 'CHANGELOG.rdoc', 'MIT-LICENSE']
  s.test_files = FileList['test/**/*.rb', 'test/**/*.yml'].to_a
  s.files = FileList['MIT-LICENSE', '*.rb', '*.rdoc', 'lib/**/*.rb', 'test/**/*.rb', 'test/**/*.yml'].to_a
  s.require_path = 'lib'
  s.has_rdoc = true
  s.rdoc_options << '--title' <<  'validates_email_format_of'
  s.author = "Alex Dunae"
  s.email = "code@dunae.ca"
  s.homepage = "https://github.com/alexdunae/validates_email_format_of"
end


spec = Gem::Specification.new do |s|
  s.name = 'validates_email_format_of'
  s.version = '1.4.5'
  s.summary = 'Validate e-mail addresses against RFC 2822 and RFC 3696.'
  s.description = s.summary
  s.extra_rdoc_files = ['README.rdoc', 'CHANGELOG.rdoc', 'MIT-LICENSE']
  s.test_files = Dir['test/**/*.rb', 'test/**/*.yml']
  s.files = Dir['MIT-LICENSE', '*.rb', '*.rdoc', 'lib/**/*.rb', 'test/**/*.rb', 'test/**/*.yml']
  s.require_path = 'lib'
  s.has_rdoc = true
  s.rdoc_options << '--title' <<  'validates_email_format_of'
  s.author = "Alex Dunae"
  s.email = "code@dunae.ca"
  s.homepage = "https://github.com/alexdunae/validates_email_format_of"
end


Fix RVM/Bundler/Capistrano errors by not requiring rake from gemspec.
Fix RVM/Bundler/Capistrano errors by not requiring rake from gemspec.

Use Dir[] instead of Rake FileList[].

Before I made this change, I got errors like

    ** [out :: example.com] There was a LoadError while evaluating
    validates_email_format_of.gemspec:
     ** [out :: example.com] no such file to load -- rake from
     ** [out :: example.com]
    /srv/www/example.com/shared/bundle/ruby/1.8/bundler/gems/validates_email_format_of-c060fc482552/validates_email_format_of.gemspec:1

trying to deploy a Rails 3 app with RVM, Bundler and Capistrano. See
http://pastie.org/private/0w9hejawalrlgxshopreq for more on that error.
