require 'rake' require 'rake/testtask' require 'rcov/rcovtask' begin require 'jeweler' Jeweler::Tasks.new do |s| s.name = "rseg_harry" s.executables = ["rseg_harry", 'rseg_server_harry'] s.summary = "A Chinese Word Segmentation(中文分词) routine in pure Ruby" s.email = "zhangyuanyi@gmail.com" s.homepage = "http://github.com/ggharry/rseg" s.description = "A Chinese Word Segmentation(中文分词) routine in pure Ruby" s.authors = ["Yuanyi Zhang", "Harry Chen"] s.files = FileList["[A-Z]*", "{bin,lib,public,views}/**/*", '.gitignore', 'dict/dict.hash'] s.add_dependency 'haml' s.add_dependency 'sinatra' end rescue LoadError puts "Jeweler, or one of its dependencies, is not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com" end