From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1PpTBi-0005vV-Rx for garchives@archives.gentoo.org; Tue, 15 Feb 2011 22:16:03 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 70DF6E0A83; Tue, 15 Feb 2011 22:15:55 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 2F653E0A83 for ; Tue, 15 Feb 2011 22:15:55 +0000 (UTC) Received: from flycatcher.gentoo.org (flycatcher.gentoo.org [81.93.255.6]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8F22A1B413D for ; Tue, 15 Feb 2011 22:15:54 +0000 (UTC) Received: by flycatcher.gentoo.org (Postfix, from userid 948) id 39C9320057; Tue, 15 Feb 2011 22:15:53 +0000 (UTC) From: "Diego Petteno (flameeyes)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, flameeyes@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in dev-ruby/tidy-ext/files: tidy-ext-0.1.10-gentoo.patch X-VCS-Repository: gentoo-x86 X-VCS-Files: tidy-ext-0.1.10-gentoo.patch X-VCS-Directories: dev-ruby/tidy-ext/files X-VCS-Committer: flameeyes X-VCS-Committer-Name: Diego Petteno Content-Type: text/plain; charset=utf8 Message-Id: <20110215221553.39C9320057@flycatcher.gentoo.org> Date: Tue, 15 Feb 2011 22:15:53 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: a0a20f195c75799dd8746957ae941912 flameeyes 11/02/15 22:15:53 Added: tidy-ext-0.1.10-gentoo.patch Log: Add patch to work on Ruby 1.9.2 and add ruby19 to the list of compatibl= e implementations. =20 (Portage version: 2.2.0_alpha23/cvs/Linux x86_64) Revision Changes Path 1.1 dev-ruby/tidy-ext/files/tidy-ext-0.1.10-gentoo.patch file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/tidy-ext/= files/tidy-ext-0.1.10-gentoo.patch?rev=3D1.1&view=3Dmarkup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/tidy-ext/= files/tidy-ext-0.1.10-gentoo.patch?rev=3D1.1&content-type=3Dtext/plain Index: tidy-ext-0.1.10-gentoo.patch =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D diff --git a/ruby/Rakefile b/ruby/Rakefile index 031dfa2..ccd7c91 100644 --- a/ruby/Rakefile +++ b/ruby/Rakefile @@ -1,6 +1,5 @@ require 'rubygems' require 'rake' -require 'rake/extensiontask' =20 begin require 'jeweler' @@ -14,6 +13,8 @@ begin gem.extensions =3D FileList["ext/**/extconf.rb"] end Jeweler::GemcutterTasks.new + + task :spec =3D> :check_dependencies rescue LoadError puts "Jeweler (or a dependency) not available. Install it with: gem in= stall jeweler" end @@ -23,6 +24,7 @@ task :console do exec("irb -I lib -r tidy/alone") end =20 +begin require 'spec/rake/spectask' Spec::Rake::SpecTask.new(:spec) do |spec| spec.libs << 'lib' << 'spec' @@ -35,9 +37,10 @@ Spec::Rake::SpecTask.new(:rcov) do |spec| spec.rcov =3D true end =20 -task :spec =3D> :check_dependencies - task :default =3D> :spec +rescue LoadError + puts "RSpec (or a dependency) not available. Install it with: gem inst= all rspec" +end =20 require 'rake/rdoctask' Rake::RDocTask.new do |rdoc| @@ -49,11 +52,16 @@ Rake::RDocTask.new do |rdoc| rdoc.rdoc_files.include('lib/**/*.rb') end =20 +begin + require 'rake/extensiontask' Rake::ExtensionTask.new do |ext| ext.name =3D 'tidy' ext.ext_dir =3D 'ext/tidy' ext.config_options << '--with-coverage' if ENV['COV'] end +rescue LoadError + puts "rake-compiler not available. Install it with: gem install rake-c= ompiler" +end =20 namespace :gcov do =20 diff --git a/ruby/spec/tidy/compat_spec.rb b/ruby/spec/tidy/compat_spec.r= b index 0bb1e77..63b285a 100644 --- a/ruby/spec/tidy/compat_spec.rb +++ b/ruby/spec/tidy/compat_spec.rb @@ -1,4 +1,4 @@ -require File.join(File.dirname(__FILE__), "..", "spec_helper") +require "spec_helper" =20 describe "tidy compatibility methods" do =20 diff --git a/ruby/spec/tidy/remote_uri_spec.rb b/ruby/spec/tidy/remote_ur= i_spec.rb index 8426ab7..c3e0ba8 100644 --- a/ruby/spec/tidy/remote_uri_spec.rb +++ b/ruby/spec/tidy/remote_uri_spec.rb @@ -1,4 +1,4 @@ -require File.join(File.dirname(__FILE__), "..", "spec_helper") +require "spec_helper" require 'open-uri' =20 describe "tidy class methods" do diff --git a/ruby/spec/tidy/tidy_spec.rb b/ruby/spec/tidy/tidy_spec.rb index 2ad49e6..bb7ffc7 100644 --- a/ruby/spec/tidy/tidy_spec.rb +++ b/ruby/spec/tidy/tidy_spec.rb @@ -1,4 +1,4 @@ -require File.join(File.dirname(__FILE__), "..", "spec_helper") +require "spec_helper" =20 describe "tidy class methods" do =20