[rubygem-excon] Updated to version 0.7.8

Bohuslav Kabrda bkabrda at fedoraproject.org
Mon Nov 28 08:15:58 UTC 2011


commit db7f3e3b141becb31b6d18b5d544174865995a54
Author: Bohuslav Kabrda <bkabrda at redhat.com>
Date:   Mon Nov 28 09:15:50 2011 +0100

    Updated to version 0.7.8

 .gitignore         |    1 +
 rubygem-excon.spec |   22 +++++++++++++++++-----
 sources            |    2 +-
 3 files changed, 19 insertions(+), 6 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 863f4a8..825cbc3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
 /excon-0.6.3.gem
 /excon-0.7.6.gem
+/excon-0.7.8.gem
diff --git a/rubygem-excon.spec b/rubygem-excon.spec
index 2155811..9b9c1c5 100644
--- a/rubygem-excon.spec
+++ b/rubygem-excon.spec
@@ -1,11 +1,12 @@
 # Generated from excon-0.6.3.gem by gem2rpm -*- rpm-spec -*-
-%define gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
-%define gemname excon
-%define geminstdir %{gemdir}/gems/%{gemname}-%{version}
+%global gemname excon
+
+%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
+%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
 
 Summary: Http(s) EXtended CONnections
 Name: rubygem-%{gemname}
-Version: 0.7.6
+Version: 0.7.8
 Release: 1%{?dist}
 Group: Development/Languages
 License: MIT
@@ -18,6 +19,8 @@ BuildRequires: ruby(rubygems)
 BuildRequires: rubygem(shindo)
 BuildRequires: rubygem(open4)
 BuildRequires: rubygem(sinatra)
+# The test server requires eventmachine
+BuildRequires: rubygem(eventmachine)
 BuildArch: noarch
 Provides: rubygem(%{gemname}) = %{version}
 
@@ -46,6 +49,9 @@ rm -rf %{buildroot}
 mkdir -p %{buildroot}%{gemdir}
 cp -a .%{gemdir}/* %{buildroot}%{gemdir}/
 
+# fix the benchmark file not to be executable
+chmod a-x %{buildroot}%{geminstdir}/benchmarks/has_key-vs-hash[key].rb
+
 %check
 pushd .%{geminstdir}
 # we need to remove the dependency on bundler and add the missing requires (workaround for not using the Rakefile)
@@ -56,7 +62,7 @@ sed -i -e "s/'bundler'/'open4'/" -e '/Bundler.require(:default, :development)/d'
 sed -i -e "s/localhost/127.0.0.1/" tests/header_tests.rb
 
 # require the other needed libs
-RUBYOPT="-rtime -rlib/excon" shindo
+RUBYOPT="-rrubygems -rtime -rlib/excon" shindo
 popd
 
 %files
@@ -77,6 +83,12 @@ popd
 
 
 %changelog
+* Mon Nov 28 2011 Bohuslav Kabrda <bkabrda at redhat.com> - 0.7.8-1
+- Update to version 0.7.8.
+- Replaced defines with more appropriate globals.
+- Added Build dependency on rubygem-eventmachine.
+- Fixed running tests for the new version.
+
 * Wed Oct 12 2011 bkabrda <bkabrda at redhat.com> - 0.7.6-1
 - Update to version 0.7.6
 - Introduced doc subpackage
diff --git a/sources b/sources
index 57f5f9f..5a80bce 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-2ca71fd9f44d9e32cc16e7fe0c0246ec  excon-0.7.6.gem
+1748375728ab506be5c9efbdcb4e0648  excon-0.7.8.gem


More information about the scm-commits mailing list