[rubygem-i18n_data] Update to i18n_data 0.4.0.

Vít Ondruch vondruch at fedoraproject.org
Fri Aug 16 07:28:52 UTC 2013


commit 269524086ed18dffcc7662a523fd4a76a1f4188f
Author: Vít Ondruch <vondruch at redhat.com>
Date:   Fri Aug 16 09:28:37 2013 +0200

    Update to i18n_data 0.4.0.

 .gitignore                                         |    1 +
 ...8n_data-0.4.0-Revert-run-code-run-is-dead.patch |   28 ++++++++++++++++++
 rubygem-i18n_data.spec                             |   31 +++++++++++++-------
 sources                                            |    2 +-
 4 files changed, 50 insertions(+), 12 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 19eba10..5223c11 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 /i18n_data-0.2.7.gem
+/i18n_data-0.4.0.gem
diff --git a/rubygem-i18n_data-0.4.0-Revert-run-code-run-is-dead.patch b/rubygem-i18n_data-0.4.0-Revert-run-code-run-is-dead.patch
new file mode 100644
index 0000000..274f208
--- /dev/null
+++ b/rubygem-i18n_data-0.4.0-Revert-run-code-run-is-dead.patch
@@ -0,0 +1,28 @@
+From 2ded020b5cee41524e4db24fdb4374ce378482b6 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?V=C3=ADt=20Ondruch?= <vondruch at redhat.com>
+Date: Thu, 15 Aug 2013 14:46:00 +0200
+Subject: [PATCH] Revert "run-code-run is dead"
+
+This reverts commit 1be35a3a782975052133efc5c574f79dc01cf8dd.
+---
+ spec/i18n_data_spec.rb | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/spec/i18n_data_spec.rb b/spec/i18n_data_spec.rb
+index 30b003b..546e689 100644
+--- a/spec/i18n_data_spec.rb
++++ b/spec/i18n_data_spec.rb
+@@ -12,7 +12,9 @@ describe I18nData do
+     hash.detect{|k,v| k.to_s.empty? or v.to_s.empty?}
+   end
+ 
+-  [I18nData::FileDataProvider, I18nData::LiveDataProvider].each do |provider|
++  providers =   [I18nData::FileDataProvider]
++  providers << I18nData::LiveDataProvider unless ENV['RUN_CODE_RUN']
++  providers.each do |provider|
+     describe "using #{provider}" do
+       before :all do
+         I18nData.data_provider = provider
+-- 
+1.8.3.1
+
diff --git a/rubygem-i18n_data.spec b/rubygem-i18n_data.spec
index 8559d6f..b5df6b4 100644
--- a/rubygem-i18n_data.spec
+++ b/rubygem-i18n_data.spec
@@ -4,12 +4,15 @@
 
 Summary: Country/language names and 2-letter-code pairs, in 85 languages
 Name: rubygem-%{gem_name}
-Version: 0.2.7
-Release: 8%{?dist}
+Version: 0.4.0
+Release: 1%{?dist}
 Group: Development/Languages
-License: Public Domain
+License: MIT
 URL: http://github.com/grosser/i18n_data
 Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
+# For offline build, the RUN_CODE_RUN env variable support is still valuable.
+# Revert of https://github.com/grosser/i18n_data/commit/1be35a3a782975052133efc5c574f79dc01cf8dd#spec
+Patch0: rubygem-i18n_data-0.4.0-Revert-run-code-run-is-dead.patch
 Requires: ruby(release)
 Requires: ruby(rubygems)
 Requires: ruby
@@ -17,7 +20,6 @@ BuildRequires: ruby(release)
 BuildRequires: rubygems-devel
 BuildRequires: ruby
 BuildRequires: rubygem(rspec)
-BuildRequires: rubygem(activesupport)
 BuildArch: noarch
 Provides: rubygem(%{gem_name}) = %{version}
 
@@ -39,6 +41,10 @@ Documentation for %{name}
 %setup -q -c -T
 %gem_install -n %{SOURCE0}
 
+pushd .%{gem_instdir}
+%patch0 -p1
+popd
+
 %build
 
 %install
@@ -49,20 +55,19 @@ cp -a .%{gem_dir}/* \
 %check
 pushd .%{gem_instdir}
 
-# The encoding of test suite has to be defined.
-# https://github.com/grosser/i18n_data/issues/1
-sed -i -e '1i # encoding: utf-8\n' spec/i18n_data_spec.rb
+# Encoding is required, otherwise test suite fails.
+# https://github.com/grosser/i18n_data/issues/4
 
 # Set RUN_CODE_RUN to exclude live_data_provider_spec.rb since
 # it requires internet connetcion.
 LANG=en_US.utf8 RUN_CODE_RUN=1 rspec spec/*_spec.rb
+
 popd
 
 %files
 %dir %{gem_instdir}
-%doc %{gem_instdir}/README.markdown
-%{gem_instdir}/VERSION
-%exclude %{gem_instdir}/.gitignore
+%exclude %{gem_instdir}/.*
+%exclude %{gem_instdir}/gem-public_cert.pem
 %exclude %{gem_instdir}/i18n_data.gemspec
 %{gem_instdir}/cache
 %{gem_libdir}
@@ -71,13 +76,17 @@ popd
 
 %files doc
 %doc %{gem_docdir}
-%doc %{gem_instdir}/CHANGELOG
+%{gem_instdir}/Gemfile*
 %{gem_instdir}/Rakefile
+%doc %{gem_instdir}/Readme.md
 %doc %{gem_instdir}/example_output
 %{gem_instdir}/spec
 
 
 %changelog
+* Thu Aug 15 2013 Vít Ondruch <vondruch at redhat.com> - 0.4.0-1
+- Update to i18n_data 0.4.0.
+
 * Sun Aug 04 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.2.7-8
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
 
diff --git a/sources b/sources
index 4999b42..05473a1 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-17ff60e3ee16717a3bd0bc0b99045ece  i18n_data-0.2.7.gem
+61b42794a2e40d57fdd0bfc061f9139b  i18n_data-0.4.0.gem


More information about the scm-commits mailing list