summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2010-04-30 18:12:06 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2010-04-30 18:12:06 +0000
commitf8286fdfb9e99339ea59903747cb25a7958e660c (patch)
tree6731a035137cc0334cde469e5dbe13112ac6151a /dev-ruby/faraday
parentVersion bump, tests are enabled now, as the final failure is fixed. (diff)
downloadhistorical-f8286fdfb9e99339ea59903747cb25a7958e660c.tar.gz
historical-f8286fdfb9e99339ea59903747cb25a7958e660c.tar.bz2
historical-f8286fdfb9e99339ea59903747cb25a7958e660c.zip
Initial import of the faraday library. Patch sent upstream for 0.4.4 release.
Package-Manager: portage-2.2_rc67/cvs/Linux x86_64
Diffstat (limited to 'dev-ruby/faraday')
-rw-r--r--dev-ruby/faraday/ChangeLog11
-rw-r--r--dev-ruby/faraday/Manifest15
-rw-r--r--dev-ruby/faraday/faraday-0.4.3.ebuild30
-rw-r--r--dev-ruby/faraday/files/faraday-0.4.3-gentoo.patch42
-rw-r--r--dev-ruby/faraday/metadata.xml5
5 files changed, 103 insertions, 0 deletions
diff --git a/dev-ruby/faraday/ChangeLog b/dev-ruby/faraday/ChangeLog
new file mode 100644
index 000000000000..9fd7198e6026
--- /dev/null
+++ b/dev-ruby/faraday/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for dev-ruby/faraday
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/faraday/ChangeLog,v 1.1 2010/04/30 18:12:06 flameeyes Exp $
+
+*faraday-0.4.3 (30 Apr 2010)
+
+ 30 Apr 2010; Diego E. Pettenò <flameeyes@gentoo.org>
+ +faraday-0.4.3.ebuild, +files/faraday-0.4.3-gentoo.patch, +metadata.xml:
+ Initial import of the faraday library. Patch sent upstream for 0.4.4
+ release.
+
diff --git a/dev-ruby/faraday/Manifest b/dev-ruby/faraday/Manifest
new file mode 100644
index 000000000000..ee923740c8b6
--- /dev/null
+++ b/dev-ruby/faraday/Manifest
@@ -0,0 +1,15 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX faraday-0.4.3-gentoo.patch 1086 RMD160 eb9c0da4529ad5268718b73a8bbadf49579c6e41 SHA1 6a96cd7c7f2edd41f7f5a164b204ea37c01762d6 SHA256 c8a2315f231349ae450d24575b3a7bc8c4d31cf6733f899609d89ab4f1b3d982
+DIST faraday-0.4.3.gem 18944 RMD160 d32769b33baaa209ac9b128e277baa470655fa90 SHA1 4c175414a3f052bb182f279d18412a1ce386587e SHA256 87e9d0e026b587d09364e0f63cfd7dcdcdbbc12840e8e7b3cf245082a1023af3
+EBUILD faraday-0.4.3.ebuild 747 RMD160 ef4f79a131dffee230cc2288927def0eff7260ee SHA1 789fa07be7975389f64d36379b27727c801b67a8 SHA256 f5ee2f72c17c23924e3abb7a480ec57ecbefcffdc96cce4d59043015ca5e5c39
+MISC ChangeLog 452 RMD160 147c2f2da0ce0316279686c9943095a99b1eb092 SHA1 4a63302152ef427fb1171811fb8581973f682c8d SHA256 f2907cc87252f1f571e6957f2320567311c1c7af1287b7e2988222fcdd424ff1
+MISC metadata.xml 157 RMD160 5d9e2c7ecba96ffebd936d38acedf859cdea84e1 SHA1 8ce15dcc608eeb5616aeec610dc695cbe6f93e02 SHA256 11fba03a217e2d996f5cd8895493a5692ece8ddac2c1a2dfc71d0e830555121c
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.15 (GNU/Linux)
+
+iEYEARECAAYFAkvbHUkACgkQAiZjviIA2Xgg/ACfVQzurCYMKmPFhokhE2ur414Y
+6oQAoNPcuYoPeX+ZWRvnrd6NQZBTRN1b
+=sJms
+-----END PGP SIGNATURE-----
diff --git a/dev-ruby/faraday/faraday-0.4.3.ebuild b/dev-ruby/faraday/faraday-0.4.3.ebuild
new file mode 100644
index 000000000000..3f1a11977a8f
--- /dev/null
+++ b/dev-ruby/faraday/faraday-0.4.3.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/faraday/faraday-0.4.3.ebuild,v 1.1 2010/04/30 18:12:06 flameeyes Exp $
+
+EAPI="2"
+
+USE_RUBY="ruby18 jruby"
+
+RUBY_FAKEGEM_TASK_TEST="test"
+RUBY_FAKEGEM_TASK_DOC="rerdoc"
+
+RUBY_FAKEGEM_DOCDIR="doc"
+RUBY_FAKEGEM_EXTRADOC="README.rdoc"
+
+inherit ruby-fakegem eutils
+
+DESCRIPTION="HTTP/REST API client library with pluggable components"
+HOMEPAGE="http://github.com/technoweenie/faraday"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+ruby_add_rdepend "dev-ruby/rack dev-ruby/addressable"
+ruby_add_bdepend test "virtual/ruby-test-unit"
+
+all_ruby_prepare() {
+ epatch "${FILESDIR}"/${P}-gentoo.patch
+}
diff --git a/dev-ruby/faraday/files/faraday-0.4.3-gentoo.patch b/dev-ruby/faraday/files/faraday-0.4.3-gentoo.patch
new file mode 100644
index 000000000000..22e7ae613fbb
--- /dev/null
+++ b/dev-ruby/faraday/files/faraday-0.4.3-gentoo.patch
@@ -0,0 +1,42 @@
+diff --git a/Rakefile b/Rakefile
+index 61daa8b..1138f0f 100644
+--- a/Rakefile
++++ b/Rakefile
+@@ -38,8 +40,6 @@ rescue LoadError
+ end
+ end
+
+-task :test => :check_dependencies
+-
+ task :default => :test
+
+ require 'rake/rdoctask'
+diff --git a/lib/faraday/connection.rb b/lib/faraday/connection.rb
+index dbda09a..f441d42 100644
+--- a/lib/faraday/connection.rb
++++ b/lib/faraday/connection.rb
+@@ -173,12 +173,12 @@ module Faraday
+ #
+ def build_url(url, params = nil)
+ uri = URI.parse(url.to_s)
+- uri.host ||= @host
+- uri.port ||= @port
+- uri.scheme ||= @scheme
+ if @path_prefix && uri.path !~ /^\//
+ uri.path = "#{@path_prefix.size > 1 ? @path_prefix : nil}/#{uri.path}"
+ end
++ uri.host ||= @host
++ uri.port ||= @port
++ uri.scheme ||= @scheme
+ replace_query(uri, params)
+ uri
+ end
+--- faraday-0.4.3.orig/test/helper.rb
++++ faraday-0.4.3/test/helper.rb
+@@ -1,6 +1,4 @@
+ require 'rubygems'
+-gem 'rack', '~> 1.1.0'
+-gem 'addressable', '2.1.1'
+
+ require 'test/unit'
+ if ENV['LEFTRIGHT']
diff --git a/dev-ruby/faraday/metadata.xml b/dev-ruby/faraday/metadata.xml
new file mode 100644
index 000000000000..852136183369
--- /dev/null
+++ b/dev-ruby/faraday/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>ruby</herd>
+</pkgmetadata>