Update to Command-T 3.0.2.
This commit is contained in:
parent
311f608884
commit
32f8ba28ec
4 changed files with 14 additions and 65 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -5,3 +5,4 @@
|
|||
/command-t-1.10.tar.gz
|
||||
/command-t-1.13.tar.gz
|
||||
/command-t-2.0.zip
|
||||
/command-t-3.0.2.zip
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
05bef9a19943f869b6e6fb31bde0bebf command-t-2.0.zip
|
||||
2f4d086bf1c8b64edeb803c6af46fe8e command-t-3.0.2.zip
|
||||
|
|
|
|||
|
|
@ -1,46 +0,0 @@
|
|||
From af2f6a55c745c2a3368f6146f1003c709541c813 Mon Sep 17 00:00:00 2001
|
||||
From: Mamoru TASAKA <mtasaka@fedoraproject.org>
|
||||
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
|
||||
---
|
||||
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
|
||||
|
||||
|
|
@ -7,16 +7,13 @@
|
|||
%global appdata_dir %{_datadir}/appdata
|
||||
|
||||
Name: vim-command-t
|
||||
Version: 2.0
|
||||
Release: 2%{?dist}
|
||||
Version: 3.0.2
|
||||
Release: 1%{?dist}
|
||||
Summary: An extremely fast, intuitive mechanism for opening files in VIM
|
||||
Group: Applications/Editors
|
||||
License: BSD
|
||||
URL: https://wincent.com/products/command-t
|
||||
Source0: http://s3.wincent.com/command-t/releases/command-t-%{version}.zip
|
||||
# Support rspec3 style
|
||||
# https://github.com/wincent/command-t/issues/190
|
||||
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
|
||||
|
|
@ -47,8 +44,6 @@ more weight.
|
|||
%prep
|
||||
%setup -q -c
|
||||
|
||||
%patch1 -p1
|
||||
|
||||
%build
|
||||
pushd ./ruby/command-t
|
||||
|
||||
|
|
@ -70,10 +65,6 @@ mv %{buildroot}%{vimfiles}/ruby/command-t/ext.so %{buildroot}%{commandt_so_dir}
|
|||
# Remove all dot files.
|
||||
find %{buildroot}%{vimfiles} -name '.*' -delete
|
||||
|
||||
# Replace symlink with copy.
|
||||
rm README.txt
|
||||
cp -pa doc/command-t.txt README.txt
|
||||
|
||||
# Install AppData.
|
||||
mkdir -p %{buildroot}%{appdata_dir}
|
||||
install -m 644 appstream/vim-command-t.metainfo.xml %{buildroot}%{appdata_dir}
|
||||
|
|
@ -82,12 +73,12 @@ install -m 644 appstream/vim-command-t.metainfo.xml %{buildroot}%{appdata_dir}
|
|||
# Get rid of Bundler
|
||||
sed -i '/Bundler/,/^end$/ s/^/#/' spec/spec_helper.rb
|
||||
|
||||
# Ignore failing test:
|
||||
# CommandT::Matcher#sorted_matches_for provides intuitive results for "artcon" and "articles_controller"
|
||||
# https://github.com/wincent/command-t/issues/189
|
||||
sed -i '/provides intuitive results for "artcon" and "articles_controller"/,/^ end$/ s/^/#/' \
|
||||
spec/command-t/matcher_spec.rb
|
||||
|
||||
## Ignore failing test:
|
||||
## CommandT::Matcher#sorted_matches_for provides intuitive results for "artcon" and "articles_controller"
|
||||
## https://github.com/wincent/command-t/issues/189
|
||||
#sed -i '/provides intuitive results for "artcon" and "articles_controller"/,/^ end$/ s/^/#/' \
|
||||
# spec/command-t/matcher_spec.rb
|
||||
#
|
||||
rspec -Iruby spec
|
||||
|
||||
%post
|
||||
|
|
@ -99,7 +90,7 @@ vim -c ":helptags %{vimfiles}/doc" -c :q &> /dev/null
|
|||
|
||||
%files
|
||||
%license LICENSE
|
||||
%doc README.txt
|
||||
%doc README.md
|
||||
%{commandt_so_dir}
|
||||
%{vimfiles}/autoload/*
|
||||
%{vimfiles}/doc/*
|
||||
|
|
@ -116,6 +107,9 @@ vim -c ":helptags %{vimfiles}/doc" -c :q &> /dev/null
|
|||
|
||||
|
||||
%changelog
|
||||
* Tue May 03 2016 Vít Ondruch <vondruch@redhat.com> - 3.0.2-1
|
||||
- Update to Command-T 3.0.2.
|
||||
|
||||
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue