diff --git a/vim-command-t-1.10-support-Rspec-3-style.patch b/vim-command-t-1.10-support-Rspec-3-style.patch new file mode 100644 index 0000000..dc80c14 --- /dev/null +++ b/vim-command-t-1.10-support-Rspec-3-style.patch @@ -0,0 +1,47 @@ +From af2f6a55c745c2a3368f6146f1003c709541c813 Mon Sep 17 00:00:00 2001 +From: Mamoru TASAKA +Date: Sun, 18 Jan 2015 13:20:48 +0900 +Subject: [PATCH] support Rspec 3 style + +Just change be_true to be_truthy, be_false to be_falsey +(works both rspec 3.1.x and 2.14.x) +--- + spec/command-t/watchman/utils_spec.rb | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/spec/command-t/watchman/utils_spec.rb b/spec/command-t/watchman/utils_spec.rb +index 4bb5c4e..80cc899 100644 +--- a/spec/command-t/watchman/utils_spec.rb ++++ b/spec/command-t/watchman/utils_spec.rb +@@ -71,11 +71,11 @@ describe CommandT::Watchman::Utils do + end + + it 'roundtrips `true` booleans' do +- expect(roundtrip(true)).to be_true ++ expect(roundtrip(true)).to be_truthy + end + + it 'roundtrips `false` booleans' do +- expect(roundtrip(false)).to be_false ++ expect(roundtrip(false)).to be_falsey + end + + it 'roundtrips nil' do +@@ -278,12 +278,12 @@ describe CommandT::Watchman::Utils do + + it 'loads boolean `true` values' do + input = binary("\x00\x01\x03\x01\x08") +- expect(described_class.load(input)).to be_true ++ expect(described_class.load(input)).to be_truthy + end + + it 'loads boolean `false` values' do + input = binary("\x00\x01\x03\x01\x09") +- expect(described_class.load(input)).to be_false ++ expect(described_class.load(input)).to be_falsey + end + + it 'loads nil' do +-- +2.2.1 + diff --git a/vim-command-t.spec b/vim-command-t.spec index 4c77015..83b153b 100644 --- a/vim-command-t.spec +++ b/vim-command-t.spec @@ -8,7 +8,7 @@ Name: vim-command-t Version: 1.10 -Release: 4%{?dist} +Release: 5%{?dist} Summary: An extremely fast, intuitive mechanism for opening files in VIM Group: Applications/Editors License: BSD @@ -24,6 +24,8 @@ Source1: vim-command-t.metainfo.xml # Fix test failure on BE architectures (rhbz#1130079). # https://github.com/wincent/Command-T/commit/953aa33ab33ca6059f85dc8ebb40c3b6bbaae39c Patch0: vim-command-t-1.10-Fix-test-failure-on-big-endian-architectures.patch +# Support rspec3 style +Patch1: vim-command-t-1.10-support-Rspec-3-style.patch Requires: ruby(release) # Although command-t does not depend on rubygems directly, the RubyGems are # required by Ruby, but not always (rhbz#845011). So it is necessary to enforce @@ -34,7 +36,7 @@ Requires: ruby(rubygems) Requires: vim-common BuildRequires: ruby(release) BuildRequires: ruby-devel -BuildRequires: rubygem(rspec) +BuildRequires: rubygem(rspec) >= 3 BuildRequires: rubygem(rr) Requires(post): %{_bindir}/vim Requires(postun): %{_bindir}/vim @@ -54,6 +56,7 @@ more weight. %setup -q -c %patch0 -p1 +%patch1 -p1 %build pushd ./ruby/command-t @@ -116,6 +119,10 @@ vim -c ":helptags %{vimfiles}/doc" -c :q &> /dev/null %changelog +* Sun Jan 18 2015 Mamoru TASAKA - 1.10-5 +- Rebuild for https://fedoraproject.org/wiki/Changes/Ruby_2.2 +- Fix for rspec 3 + * Mon Aug 18 2014 Fedora Release Engineering - 1.10-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild