diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2012-06-15 14:46:52 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2012-06-15 14:46:52 +0000 |
commit | 6cd5caef40410e65252524736226701bcc045129 (patch) | |
tree | 5e700b1fc7d1a5629cadb529c0cd0686dab49e11 /dev-ruby/aws-sdk | |
parent | Restrict pypy because pycurl doesn't support it (diff) | |
download | historical-6cd5caef40410e65252524736226701bcc045129.tar.gz historical-6cd5caef40410e65252524736226701bcc045129.tar.bz2 historical-6cd5caef40410e65252524736226701bcc045129.zip |
Initial import of Amazon's official SDK for Ruby.
Package-Manager: portage-2.2.0_alpha110/cvs/Linux x86_64
Diffstat (limited to 'dev-ruby/aws-sdk')
-rw-r--r-- | dev-ruby/aws-sdk/ChangeLog | 12 | ||||
-rw-r--r-- | dev-ruby/aws-sdk/Manifest | 21 | ||||
-rw-r--r-- | dev-ruby/aws-sdk/aws-sdk-1.5.3.ebuild | 63 | ||||
-rw-r--r-- | dev-ruby/aws-sdk/files/aws-sdk-1.5.3+httparty-0.8.patch | 41 | ||||
-rw-r--r-- | dev-ruby/aws-sdk/files/aws-sdk-1.5.3-disabletest.patch | 38 | ||||
-rw-r--r-- | dev-ruby/aws-sdk/files/aws-sdk-1.5.3.gemspec | 14 | ||||
-rw-r--r-- | dev-ruby/aws-sdk/metadata.xml | 5 |
7 files changed, 194 insertions, 0 deletions
diff --git a/dev-ruby/aws-sdk/ChangeLog b/dev-ruby/aws-sdk/ChangeLog new file mode 100644 index 000000000000..bf6fbf0f852e --- /dev/null +++ b/dev-ruby/aws-sdk/ChangeLog @@ -0,0 +1,12 @@ +# ChangeLog for dev-ruby/aws-sdk +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/aws-sdk/ChangeLog,v 1.1 2012/06/15 14:46:52 flameeyes Exp $ + +*aws-sdk-1.5.3 (15 Jun 2012) + + 15 Jun 2012; Diego E. Pettenò <flameeyes@gentoo.org> +aws-sdk-1.5.3.ebuild, + +files/aws-sdk-1.5.3+httparty-0.8.patch, + +files/aws-sdk-1.5.3-disabletest.patch, +files/aws-sdk-1.5.3.gemspec, + +metadata.xml: + Initial import of Amazon's official SDK for Ruby. + diff --git a/dev-ruby/aws-sdk/Manifest b/dev-ruby/aws-sdk/Manifest new file mode 100644 index 000000000000..efd46b334f9a --- /dev/null +++ b/dev-ruby/aws-sdk/Manifest @@ -0,0 +1,21 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +AUX aws-sdk-1.5.3+httparty-0.8.patch 1461 RMD160 f23beb10cc38d69d611926a1c45506157d2ad56b SHA1 aa91b2305fed82941bc8f7e7e9ae015e4f0d10e9 SHA256 bc97780e3b18b1277a94039a4c8062c6193c7f2430067faa5bf1358bde0d9d61 +AUX aws-sdk-1.5.3-disabletest.patch 1224 RMD160 5b780cf8bc861486fe7e4de8f781d5f2da5f938a SHA1 4b6ae97a870c372d07fbf7b9557333f69beabb95 SHA256 b055af92a1b6ebca94c2050c465a61a55b477b9b3e00fdd81c9a428a6ebebe15 +AUX aws-sdk-1.5.3.gemspec 427 RMD160 aa8e29c5dcd8f57db0978acd0d1f00c53fbab43e SHA1 ae04c43bbc86e481bfb71403b6aeba42a44f4ad8 SHA256 ae036e5816fb24dedcd89ba37f1657d14a3d45980f8059bb4043eb05f80712ef +DIST aws-sdk-for-ruby-1.5.3.tar.gz 1217280 RMD160 a8ef9fb59025c21527b39b53f5332aed6a100cdf SHA1 f3fb8ce19639b20bd0d614010a8e96820826d4f7 SHA256 ba07a5cd2f43c82f9490d58170dc5cd94f978ee5c5bf80ad80ed2ba809312674 +EBUILD aws-sdk-1.5.3.ebuild 1400 RMD160 673939e35c0b4f0cd56f6bd6f2c7f382bdf3091b SHA1 e06cea5b2115875fb98cbbfbc07325145b6a94c8 SHA256 7216527f1414f5ef0e8455b91bac1d2c310c774b512c4a859cb439eff416a9a7 +MISC ChangeLog 502 RMD160 621db19f398ce0873562e1a1c937ff602bf85995 SHA1 56352e001c629212b4d0c5b7879e7971f23d45d4 SHA256 4300ec1984036aa1432c48d70a31ebe726d991e6663eea8edc47f5242e6c10d2 +MISC metadata.xml 157 RMD160 5d9e2c7ecba96ffebd936d38acedf859cdea84e1 SHA1 8ce15dcc608eeb5616aeec610dc695cbe6f93e02 SHA256 11fba03a217e2d996f5cd8895493a5692ece8ddac2c1a2dfc71d0e830555121c +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.19 (GNU/Linux) + +iQEcBAEBAgAGBQJP20r6AAoJEBzRPIrUMBNCljgH/0SxeMwd0EGqA2ssiZ7nVCc0 +JeVPJJhPJrWNv7I8sWoGqxPlDHNmqQgncFqbTA0BjIWN7VMeJRcbtUb6acyRdP7X +i5Jb84ZqgvjbpHVwJBaj6if320GHB6BclL/xPPkUnwrCN0eK24xV9Zg0Le5PVQbc +hU3GMaFFNfux/bXCbro9rJUx44T4LL1OsStwbtAnGLJINroYke/fQ9phFgsZuVs6 +vvtNlTW3zmpEXwwrliaxQkL4Ikq4WDPzPDu3SpTRNDaYBxA2bwd6+YUoPu/UA1TJ +0DH25jqEyM1/W4THzLq2oRdqRztyS80MrAk7WfxbFjMmMmdOHk4lvtGjBfqEPrQ= +=cKQK +-----END PGP SIGNATURE----- diff --git a/dev-ruby/aws-sdk/aws-sdk-1.5.3.ebuild b/dev-ruby/aws-sdk/aws-sdk-1.5.3.ebuild new file mode 100644 index 000000000000..0d0276ccb36d --- /dev/null +++ b/dev-ruby/aws-sdk/aws-sdk-1.5.3.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/aws-sdk/aws-sdk-1.5.3.ebuild,v 1.1 2012/06/15 14:46:52 flameeyes Exp $ + +EAPI=4 + +USE_RUBY="ruby18 ruby19 ree18" + +RUBY_FAKEGEM_TASK_TEST="" +RUBY_FAKEGEM_TASK_DOC="" +RUBY_FAKEGEM_DOCDIR="doc" +RUBY_FAKEGEM_EXTRADOC="README.rdoc" + +RUBY_FAKEGEM_EXTRAINSTALL="ca-bundle.crt" + +GITHUB_USER="amazonwebservices" +GITHUB_PROJECT="${PN}-for-ruby" +RUBY_S="${GITHUB_USER}-${GITHUB_PROJECT}-*" + +RUBY_FAKEGEM_GEMSPEC="${FILESDIR}/${P}.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="Official SDK for Amazon Web Services" +HOMEPAGE="http://aws.amazon.com/sdkforruby" +SRC_URI="https://github.com/${GITHUB_USER}/${GITHUB_PROJECT}/tarball/${PV} -> ${GITHUB_PROJECT}-${PV}.tar.gz" + +LICENSE="APSL-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +ruby_add_rdepend "virtual/ruby-ssl + >=dev-ruby/httparty-0.7 + >=dev-ruby/json-1.4 + >=dev-ruby/nokogiri-1.4.4 + >=dev-ruby/uuidtools-2.1" +ruby_add_bdepend " + test? ( dev-ruby/rspec )" + +all_ruby_prepare() { + rm Gemfile* || die + + epatch "${FILESDIR}"/${P}+httparty-0.8.patch + epatch "${FILESDIR}"/${P}-disabletest.patch +} + +all_ruby_compile() { + if use doc; then + rdoc || die + fi +} + +each_ruby_test() { + ${RUBY} -S rspec -Ilib -raws || die +} + +all_ruby_install() { + all_fakegem_install + + insinto /usr/share/doc/${PF} + doins -r recipebook samples +} diff --git a/dev-ruby/aws-sdk/files/aws-sdk-1.5.3+httparty-0.8.patch b/dev-ruby/aws-sdk/files/aws-sdk-1.5.3+httparty-0.8.patch new file mode 100644 index 000000000000..9101dd527b39 --- /dev/null +++ b/dev-ruby/aws-sdk/files/aws-sdk-1.5.3+httparty-0.8.patch @@ -0,0 +1,41 @@ +From 40d0d8c581026ad07bf94897b974b05d6b0542ef Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= <flameeyes@flameeyes.eu> +Date: Fri, 15 Jun 2012 06:21:04 -0700 +Subject: [PATCH] httparty_handler: do not dereference a nil object. +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +This might be required to support httparty 0.8 (which is in the +dependencies as it is). + +Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu> +--- + lib/aws/core/http/httparty_handler.rb | 9 +++++---- + 1 files changed, 5 insertions(+), 4 deletions(-) + +diff --git a/lib/aws/core/http/httparty_handler.rb b/lib/aws/core/http/httparty_handler.rb +index 46b3c9c..f2fea30 100644 +--- a/lib/aws/core/http/httparty_handler.rb ++++ b/lib/aws/core/http/httparty_handler.rb +@@ -92,12 +92,13 @@ module AWS + + begin + http_response = self.class.send(method, url, opts) ++ unless http_response.nil? ++ response.body = http_response.body ++ response.status = http_response.code.to_i ++ response.headers = http_response.to_hash ++ end + rescue Timeout::Error, Errno::ETIMEDOUT => e + response.timeout = true +- else +- response.body = http_response.body +- response.status = http_response.code.to_i +- response.headers = http_response.to_hash + end + end + end +-- +1.7.8.6 + diff --git a/dev-ruby/aws-sdk/files/aws-sdk-1.5.3-disabletest.patch b/dev-ruby/aws-sdk/files/aws-sdk-1.5.3-disabletest.patch new file mode 100644 index 000000000000..293deb2ac017 --- /dev/null +++ b/dev-ruby/aws-sdk/files/aws-sdk-1.5.3-disabletest.patch @@ -0,0 +1,38 @@ +diff --git a/spec/shared/s3/paginated_collection_examples.rb b/spec/shared/s3/paginated_collection_examples.rb +index b9eb2e4..50fd291 100644 +--- a/spec/shared/s3/paginated_collection_examples.rb ++++ b/spec/shared/s3/paginated_collection_examples.rb +@@ -84,33 +84,6 @@ module AWS + + end + +- it 'should request the remainder of the requested number of items' do +- expect_limits = [2, 2, 1] +- results = [ +- client.new_stub_for(list_method), +- client.new_stub_for(list_method), +- client.new_stub_for(list_method), +- ] +- results[0].data[:truncated] = true +- results[1].data[:truncated] = true +- results[2].data[:truncated] = false +- +- ["first", "second", "third"].zip(results).each do |name, result| +- stub_markers(result, name) +- end +- +- [0, 1, 0].zip(results).each do |quantity, result| +- stub_members(result, quantity) +- end +- +- client.should_receive(list_method) do |opts| +- expect_limits.should_not be_empty +- opts[limit_param].should == expect_limits.shift +- results.shift +- end +- collection.each(:limit => 2) { |u| } +- end +- + end + + end diff --git a/dev-ruby/aws-sdk/files/aws-sdk-1.5.3.gemspec b/dev-ruby/aws-sdk/files/aws-sdk-1.5.3.gemspec new file mode 100644 index 000000000000..a812d791edde --- /dev/null +++ b/dev-ruby/aws-sdk/files/aws-sdk-1.5.3.gemspec @@ -0,0 +1,14 @@ +# -*- encoding: utf-8 -*- + +Gem::Specification.new do |s| + s.name = "aws-sdk" + s.version = "1.5.3" + s.homepage = "http://aws.amazon.com/sdkforruby" + s.require_paths = ["lib"] + s.summary = "AWS SDK for Ruby" + + s.add_runtime_dependency(%q<uuidtools>, [">= 2.1"]) + s.add_runtime_dependency(%q<httparty>, [">= 0.7"]) + s.add_runtime_dependency(%q<nokogiri>, [">= 1.4.4"]) + s.add_runtime_dependency(%q<json>, [">= 1.4"]) +end diff --git a/dev-ruby/aws-sdk/metadata.xml b/dev-ruby/aws-sdk/metadata.xml new file mode 100644 index 000000000000..852136183369 --- /dev/null +++ b/dev-ruby/aws-sdk/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> |