[rubygem-fog] Fix duplicate key warning

Josef Stribny jstribny at fedoraproject.org
Wed Mar 11 07:40:35 UTC 2015


commit 1add8dda5a2f2e7c14684c700634a087c782541e
Author: Josef Stribny <jstribny at redhat.com>
Date:   Wed Mar 11 08:40:22 2015 +0100

    Fix duplicate key warning

 rubygem-fog.spec | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
---
diff --git a/rubygem-fog.spec b/rubygem-fog.spec
index 06bd1ca..be38200 100644
--- a/rubygem-fog.spec
+++ b/rubygem-fog.spec
@@ -3,7 +3,7 @@
 Summary: Brings clouds to you
 Name: rubygem-%{gem_name}
 Version: 1.23.0
-Release: 2%{?dist}
+Release: 3%{?dist}
 Group: Development/Languages
 License: MIT
 URL: http://github.com/geemus/fog
@@ -44,6 +44,11 @@ Documentation for %{name}
 pushd .%{gem_instdir}
 %patch0 -p1
 %patch1 -p1
+
+# Fix duplicate key warning, the key is not used anyway and it shows up when using Vagrant
+# https://github.com/fog/fog/commit/189ab1c677e88f670f9269b0857efeb1e18f64ea
+sed -i 's/"name" => "Ubuntu",/#"name" => "Ubuntu",/' lib/fog/rackspace/mock_data.rb
+
 popd
 
 %build
@@ -112,6 +117,9 @@ popd
 %doc %{gem_docdir}
 
 %changelog
+* Wed Mar 11 2015 Josef Stribny <jstribny at redhat.com> - 1.23.0-3
+- Fix duplicate key warning
+
 * Tue Mar 10 2015 Josef Stribny <jstribny at redhat.com> - 1.23.0-2
 - Patch for Ruby 2.2 support
 


More information about the scm-commits mailing list