mirror of
https://github.com/samsonjs/simple_oauth.git
synced 2026-03-25 08:45:54 +00:00
More gemspec-related cleanup.
This commit is contained in:
parent
3cfb55566e
commit
e66291245d
2 changed files with 19 additions and 6 deletions
24
Rakefile
24
Rakefile
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue