rays.gemspec in rays-0.1.2 vs rays.gemspec in rays-0.1.3

- old
+ new

@@ -5,16 +5,19 @@ require 'rake' require 'rays/module' -FILES = FileList[*%w[ - ChangeLog +MODULE = Rays +NAME = MODULE.name.downcase + + +FILES = FileList[*%W[ README + ChangeLog Rakefile - support.rb - rays.gemspec + #{NAME}.gemspec VERSION task/**/*.rake ext/**/*.rb ext/**/*.h ext/**/*.cpp @@ -24,31 +27,38 @@ src/**/*.cpp src/**/*.mm test/**/*.rb ]] +RDOCS = FileList[*%W[ + README + .doc/ext/**/*.cpp +]] + + Gem::Specification.new do |s| - s.name = 'rays' + s.name = NAME s.summary = 'A Drawing Engine using OpenGL.' s.description = 'This library helps you to develop graphics application with OpenGL.' - s.version = Rays.version + s.version = MODULE.version s.authors = %w[snori] s.email = 'snori@xord.org' - s.homepage = 'http://github.com/xord/rays' + s.homepage = "http://github.com/xord/#{NAME}" s.platform = Gem::Platform::RUBY s.required_ruby_version = '>=1.9.0' s.require_paths << 'ext' + s.add_runtime_dependency 'xot' s.add_runtime_dependency 'rucy' s.add_development_dependency 'rake' s.add_development_dependency 'gemcutter' s.files = FILES.to_a s.test_files = FileList['test/**/test_*.rb'].to_a s.has_rdoc = true - s.extra_rdoc_files = ['README'] + s.extra_rdoc_files = RDOCS.to_a s.extensions << 'Rakefile' end