diff options
Diffstat (limited to 'dev-ruby/litc')
-rw-r--r-- | dev-ruby/litc/ChangeLog | 9 | ||||
-rw-r--r-- | dev-ruby/litc/files/litc-1.0.2-fixes.patch (renamed from dev-ruby/litc/files/litc-1.0.2-tests.patch) | 31 | ||||
-rw-r--r-- | dev-ruby/litc/litc-1.0.2-r1.ebuild (renamed from dev-ruby/litc/litc-1.0.2.ebuild) | 4 |
3 files changed, 41 insertions, 3 deletions
diff --git a/dev-ruby/litc/ChangeLog b/dev-ruby/litc/ChangeLog index 203f47918d3e..ebee140e7c62 100644 --- a/dev-ruby/litc/ChangeLog +++ b/dev-ruby/litc/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for dev-ruby/litc # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/litc/ChangeLog,v 1.2 2010/02/12 10:57:08 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/litc/ChangeLog,v 1.3 2010/02/16 20:38:37 flameeyes Exp $ + +*litc-1.0.2-r1 (16 Feb 2010) + + 16 Feb 2010; Diego E. Pettenò <flameeyes@gentoo.org> -litc-1.0.2.ebuild, + +litc-1.0.2-r1.ebuild, +files/litc-1.0.2-fixes.patch, + -files/litc-1.0.2-tests.patch: + Fix litc to work properly. 12 Feb 2010; Diego E. Pettenò <flameeyes@gentoo.org> litc-1.0.2.ebuild: Add ~x86 keyword (tested in development container). diff --git a/dev-ruby/litc/files/litc-1.0.2-tests.patch b/dev-ruby/litc/files/litc-1.0.2-fixes.patch index c0b152705804..6ab86e863993 100644 --- a/dev-ruby/litc/files/litc-1.0.2-tests.patch +++ b/dev-ruby/litc/files/litc-1.0.2-fixes.patch @@ -38,3 +38,34 @@ index 31392f3..910113c 100644 task :default => :test require 'rake/rdoctask' +diff --git a/lib/litc.rb b/lib/litc.rb +index 19836db..e4ab9c9 100644 +--- a/lib/litc.rb ++++ b/lib/litc.rb +@@ -39,7 +39,7 @@ module Litc + # latest + API_VERSION = "latest" + +- def urlize item ++ def self.urlize item + item = item.to_s.gsub(/_/, '-') + if item =~ /(placement).+/ or item =~ /(block-device-mapping).+/ + item.gsub!(/(#{$1})-(.*)$/,'\\1/\\2') +@@ -50,7 +50,7 @@ module Litc + item + end + +- def get(item) ++ def self.get(item) + item = urlize(item) + + if item != 'user-data' +@@ -65,7 +65,7 @@ module Litc + end + end + +- def method_missing(meth, *args, &block) ++ def self.method_missing(meth, *args, &block) + if ITEMS.include?(urlize(meth)) + get(meth) + else diff --git a/dev-ruby/litc/litc-1.0.2.ebuild b/dev-ruby/litc/litc-1.0.2-r1.ebuild index 1114cc209450..1538a1bd0747 100644 --- a/dev-ruby/litc/litc-1.0.2.ebuild +++ b/dev-ruby/litc/litc-1.0.2-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/litc/litc-1.0.2.ebuild,v 1.2 2010/02/12 10:57:08 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/litc/litc-1.0.2-r1.ebuild,v 1.1 2010/02/16 20:38:37 flameeyes Exp $ EAPI=2 USE_RUBY="ruby18 jruby" @@ -22,5 +22,5 @@ KEYWORDS="~amd64 ~x86" ruby_add_bdepend test "dev-ruby/shoulda dev-ruby/fakeweb dev-ruby/ruby-debug" all_ruby_prepare() { - epatch "${FILESDIR}"/${P}-tests.patch + epatch "${FILESDIR}"/${P}-fixes.patch } |