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'
|
2014-09-12 12:40:01 +00:00
|
|
|
s.summary = 'Oga is an XML/HTML parser written in Ruby.'
|
2014-02-26 18:50:16 +00:00
|
|
|
s.homepage = 'https://github.com/yorickpeterse/oga/'
|
|
|
|
s.description = s.summary
|
|
|
|
s.license = 'MIT'
|
|
|
|
|
2014-05-07 09:11:29 +00:00
|
|
|
s.files = Dir.glob([
|
2014-06-01 20:16:38 +00:00
|
|
|
'checkum/**/*',
|
|
|
|
'doc/**/*',
|
2014-05-07 09:11:29 +00:00
|
|
|
'lib/**/*.rb',
|
2014-06-01 20:16:38 +00:00
|
|
|
'ext/**/*',
|
2014-05-07 09:11:29 +00:00
|
|
|
'README.md',
|
|
|
|
'LICENSE',
|
|
|
|
'oga.gemspec',
|
|
|
|
'.yardopts'
|
2014-06-01 20:16:38 +00:00
|
|
|
]).select { |path| File.file?(path) }
|
2014-02-26 18:50:16 +00:00
|
|
|
|
2014-05-05 22:23:07 +00:00
|
|
|
if RUBY_PLATFORM == 'java'
|
|
|
|
s.files << 'lib/liboga.jar'
|
|
|
|
|
|
|
|
s.platform = 'java'
|
|
|
|
else
|
2014-05-06 22:29:10 +00:00
|
|
|
s.extensions = ['ext/c/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'
|
|
|
|
|
2014-08-26 18:53:36 +00:00
|
|
|
s.add_dependency 'racc', ['~> 1.4', '>= 1.4.12']
|
2014-06-01 20:16:38 +00:00
|
|
|
s.add_dependency 'ast'
|
2015-02-13 09:53:34 +00:00
|
|
|
s.add_dependency 'ruby-ll'
|
2014-02-26 18:50:16 +00:00
|
|
|
|
|
|
|
s.add_development_dependency 'rake'
|
2014-06-02 10:09:38 +00:00
|
|
|
s.add_development_dependency 'rspec', ['~> 3.0']
|
2014-02-26 18:50:16 +00:00
|
|
|
s.add_development_dependency 'yard'
|
|
|
|
s.add_development_dependency 'simplecov'
|
|
|
|
s.add_development_dependency 'kramdown'
|
2014-09-02 07:58:14 +00:00
|
|
|
s.add_development_dependency 'benchmark-ips', ['~> 2.0']
|
2014-05-04 22:25:34 +00:00
|
|
|
s.add_development_dependency 'rake-compiler'
|
2014-02-26 18:50:16 +00:00
|
|
|
end
|