<commit_before>require File.expand_path('../lib/oga/version', __FILE__)

Gem::Specification.new do |s|
  s.name        = 'oga'
  s.version     = Oga::VERSION
  s.authors     = ['<NAME>']
  s.email       = '<EMAIL>'
  s.summary     = 'Oga is an XML/HTML parser written in Ruby.'
  s.homepage    = 'https://github.com/yorickpeterse/oga/'
  s.description = s.summary
  s.license     = 'MIT'

  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.has_rdoc              = 'yard'
  s.required_ruby_version = '>= 1.9.3'

  s.add_dependency 'racc', ['~> 1.4', '>= 1.4.12']
  s.add_dependency 'ast'
  s.add_dependency 'ruby-ll', '~> 1.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']<commit_msg>Require ruby-ll 2.0 or newer<commit_after>require File.expand_path('../lib/oga/version', __FILE__)

Gem::Specification.new do |s|
  s.name        = 'oga'
  s.version     = Oga::VERSION
  s.authors     = ['<NAME>']
  s.email       = '<EMAIL>'
  s.summary     = 'Oga is an XML/HTML parser written in Ruby.'
  s.homepage    = 'https://github.com/yorickpeterse/oga/'
  s.description = s.summary
  s.license     = 'MIT'

  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.has_rdoc              = 'yard'
  s.required_ruby_version = '>= 1.9.3'

  s.add_dependency 'racc', ['~> 1.4', '>= 1.4.12']
  s.add_dependency 'ast'
  s.add_dependency 'ruby-ll', '~> 2.0'

  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']
{'fraction_non_alphanumeric': 0.19067271976888156, 'fraction_numerical': 0.013206768468840282, 'mean_word_length': 2.805337519623234, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 19, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1939842', 'n_tokens_mistral': 1007, 'n_tokens_neox': 938, 'n_words': 163}