Rakefile in twitter-text-1.1.2 vs Rakefile in twitter-text-1.1.4

- old
+ new

@@ -7,13 +7,13 @@ require 'spec/rake/verify_rcov' require 'digest' spec = Gem::Specification.new do |s| s.name = "twitter-text" - s.version = "1.1.2" - s.authors = ["Matt Sanford", "Patrick Ewing", "Ben Cherry", "Britt Selvitelle"] - s.email = ["matt@twitter.com", "patrick.henry.ewing@gmail.com", "bcherry@gmail.com", "bs@brittspace.com"] + s.version = "1.1.4" + s.authors = ["Matt Sanford", "Patrick Ewing", "Ben Cherry", "Britt Selvitelle", "Raffi Krikorian"] + s.email = ["matt@twitter.com", "patrick.henry.ewing@gmail.com", "bcherry@gmail.com", "bs@brittspace.com", "raffi@twitter.com"] s.homepage = "http://twitter.com" s.description = s.summary = "A gem that provides text handling for Twitter" s.platform = Gem::Platform::RUBY s.has_rdoc = true @@ -30,28 +30,26 @@ desc "Run specs" Spec::Rake::SpecTask.new do |t| t.spec_files = FileList['spec/**/*_spec.rb'] t.spec_opts = %w(-fs --color) + t.libs << ["spec", '.'] end desc "Run all examples with RCov" Spec::Rake::SpecTask.new('spec:rcov') do |t| t.spec_files = FileList['spec/**/*.rb'] t.rcov = true t.rcov_opts = ['--exclude', 'spec'] end - def conformance_version(dir) Dir[File.join(dir, '*')].inject(Digest::SHA1.new){|digest, file| digest.update(Digest::SHA1.file(file).hexdigest) } end namespace :test do namespace :conformance do - - desc "Update conformance testing data" task :update do puts "Updating conformance data ... " system("git submodule init") || raise("Failed to init submodule") system("git submodule update") || raise("Failed to update submodule") @@ -83,11 +81,10 @@ desc "Run conformance test suite" task :conformance => ['conformance:latest', 'conformance:run'] do end end - -namespace :doc do +namespace :doc do Rake::RDocTask.new do |rd| rd.main = "README.rdoc" rd.rdoc_dir = 'doc' rd.rdoc_files.include("README.rdoc", "lib/**/*.rb") end