require 'rubygems' require 'rake/testtask' require 'rake/gempackagetask' begin require 'lib/rchardet' rescue LoadError module CharDet; VERSION = '0.0.0'; end puts "Problem loading rfeedparser; try rake setup" end spec = Gem::Specification.new do |s| s.name = "rchardet" s.version = CharDet::VERSION s.author = "Jeff Hodges" s.email = "jeff at somethingsimilar dot com" s.homepage = "http://github.com/jmhodges/rchardet/tree/master" s.platform = Gem::Platform::RUBY s.summary = "Character encoding auto-detection in Ruby. As smart as your browser. Open source." s.files = FileList["lib/**/*"] s.require_path = "lib" # s.autorequire = "feedparser" # tHe 3vil according to Why. s.has_rdoc = false # TODO: fix s.extra_rdoc_files = ['README', 'COPYING'] s.rubyforge_project = 'rchardet' end Rake::GemPackageTask.new(spec) do end