2014-02-26 18:50:16 +00:00
|
|
|
require File.expand_path('../lib/oga/version', __FILE__)
|
|
|
|
|
|
|
|
Gem::Specification.new do |s|
|
|
|
|
s.name = 'oga'
|
|
|
|
s.version = Oga::VERSION
|
|
|
|
s.authors = ['Yorick Peterse']
|
|
|
|
s.email = 'yorickpeterse@gmail.com'
|
|
|
|
s.summary = 'A pure Ruby HTML/XML parser.'
|
|
|
|
s.homepage = 'https://github.com/yorickpeterse/oga/'
|
|
|
|
s.description = s.summary
|
|
|
|
s.license = 'MIT'
|
|
|
|
|
|
|
|
s.files = File.read(File.expand_path('../MANIFEST', __FILE__)).split("\n")
|
|
|
|
|
2014-05-05 22:23:07 +00:00
|
|
|
if RUBY_PLATFORM == 'java'
|
|
|
|
s.files << 'lib/liboga.jar'
|
|
|
|
|
|
|
|
s.platform = 'java'
|
|
|
|
else
|
2014-05-06 06:47:02 +00:00
|
|
|
s.extensions = ['ext/liboga/extconf.rb']
|
2014-05-05 22:23:07 +00:00
|
|
|
end
|
2014-05-04 22:25:34 +00:00
|
|
|
|
2014-02-26 18:50:16 +00:00
|
|
|
s.has_rdoc = 'yard'
|
|
|
|
s.required_ruby_version = '>= 1.9.3'
|
|
|
|
|
|
|
|
s.add_dependency 'racc'
|
|
|
|
|
|
|
|
s.add_development_dependency 'rake'
|
|
|
|
s.add_development_dependency 'rspec'
|
|
|
|
s.add_development_dependency 'yard'
|
|
|
|
s.add_development_dependency 'simplecov'
|
|
|
|
s.add_development_dependency 'kramdown'
|
2014-03-21 15:59:44 +00:00
|
|
|
s.add_development_dependency 'benchmark-ips'
|
2014-05-04 22:25:34 +00:00
|
|
|
s.add_development_dependency 'rake-compiler'
|
2014-02-26 18:50:16 +00:00
|
|
|
end
|