From: | "Diego Petteno (flameeyes)" <flameeyes@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-ruby/oauth2/files: oauth2-0.0.8-gentoo.patch |
Date: | Fri, 30 Apr 2010 21:35:45 |
Message-Id: | 20100430213542.C3A122C04C@corvid.gentoo.org |
1 | flameeyes 10/04/30 21:35:42 |
2 | |
3 | Added: oauth2-0.0.8-gentoo.patch |
4 | Log: |
5 | Fix documentation build if RSpec is not present. |
6 | (Portage version: 2.2_rc67/cvs/Linux x86_64) |
7 | |
8 | Revision Changes Path |
9 | 1.1 dev-ruby/oauth2/files/oauth2-0.0.8-gentoo.patch |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/oauth2/files/oauth2-0.0.8-gentoo.patch?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/oauth2/files/oauth2-0.0.8-gentoo.patch?rev=1.1&content-type=text/plain |
13 | |
14 | Index: oauth2-0.0.8-gentoo.patch |
15 | =================================================================== |
16 | diff --git a/Rakefile b/Rakefile |
17 | index 0667c9c..0a135d5 100644 |
18 | --- a/Rakefile |
19 | +++ b/Rakefile |
20 | @@ -15,10 +15,13 @@ begin |
21 | # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings |
22 | end |
23 | Jeweler::GemcutterTasks.new |
24 | + |
25 | + task :spec => :check_dependencies |
26 | rescue LoadError |
27 | puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler" |
28 | end |
29 | |
30 | +begin |
31 | require 'spec/rake/spectask' |
32 | Spec::Rake::SpecTask.new(:spec) do |spec| |
33 | spec.libs << 'lib' << 'spec' |
34 | @@ -31,9 +34,10 @@ Spec::Rake::SpecTask.new(:rcov) do |spec| |
35 | spec.rcov = true |
36 | end |
37 | |
38 | -task :spec => :check_dependencies |
39 | - |
40 | task :default => :spec |
41 | +rescue LoadError |
42 | + puts "RSpec (or a dependency) not available. Install it with: gem install rspec" |
43 | +end |
44 | |
45 | require 'rake/rdoctask' |
46 | Rake::RDocTask.new do |rdoc| |