-
Notifications
You must be signed in to change notification settings - Fork 39
/
oga.gemspec
44 lines (37 loc) · 1.14 KB
/
oga.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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 = '[email protected]'
s.summary = 'Oga is an XML/HTML parser written in Ruby.'
s.homepage = 'https://github.com/yorickpeterse/oga/'
s.description = s.summary
s.license = 'MPL-2.0'
s.files = Dir.glob([
'checkum/**/*',
'doc/**/*',
'lib/**/*.rb',
'ext/**/*',
'README.md',
'LICENSE',
'oga.gemspec',
'.yardopts'
]).select { |path| File.file?(path) }
if RUBY_PLATFORM == 'java'
s.files << 'lib/liboga.jar'
s.platform = 'java'
else
s.extensions = ['ext/c/extconf.rb']
end
s.required_ruby_version = '>= 2.3.0'
s.add_dependency 'ast'
s.add_dependency 'ruby-ll', '~> 2.1'
s.add_development_dependency 'rake'
s.add_development_dependency 'rspec', ['~> 3.0']
s.add_development_dependency 'yard'
s.add_development_dependency 'simplecov'
s.add_development_dependency 'kramdown'
s.add_development_dependency 'benchmark-ips', ['~> 2.0']
s.add_development_dependency 'rake-compiler'
end