More gemspec-related cleanup.

This commit is contained in:
laserlemon 2010-10-13 15:48:39 -04:00
parent 3cfb55566e
commit e66291245d
2 changed files with 19 additions and 6 deletions

View file

@ -13,6 +13,14 @@ end
task :default => :test
Rake::RDocTask.new do |rdoc|
version = SimpleOAuth::Version::STRING
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "simple_oauth #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end
begin
require 'rcov/rcovtask'
Rcov::RcovTask.new do |rcov|
@ -27,10 +35,14 @@ rescue LoadError
end
end
Rake::RDocTask.new do |rdoc|
version = SimpleOAuth::Version::STRING
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "simple_oauth #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
def gemspec
@gemspec ||= begin
file = File.expand_path('../simple_oauth.gemspec', __FILE__)
eval(File.read(file), binding, file)
end
end
desc 'Validate the gemspec'
task :gemspec do
gemspec.validate
end

View file

@ -12,6 +12,7 @@ Gem::Specification.new do |spec|
spec.name = 'simple_oauth'
spec.rdoc_options = ['--charset=UTF-8']
spec.required_ruby_version = '>= 1.8.7'
spec.required_rubygems_version = '>= 1.2.0'
spec.summary = 'Simply builds and verifies OAuth headers'
spec.test_files = `git ls-files -- test/**/*_test.rb`.split("\n")
spec.version = SimpleOAuth::Version::STRING