* [gentoo-commits] gentoo-x86 commit in dev-ruby/tidy-ext/files: tidy-ext-0.1.10-gentoo.patch
@ 2011-02-15 22:15 Diego Petteno (flameeyes)
0 siblings, 0 replies; 2+ messages in thread
From: Diego Petteno (flameeyes) @ 2011-02-15 22:15 UTC (permalink / raw
To: gentoo-commits
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] gentoo-x86 commit in dev-ruby/tidy-ext/files: tidy-ext-0.1.10-gentoo.patch
@ 2011-02-16 10:30 Diego Petteno (flameeyes)
0 siblings, 0 replies; 2+ messages in thread
From: Diego Petteno (flameeyes) @ 2011-02-16 10:30 UTC (permalink / raw
To: gentoo-commits
flameeyes 11/02/16 10:30:34
Removed: tidy-ext-0.1.10-gentoo.patch
Log:
Version bump; new version includes the patch applied yesterday.
(Portage version: 2.2.0_alpha23/cvs/Linux x86_64)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-02-16 10:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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)
-- strict thread matches above, loose matches on Subject: below --
2011-02-15 22:15 Diego Petteno (flameeyes)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox