|
|
|
@ -5,8 +5,8 @@
|
|
|
|
|
|
|
|
|
|
Summary: A gem to provide swappable JSON backends
|
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
|
Version: 1.0.3
|
|
|
|
|
Release: 5%{?dist}
|
|
|
|
|
Version: 1.3.6
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Group: Development/Languages
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: http://github.com/intridea/multi_json
|
|
|
|
@ -17,8 +17,7 @@ Requires: ruby
|
|
|
|
|
BuildRequires: ruby(abi) = %{rubyabi}
|
|
|
|
|
BuildRequires: rubygems-devel >= 1.3.6
|
|
|
|
|
BuildRequires: ruby
|
|
|
|
|
# Use rspec-core until rspec are not migrated to RSpec 2.x
|
|
|
|
|
BuildRequires: rubygem(rspec-core)
|
|
|
|
|
BuildRequires: rubygem(rspec)
|
|
|
|
|
BuildRequires: rubygem(json)
|
|
|
|
|
BuildRequires: rubygem(json_pure)
|
|
|
|
|
BuildArch: noarch
|
|
|
|
@ -60,13 +59,12 @@ sed -i -e '/^#!\/usr\/bin\/env/d' %{buildroot}%{gem_instdir}/Rakefile
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
pushd ./%{gem_instdir}
|
|
|
|
|
# simplecov gem is Ruby 1.9 only and not available in Fedora,
|
|
|
|
|
# so remove its usage
|
|
|
|
|
sed -i '8,+1d' spec/helper.rb
|
|
|
|
|
# simplecov gem is not available in Fedora so remove its usage
|
|
|
|
|
sed -i '10,+3d' spec/helper.rb
|
|
|
|
|
|
|
|
|
|
# 1 test case fails and 8 are pending due to missing yajl-ruby gem on Fedora.
|
|
|
|
|
# 1 test case fails and 22 are pending due to missing oj gem on Fedora.
|
|
|
|
|
rspec spec/ | \
|
|
|
|
|
grep "36 examples, 1 failure, 8 pending"
|
|
|
|
|
grep "63 examples, 1 failure, 22 pending"
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
@ -87,6 +85,10 @@ popd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Jul 16 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1.3.6-1
|
|
|
|
|
- Update to multi_json 1.3.6.
|
|
|
|
|
- Switch to rubygem(rspec) from rubygem(rspec-core).
|
|
|
|
|
|
|
|
|
|
* Tue Jan 24 2012 Vít Ondruch <vondruch@redhat.com> - 1.0.3-5
|
|
|
|
|
- Rebuilt for Ruby 1.9.3.
|
|
|
|
|
|
|
|
|
|