<commit_before>require 'rake/gempackagetask'

WIN_SUFFIX = ENV['WIN_SUFFIX'] || 'i386-mswin32'

task :clean => :clobber_package

spec = Gem::Specification.new do |s|
  s.name                  = Thin::NAME
  s.version               = Thin::VERSION::STRING
  s.platform              = WIN ? Gem::Platform::CURRENT : Gem::Platform::RUBY
  s.summary               = 
  s.description           = "A thin and fast web server"
  s.author                = "<NAME>"
  s.email                 = '<EMAIL>'
  s.homepage              = 'http://code.macournoyer.com/thin/'
  s.rubyforge_project     = 'thin'
  s.has_rdoc              = true
  s.executables           = %w(thin)

  s.required_ruby_version = '>= 1.8.5'
  
  s.add_dependency        'rack',         '>= 0.2.0'
  if WIN
    s.add_dependency      'eventmachine', '= 0.8.1' # TODO replace w/ latest precompiled
  else
    s.add_dependency      'daemons',      '>= 1.0.9'
    s.add_dependency      'eventmachine', '>= 0.10.0' # TODO '>= 0.11.0' when it's released
  end

  s.files                 = %w(COPYING CHANGELOG COMMITTERS README Rakefile) +
                            Dir.glob("{benchmark,bin,doc,example,lib,spec,tasks}/**/*") + 
                            Dir.glob("ext/**/*.{h,c,rb,rl}")
  
  if WIN
    s.files              += ["lib/thin_parser.#{Config::CONFIG['DLEXT']}"]
  else
    s.extensions          = FileList["ext/**/extconf.rb"].to_a
  end
  
  s.require_path          = "lib"
  s.bindir                = "bin"
end

Rake::GemPackageTask.new(spec) do |p|
  p.gem_spec = spec
end

task :tag_warn do
  puts "*" * 40
  puts "Don't forget to tag the release:"
  puts
  puts "  git tag -m 'Tagging #{Thin::SERVER}' -a v#{Thin::VERSION::STRING}"<commit_msg>Update gem dependencies to use latest rack (rack 0.2 has a nasty cookie bug) and allow newer eventmachine win32 builds<commit_after>require 'rake/gempackagetask'

WIN_SUFFIX = ENV['WIN_SUFFIX'] || 'i386-mswin32'

task :clean => :clobber_package

spec = Gem::Specification.new do |s|
  s.name                  = Thin::NAME
  s.version               = Thin::VERSION::STRING
  s.platform              = WIN ? Gem::Platform::CURRENT : Gem::Platform::RUBY
  s.summary               = 
  s.description           = "A thin and fast web server"
  s.author                = "<NAME>"
  s.email                 = '<EMAIL>'
  s.homepage              = 'http://code.macournoyer.com/thin/'
  s.rubyforge_project     = 'thin'
  s.has_rdoc              = true
  s.executables           = %w(thin)

  s.required_ruby_version = '>= 1.8.5'
  
  s.add_dependency        'rack',         '>= 0.3.0'
  if WIN
    s.add_dependency      'eventmachine', '>= 0.8.1' # TODO replace w/ latest precompiled
  else
    s.add_dependency      'daemons',      '>= 1.0.9'
    s.add_dependency      'eventmachine', '>= 0.10.0' # TODO '>= 0.11.0' when it's released
  end

  s.files                 = %w(COPYING CHANGELOG COMMITTERS README Rakefile) +
                            Dir.glob("{benchmark,bin,doc,example,lib,spec,tasks}/**/*") + 
                            Dir.glob("ext/**/*.{h,c,rb,rl}")
  
  if WIN
    s.files              += ["lib/thin_parser.#{Config::CONFIG['DLEXT']}"]
  else
    s.extensions          = FileList["ext/**/extconf.rb"].to_a
  end
  
  s.require_path          = "lib"
  s.bindir                = "bin"
end

Rake::GemPackageTask.new(spec) do |p|
  p.gem_spec = spec
end

task :tag_warn do
  puts "*" * 40
  puts "Don't forget to tag the release:"
  puts
  puts "  git tag -m 'Tagging #{Thin::SERVER}' -a v#{Thin::VERSION::STRING}"
{'fraction_non_alphanumeric': 0.14768883878241262, 'fraction_numerical': 0.016347237880496055, 'mean_word_length': 1.9209876543209876, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 20, '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': '4176045', 'n_tokens_mistral': 1301, 'n_tokens_neox': 1237, 'n_words': 250}