<commit_before>#!/usr/bin/env ruby -rubygems
# -*- encoding: utf-8 -*-
$:.push File.expand_path("../lib", __FILE__)
require "waveinfo/version"

Gem::Specification.new do |gem|
  gem.name        = 'waveinfo'
  gem.version     = WaveInfo::VERSION
  gem.author      = '<NAME>'
  gem.homepage    = 'http://github.com/njh/ruby-waveinfo'
  gem.summary     = 'Pure-ruby gem to get the information from the headers of Wave (.wav) files.'
  gem.description = 'waveinfo is a pure-ruby gem to get the information from the headers of Wave (.wav) files.'
  gem.license     = 'MIT' if gem.respond_to?(:license=)

  gem.rubyforge_project = 'waveinfo'

  gem.files         = %w(README.md LICENSE.md) + Dir.glob('lib/**/*.rb')
  gem.test_files    = Dir.glob('spec/*_spec.rb')
  gem.executables   = %w(waveinfo)
  gem.require_paths = %w(lib)

  if Gem.ruby_version > Gem::Version.new('2.3')
    gem.add_development_dependency 'bundler',  '>= 1.16'
    gem.add_development_dependency 'rake',     '>= 10.2.2'
    gem.add_development_dependency 'yard',     '>= 0.8.7'
    gem.add_development_dependency 'rspec',    '>= 3.5.0'
    gem.add_development_dependency 'simplecov','>= 0.9.2'
  elsif Gem.ruby_version > Gem::Version.new('1.9')
    gem.add_development_dependency 'bundler',  '>= 1.5.0'
    gem.add_development_dependency 'rake',     '>= 0.10.0'
    gem.add_development_dependency 'yard',     '>= 0.8.0'
    gem.add_development_dependency 'rspec',    '~> 3.2.0'
    gem.add_development_dependency 'simplecov'
  elsif Gem.ruby_version > Gem::Version.new('1.8')
    gem.add_development_dependency 'bundler',  '>= 1.1.0'
    gem.add_development_dependency 'rake',     '~> 0.8.7'
    gem.add_development_dependency 'yard',     '~> 0.8.0'
    gem.add_development_dependency 'rspec',    '~> 3.2.0'
  else
    raise "#{Gem.ruby_version} is an unsupported version of ruby"
  end
end
<commit_msg>Require more recent version of yard Due to security vulnerability: CVE-2017-17042<commit_after>#!/usr/bin/env ruby -rubygems
# -*- encoding: utf-8 -*-
$:.push File.expand_path("../lib", __FILE__)
require "waveinfo/version"

Gem::Specification.new do |gem|
  gem.name        = 'waveinfo'
  gem.version     = WaveInfo::VERSION
  gem.author      = '<NAME>'
  gem.homepage    = 'http://github.com/njh/ruby-waveinfo'
  gem.summary     = 'Pure-ruby gem to get the information from the headers of Wave (.wav) files.'
  gem.description = 'waveinfo is a pure-ruby gem to get the information from the headers of Wave (.wav) files.'
  gem.license     = 'MIT' if gem.respond_to?(:license=)

  gem.rubyforge_project = 'waveinfo'

  gem.files         = %w(README.md LICENSE.md) + Dir.glob('lib/**/*.rb')
  gem.test_files    = Dir.glob('spec/*_spec.rb')
  gem.executables   = %w(waveinfo)
  gem.require_paths = %w(lib)

  if Gem.ruby_version > Gem::Version.new('2.3')
    gem.add_development_dependency 'bundler',  '>= 1.16'
    gem.add_development_dependency 'rake',     '>= 10.2.2'
    gem.add_development_dependency 'yard',     '>= 0.9.11'
    gem.add_development_dependency 'rspec',    '>= 3.5.0'
    gem.add_development_dependency 'simplecov','>= 0.9.2'
  elsif Gem.ruby_version > Gem::Version.new('1.9')
    gem.add_development_dependency 'bundler',  '>= 1.5.0'
    gem.add_development_dependency 'rake',     '>= 0.10.0'
    gem.add_development_dependency 'yard',     '>= 0.8.0'
    gem.add_development_dependency 'rspec',    '~> 3.2.0'
    gem.add_development_dependency 'simplecov'
  elsif Gem.ruby_version > Gem::Version.new('1.8')
    gem.add_development_dependency 'bundler',  '>= 1.1.0'
    gem.add_development_dependency 'rake',     '~> 0.8.7'
    gem.add_development_dependency 'yard',     '~> 0.8.0'
    gem.add_development_dependency 'rspec',    '~> 3.2.0'
  else
    raise "#{Gem.ruby_version} is an unsupported version of ruby"
  end
end

{'fraction_non_alphanumeric': 0.15919223708366115, 'fraction_numerical': 0.02779963283503803, 'mean_word_length': 3.3390216154721273, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 37, 'https://': 0, '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': '1020387', 'n_tokens_mistral': 1496, 'n_tokens_neox': 1357, 'n_words': 268}