Update to crack 0.3.2.

f38
Vít Ondruch 12 years ago
parent 3eb8e0a52f
commit 9f791d2a97

1
.gitignore vendored

@ -1,2 +1,3 @@
/crack-0.1.8.gem /crack-0.1.8.gem
/crack-0.3.1.gem /crack-0.3.1.gem
/crack-0.3.2.gem

@ -2,14 +2,13 @@
Summary: Really simple JSON and XML parsing, ripped from Merb and Rails Summary: Really simple JSON and XML parsing, ripped from Merb and Rails
Name: rubygem-%{gem_name} Name: rubygem-%{gem_name}
Version: 0.3.1 Version: 0.3.2
Release: 6%{?dist} Release: 1%{?dist}
Group: Development/Languages Group: Development/Languages
License: MIT License: MIT
URL: http://github.com/jnunemaker/crack URL: http://github.com/jnunemaker/crack
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
# Keeping buildroot so I can use the same spec in EPEL5 # Keeping buildroot so I can use the same spec in EPEL5
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: ruby(rubygems) Requires: ruby(rubygems)
Requires: rubygem(bigdecimal) Requires: rubygem(bigdecimal)
Requires: ruby(release) Requires: ruby(release)
@ -41,42 +40,48 @@ This package contains documentation for %{name}.
%install %install
rm -rf %{buildroot} rm -rf %{buildroot}
mkdir -p %{buildroot}%{gem_dir} %gem_install -n %{SOURCE0} -d %{buildroot}%{gem_dir}
%gem_install -n %{SOURCE0}
rm -f %{buildroot}%{gem_instdir}/.gitignore rm -f %{buildroot}%{gem_instdir}/.gitignore
rm -f %{buildroot}%{gem_instdir}/*.gemspec rm -f %{buildroot}%{gem_instdir}/*.gemspec
%check %check
# Packages required to run a rake test not availble yet in Fedora
pushd %{buildroot}%{gem_instdir} pushd %{buildroot}%{gem_instdir}
sed -i 's/require File/#require File/g' Rakefile
sed -i '10 a\
YAML::ENGINE.yamler = "syck"' test/test_helper.rb
testrb test/*_test.rb
popd
%clean # These tests are not going to work in newer Ruby and it doesn't look like
rm -rf %{buildroot} # crack could be fixed.
# http://bugs.ruby-lang.org/issues/4479
sed -i '/a: "2007-01-01 01:12:34 Z"/ s/^/#/' test/json_test.rb
sed -i '/a: "2007-01-01T01:12:34Z"/ s/^/#/' test/json_test.rb
sed -i '/a: "2007-01-01 01:12:34"/ s/^/#/' test/json_test.rb
# Properly catch Psych parsing errors.
# https://github.com/jnunemaker/crack/pull/32
sed -i -r 's/(rescue ArgumentError)( => e)/\1, Psych::SyntaxError\2/' lib/crack/json.rb
# The RUBYOPT temporary fixes "NameError: uninitialized constant
# REXML::Text::Document", until it is fixed in Ruby.
# https://bugs.ruby-lang.org/issues/7961
RUBYOPT=-rrexml/document testrb test/*_test.rb
popd
%files %files
%defattr(-, root, root, -)
%dir %{gem_instdir} %dir %{gem_instdir}
%doc %{gem_instdir}/LICENSE %doc %{gem_instdir}/LICENSE
%doc %{gem_instdir}/README.rdoc %doc %{gem_instdir}/README.rdoc
%doc %{gem_instdir}/History %doc %{gem_instdir}/History
%{gem_libdir} %{gem_libdir}
%{gem_cache} %exclude %{gem_cache}
%{gem_spec} %{gem_spec}
%files doc %files doc
%defattr(-, root, root, -)
%{gem_docdir} %{gem_docdir}
%{gem_instdir}/Rakefile %{gem_instdir}/Rakefile
%{gem_instdir}/test %{gem_instdir}/test
%changelog %changelog
* Fri Mar 08 2013 Vít Ondruch <vondruch@redhat.com> - 1:0.3.1-6 * Mon Mar 11 2013 Vít Ondruch <vondruch@redhat.com> - 1:0.3.2-1
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0 - Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
- Update to crack 0.3.2.
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.3.1-5 * Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.3.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild

@ -1 +1 @@
73bf73388ebac555be0318fcac776911 crack-0.3.1.gem c575d7a96743eb7dacde51c2ad34567e crack-0.3.2.gem

Loading…
Cancel
Save