Gentoo Archives: gentoo-commits

From: "Hans de Graaff (graaff)" <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-ruby/hoe/files: hoe-2.6.0-rubyforge-without-account.patch
Date: Sun, 09 May 2010 11:32:05
Message-Id: 20100509113159.A16B62C437@corvid.gentoo.org
1 graaff 10/05/09 11:31:59
2
3 Added: hoe-2.6.0-rubyforge-without-account.patch
4 Log:
5 Don't require rubyforge to be configured. Applied patch from Fedora by Mamoru Tasaka, fixing bug 317881.
6 (Portage version: 2.1.8.3/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 dev-ruby/hoe/files/hoe-2.6.0-rubyforge-without-account.patch
10
11 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/hoe/files/hoe-2.6.0-rubyforge-without-account.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/hoe/files/hoe-2.6.0-rubyforge-without-account.patch?rev=1.1&content-type=text/plain
13
14 Index: hoe-2.6.0-rubyforge-without-account.patch
15 ===================================================================
16 --- hoe-2.6.0/lib/hoe/rubyforge.rb.account 2010-04-28 15:34:32.000000000 +0900
17 +++ hoe-2.6.0/lib/hoe/rubyforge.rb 2010-04-28 16:11:18.000000000 +0900
18 @@ -40,12 +40,20 @@
19 end
20
21 if Hoe.plugins.include? :publish then
22 + begin
23 path = File.expand_path("~/.rubyforge/user-config.yml")
24 config = YAML.load(File.read(path))
25 base = "/var/www/gforge-projects"
26 dir = "#{base}/#{rubyforge_name}/#{remote_rdoc_dir}"
27
28 rdoc_locations << "#{config["username"]}@rubyforge.org:#{dir}"
29 +
30 + rescue Errno::ENOENT => err
31 + hoe_ver = Hoe::VERSION
32 + msg = err.message
33 + # puts "Hoe #{hoe_ver}: warning: #{msg}"
34 + end
35 +
36 end
37 end
38 end