From 05c41869f971836b1d85a1da372a95010ce93845 Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Aug 13 2014 07:41:12 +0000 Subject: Backport temporarily be_truthy matchers and so on --- diff --git a/rubygem-rspec-expectations-2.14.5-be_truthy-alias.patch b/rubygem-rspec-expectations-2.14.5-be_truthy-alias.patch new file mode 100644 index 0000000..073ef9f --- /dev/null +++ b/rubygem-rspec-expectations-2.14.5-be_truthy-alias.patch @@ -0,0 +1,13 @@ +--- 2.14.5/TMP/lib/rspec/matchers.rb.be_truthy 1970-01-01 09:00:00.000000000 +0900 ++++ 2.14.5/TMP/lib/rspec/matchers.rb 2014-08-13 16:30:56.000000000 +0900 +@@ -198,6 +198,10 @@ + BuiltIn::BeNil.new + end + ++ alias_method :be_truthy, :be_true ++ alias_method :be_falsey, :be_false ++ alias_method :be_falsy, :be_falsey ++ + # @example + # expect(actual).to be_true + # expect(actual).to be_false diff --git a/rubygem-rspec-expectations.spec b/rubygem-rspec-expectations.spec index 1bf4198..df2d5f2 100644 --- a/rubygem-rspec-expectations.spec +++ b/rubygem-rspec-expectations.spec @@ -3,7 +3,7 @@ %global rpmminorver .%(echo %preminorver | sed -e 's|^\\.\\.*||') %global fullver %{majorver}%{?preminorver} -%global fedorarel 2 +%global fedorarel 3 %global gem_name rspec-expectations @@ -31,6 +31,8 @@ Group: Development/Languages License: MIT URL: http://github.com/rspec/rspec-expectations Source0: http://rubygems.org/gems/%{gem_name}-%{fullver}.gem +# Backport temporarily be_truthy matchers and so on +Patch0: rubygem-rspec-expectations-2.14.5-be_truthy-alias.patch BuildRequires: ruby(release) BuildRequires: rubygems-devel @@ -65,6 +67,9 @@ pushd tmpunpackdir gem unpack %{SOURCE0} cd %{gem_name}-%{version} + +%patch0 -p2 + gem specification -l --ruby %{SOURCE0} > %{gem_name}.gemspec gem build %{gem_name}.gemspec mv %{gem_name}-%{version}.gem $TOPDIR @@ -112,6 +117,9 @@ popd %exclude %{gem_instdir}/spec/ %changelog +* Wed Aug 13 2014 Mamoru TASAKA - 2.14.5-3 +- Backport temporarily be_truthy matchers and so on + * Thu Jun 26 2014 Mamoru TASAKA - 2.14.5-2 - Force to use minitest 4.x, 5.x is too dangerous now