Permalink
Browse files

why didnt i have a Rakefile here before?

  • Loading branch information...
1 parent c6a152c commit a4bfd274b9852152fdb1ebe046290b1d33ec0f94 @jmhodges committed Aug 22, 2008
Showing with 30 additions and 0 deletions.
  1. +29 −0 Rakefile
  2. +1 −0 lib/rchardet.rb
View
@@ -0,0 +1,29 @@
+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
View
@@ -56,6 +56,7 @@
require 'rchardet/utf8prober'
module CharDet
+ VERSION = "1.2"
def CharDet.detect(aBuf)
u = UniversalDetector.new
u.reset

0 comments on commit a4bfd27

Please sign in to comment.