From: "Diego Petteno (flameeyes)" <flameeyes@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo-x86 commit in dev-ruby/tidy-ext/files: tidy-ext-0.1.10-gentoo.patch
Date: Tue, 15 Feb 2011 22:15:53 +0000 (UTC) [thread overview]
Message-ID: <20110215221553.39C9320057@flycatcher.gentoo.org> (raw)
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 compatible implementations.
(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=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/tidy-ext/files/tidy-ext-0.1.10-gentoo.patch?rev=1.1&content-type=text/plain
Index: tidy-ext-0.1.10-gentoo.patch
===================================================================
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'
begin
require 'jeweler'
@@ -14,6 +13,8 @@ begin
gem.extensions = FileList["ext/**/extconf.rb"]
end
Jeweler::GemcutterTasks.new
+
+ task :spec => :check_dependencies
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end
@@ -23,6 +24,7 @@ task :console do
exec("irb -I lib -r tidy/alone")
end
+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 = true
end
-task :spec => :check_dependencies
-
task :default => :spec
+rescue LoadError
+ puts "RSpec (or a dependency) not available. Install it with: gem install rspec"
+end
require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
@@ -49,11 +52,16 @@ Rake::RDocTask.new do |rdoc|
rdoc.rdoc_files.include('lib/**/*.rb')
end
+begin
+ require 'rake/extensiontask'
Rake::ExtensionTask.new do |ext|
ext.name = 'tidy'
ext.ext_dir = 'ext/tidy'
ext.config_options << '--with-coverage' if ENV['COV']
end
+rescue LoadError
+ puts "rake-compiler not available. Install it with: gem install rake-compiler"
+end
namespace :gcov do
diff --git a/ruby/spec/tidy/compat_spec.rb b/ruby/spec/tidy/compat_spec.rb
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"
describe "tidy compatibility methods" do
diff --git a/ruby/spec/tidy/remote_uri_spec.rb b/ruby/spec/tidy/remote_uri_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'
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"
describe "tidy class methods" do
next reply other threads:[~2011-02-15 22:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-15 22:15 Diego Petteno (flameeyes) [this message]
-- strict thread matches above, loose matches on Subject: below --
2011-02-16 10:30 [gentoo-commits] gentoo-x86 commit in dev-ruby/tidy-ext/files: tidy-ext-0.1.10-gentoo.patch Diego Petteno (flameeyes)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110215221553.39C9320057@flycatcher.gentoo.org \
--to=flameeyes@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox