# -*- encoding: utf-8 -*-
$:.push File.expand_path('../lib', __FILE__)

Gem::Specification.new do |s|
  s.name        = 'riddle'
  s.version     = '2.1.0'
  s.platform    = Gem::Platform::RUBY
  s.authors     = ['Pat Allan']
  s.email       = ['pat@freelancing-gods.com']
  s.homepage    = 'http://pat.github.io/riddle/'
  s.summary     = %q{An API for Sphinx, written in and for Ruby.}
  s.description = %q{A Ruby API and configuration helper for the Sphinx search service.}
  s.license     = 'MIT'

  s.rubyforge_project = 'riddle'

  s.files         = `git ls-files`.split("\n")
  s.test_files    = `git ls-files -- {test,spec,features}/*`.split("\n")
  s.executables   = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
  s.require_paths = ['lib']

  s.add_development_dependency 'rake',   '>= 0.9.2'
  s.add_development_dependency 'rspec',  '>= 2.5.0'
  s.add_development_dependency 'yard',   '>= 0.7.2'
end

# -*- encoding: utf-8 -*-
$:.push File.expand_path('../lib', __FILE__)

Gem::Specification.new do |s|
  s.name        = 'riddle'
  s.version     = '2.1.0'
  s.platform    = Gem::Platform::RUBY
  s.authors     = ['Pat Allan']
  s.email       = ['pat@freelancing-gods.com']
  s.homepage    = 'http://pat.github.io/riddle/'
  s.summary     = %q{An API for Sphinx, written in and for Ruby.}
  s.description = %q{A Ruby API and configuration helper for the Sphinx search service.}
  s.license     = 'MIT'

  s.rubyforge_project = 'riddle'

  s.files         = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
  s.require_paths = ['lib']

  s.add_development_dependency 'rake',   '>= 0.9.2'
  s.add_development_dependency 'rspec',  '>= 2.5.0'
  s.add_development_dependency 'yard',   '>= 0.7.2'
end

Stop packaging test files with the gem
Stop packaging test files with the gem

It drastically reduces the size of the gem, from 1.9M to 32K. The
default for new gems (created by bundler) is not to include test files.
See bundler/bundler#3207
