!12 Upgrade version to 1.17.0
From: @cherry530 Reviewed-by: @lyn1001 Signed-off-by: @lyn1001
This commit is contained in:
commit
a0d2fef696
@ -1,24 +0,0 @@
|
||||
From 72202aab5e5b3602ece4e8748bcdeefe2d789ab5 Mon Sep 17 00:00:00 2001
|
||||
From: Jean Boussier <jean.boussier@gmail.com>
|
||||
Date: Fri, 13 Jan 2023 09:21:17 +0100
|
||||
Subject: [PATCH] Use `RbConfig::CONFIG["rubylibdir"]` to check for stdlib
|
||||
files
|
||||
|
||||
Ref: https://github.com/Shopify/bootsnap/issues/431
|
||||
---
|
||||
test/load_path_cache/path_test.rb | 2 +-
|
||||
1 file changed, 1 insertions(+), 1 deletions(-)
|
||||
|
||||
diff --git a/test/load_path_cache/path_test.rb b/test/load_path_cache/path_test.rb
|
||||
index 5425ed9..2c1c289 100644
|
||||
--- a/test/load_path_cache/path_test.rb
|
||||
+++ b/test/load_path_cache/path_test.rb
|
||||
@@ -16,7 +16,7 @@ def test_stability
|
||||
volatile = Path.new(__FILE__)
|
||||
stable = Path.new(time_file)
|
||||
unknown = Path.new("/who/knows")
|
||||
- lib = Path.new("#{RbConfig::CONFIG['libdir']}/a")
|
||||
+ lib = Path.new("#{RbConfig::CONFIG['rubylibdir']}/a")
|
||||
site = Path.new("#{RbConfig::CONFIG['sitedir']}/b")
|
||||
absolute_prefix = RbConfig::CONFIG["host_os"] =~ /mswin|mingw|cygwin/ ? ENV["SystemDrive"] : ""
|
||||
bundler = Path.new("#{absolute_prefix}/bp/3")
|
||||
@ -1,28 +0,0 @@
|
||||
From 72202aab5e5b3602ece4e8748bcdeefe2d789ab5 Mon Sep 17 00:00:00 2001
|
||||
From: Jean Boussier <jean.boussier@gmail.com>
|
||||
Date: Fri, 13 Jan 2023 09:21:17 +0100
|
||||
Subject: [PATCH] Use `RbConfig::CONFIG["rubylibdir"]` to check for stdlib
|
||||
files
|
||||
|
||||
Ref: https://github.com/Shopify/bootsnap/issues/431
|
||||
---
|
||||
lib/bootsnap/load_path_cache/path.rb | 4 ++--
|
||||
1 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/CHANGELOG.md b/CHANGELOG.md
|
||||
index 1aadf9e..f38db3b 100644
|
||||
diff --git a/lib/bootsnap/load_path_cache/path.rb b/lib/bootsnap/load_path_cache/path.rb
|
||||
index 626740c..e000c60 100644
|
||||
--- a/lib/bootsnap/load_path_cache/path.rb
|
||||
+++ b/lib/bootsnap/load_path_cache/path.rb
|
||||
@@ -116,8 +116,8 @@ def latest_mtime(path, dirs)
|
||||
VOLATILE = :volatile
|
||||
|
||||
# Built-in ruby lib stuff doesn't change, but things can occasionally be
|
||||
- # installed into sitedir, which generally lives under libdir.
|
||||
- RUBY_LIBDIR = RbConfig::CONFIG["libdir"]
|
||||
+ # installed into sitedir, which generally lives under rubylibdir.
|
||||
+ RUBY_LIBDIR = RbConfig::CONFIG["rubylibdir"]
|
||||
RUBY_SITEDIR = RbConfig::CONFIG["sitedir"]
|
||||
|
||||
def stability
|
||||
Binary file not shown.
Binary file not shown.
BIN
bootsnap-1.17.0.gem
Normal file
BIN
bootsnap-1.17.0.gem
Normal file
Binary file not shown.
@ -1,18 +1,16 @@
|
||||
%global gem_name bootsnap
|
||||
Name: rubygem-%{gem_name}
|
||||
Version: 1.15.0
|
||||
Version: 1.17.0
|
||||
Release: 1
|
||||
Summary: Boot large ruby/rails apps faster
|
||||
License: MIT
|
||||
URL: https://github.com/Shopify/bootsnap
|
||||
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
||||
# git clone http://github.com/Shopify/bootsnap.git --no-checkout
|
||||
# cd bootsnap && git archive -v -o bootsnap-1.15.0-tests.txz v1.15.0 test/
|
||||
# cd bootsnap && git archive -v -o bootsnap-1.17.0-tests.txz v1.17.0 test/
|
||||
Source1: %{gem_name}-%{version}-tests.txz
|
||||
# https://github.com/Shopify/bootsnap/issues/431
|
||||
# https://github.com/Shopify/bootsnap/commit/72202aab5e5b3602ece4e8748bcdeefe2d789ab5
|
||||
Patch0: Use-RbConfig-CONFIG-rubylibdir-to-check-for-stdlib-files.patch
|
||||
Patch1: Use-RbConfig-CONFIG-rubylibdir-to-check-for-stdlib-files-test.patch
|
||||
BuildRequires: ruby(release) rubygems-devel ruby-devel >= 2.0.0 rubygem(minitest)
|
||||
BuildRequires: rubygem(mocha) rubygem(msgpack) gcc
|
||||
BuildRequires: rubygem(bundler)
|
||||
@ -30,10 +28,6 @@ Documentation for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{gem_name}-%{version} -b 1
|
||||
%patch0 -p1
|
||||
pushd %{_builddir}
|
||||
%patch1 -p1
|
||||
popd
|
||||
sed -i -e "/^\s*\$CFLAGS / s/^/#/g" \
|
||||
ext/bootsnap/extconf.rb
|
||||
|
||||
@ -85,6 +79,9 @@ popd
|
||||
%doc %{gem_instdir}/README.md
|
||||
|
||||
%changelog
|
||||
* Tue Nov 14 2023 xu_ping <707078654@qq.com> - 1.17.0-1
|
||||
- Update to 1.17.0
|
||||
|
||||
* Tue Aug 01 2023 yaoxin <yao_xin001@hoperun.com> - 1.15.0-1
|
||||
- Update to 1.15.0
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user