!3 Upgrade to version 3.8.0

From: @wk333 
Reviewed-by: @jxy_git 
Signed-off-by: @jxy_git
This commit is contained in:
openeuler-ci-bot 2023-01-20 07:02:48 +00:00 committed by Gitee
commit ffa460403a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
6 changed files with 5 additions and 42 deletions

Binary file not shown.

BIN
listen-3.8.0.gem Normal file

Binary file not shown.

View File

@ -1,32 +0,0 @@
From 2908365366792ac3ba010fa32bc3be2beaed451a Mon Sep 17 00:00:00 2001
From: Samuel Williams <samuel.williams@oriontransfer.co.nz>
Date: Sun, 16 Dec 2018 11:32:45 +1300
Subject: [PATCH] Use raw Pathname to fix Linux specs.
---
spec/lib/listen/adapter/linux_spec.rb | 12 +-----------
1 file changed, 1 insertions(+), 11 deletions(-)
diff --git a/spec/lib/listen/adapter/linux_spec.rb b/spec/lib/listen/adapter/linux_spec.rb
index d77f0c0..da48319 100644
--- a/spec/lib/listen/adapter/linux_spec.rb
+++ b/spec/lib/listen/adapter/linux_spec.rb
@@ -10,17 +10,7 @@
end
if linux?
- let(:dir1) do
- instance_double(
- Pathname,
- 'dir1',
- to_s: '/foo/dir1',
- cleanpath: real_dir1
- )
- end
-
- # just so cleanpath works in above double
- let(:real_dir1) { instance_double(Pathname, 'dir1', to_s: '/foo/dir1') }
+ let(:dir1) {Pathname.new("/foo/dir1")}
let(:config) { instance_double(Listen::Adapter::Config) }
let(:queue) { instance_double(Queue) }

View File

@ -1,16 +1,12 @@
%global gem_name listen
Name: rubygem-%{gem_name}
Version: 3.1.5
Version: 3.8.0
Release: 1
Summary: Listen to file modifications
License: MIT
URL: https://github.com/guard/listen
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
Source1: https://github.com/guard/%{gem_name}/archive/v%{version}.tar.gz
# Fix test suite on Ruby 2.6.
# https://github.com/guard/listen/commit/466594233b9ee4377cc9f3a845ab8c60b33134a8
# https://github.com/guard/listen/commit/2908365366792ac3ba010fa32bc3be2beaed451a
Patch0: rubygem-listen-3.1.5-Fix-issue-with-2.6.patch
BuildRequires: ruby(release) rubygems-devel ruby rubygem(rb-inotify) rubygem(thor)
BuildRequires: rubygem(rspec)
BuildArch: noarch
@ -30,13 +26,9 @@ Documentation for %{name}.
%setup -q -n %{gem_name}-%{version} -b 1
pushd %{_builddir}
ln -s %{_builddir}/%{gem_name}-%{version}/spec spec
%patch0 -p1
popd
%gemspec_remove_dep -g rb-fsevent [">= 0.9.4", "~> 0.9"]
%gemspec_remove_dep -g rb-fsevent [">= 0.10.3", "~> 0.10"]
sed -i '/def self.usable?$/a return false' lib/listen/adapter/darwin.rb
%gemspec_remove_dep -g ruby_dep "~> 1.2"
sed -i '/ruby_dep/ s/^/#/' lib/listen.rb
sed -i '/RubyDep/ s/^/#/' lib/listen.rb
%build
gem build ../%{gem_name}-%{version}.gemspec
@ -74,5 +66,8 @@ popd
%doc %{gem_instdir}/README.md
%changelog
* Fri Jan 20 2023 wangkai <wangkai385@h-partners.com> - 3.8.0-1
- Upgrade to version 3.8.0
* Mon Aug 24 2020 tushenmei <tushenmei@huawei.com> - 3.1.5-1
- package init

Binary file not shown.

BIN
v3.8.0.tar.gz Normal file

Binary file not shown.