* [gentoo-commits] gentoo-x86 commit in dev-ruby/aws-sdk/files: aws-sdk-1.6.3-no-simplecov.patch
@ 2012-08-10 15:40 Diego Petteno (flameeyes)
0 siblings, 0 replies; only message in thread
From: Diego Petteno (flameeyes) @ 2012-08-10 15:40 UTC (permalink / raw
To: gentoo-commits
flameeyes 12/08/10 15:40:59
Added: aws-sdk-1.6.3-no-simplecov.patch
Log:
Version bump, remove old. This adds a patch to make simplecov optional.
(Portage version: 2.2.0_alpha120/cvs/Linux x86_64)
Revision Changes Path
1.1 dev-ruby/aws-sdk/files/aws-sdk-1.6.3-no-simplecov.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/aws-sdk/files/aws-sdk-1.6.3-no-simplecov.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/aws-sdk/files/aws-sdk-1.6.3-no-simplecov.patch?rev=1.1&content-type=text/plain
Index: aws-sdk-1.6.3-no-simplecov.patch
===================================================================
From d507e8f8a03e4a5e517d1b6cad9b1a7a8dbbd7f6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= <flameeyes@flameeyes.eu>
Date: Fri, 10 Aug 2012 08:28:06 -0700
Subject: [PATCH] spec: do not force simplecov presence.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
For Gentoo packaging for instance we don't want to know how much of
the code is covered by the tests, we just want to make sure that the
tests pass properly.
Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu>
---
spec/spec_helper.rb | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 0214460..8001b3a 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -11,8 +11,11 @@
# ANY KIND, either express or implied. See the License for the specific
# language governing permissions and limitations under the License.
-require 'simplecov'
-SimpleCov.start
+begin
+ require 'simplecov'
+ SimpleCov.start
+rescue LoadError
+end
$: << File.join(File.dirname(File.dirname(__FILE__)), "lib")
--
1.7.8.6
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-08-10 15:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-10 15:40 [gentoo-commits] gentoo-x86 commit in dev-ruby/aws-sdk/files: aws-sdk-1.6.3-no-simplecov.patch Diego Petteno (flameeyes)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox