Accepting request 958029 from home:dancermak:branches:Virtualization:vagrant
Bump rspec version to ~> 3.11.0 OBS-URL: https://build.opensuse.org/request/show/958029 OBS-URL: https://build.opensuse.org/package/show/Virtualization:vagrant/vagrant?expand=0&rev=65
This commit is contained in:
parent
32a9ce3d35
commit
99eb528db4
@ -1,7 +1,7 @@
|
||||
From 33ec34c4946a10f38747b827ccd0500cc3685af4 Mon Sep 17 00:00:00 2001
|
||||
From: Antonio Terceiro <terceiro@debian.org>
|
||||
Date: Sat, 11 Oct 2014 16:54:58 -0300
|
||||
Subject: [PATCH 01/11] bin/vagrant: silence warning about installer
|
||||
Subject: [PATCH 01/13] bin/vagrant: silence warning about installer
|
||||
|
||||
Signed-off-by: Johannes Kastl <kastl@b1-systems.de>
|
||||
---
|
||||
@ -36,5 +36,5 @@ index b539d3479..77c83d7c0 100755
|
||||
#
|
||||
# Unset - Disables experimental features
|
||||
--
|
||||
2.34.1
|
||||
2.35.1
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
From df5d75cdb6c3f415e53bd494d3db5e4c809d8230 Mon Sep 17 00:00:00 2001
|
||||
From: Antonio Terceiro <terceiro@debian.org>
|
||||
Date: Wed, 22 Oct 2014 09:40:14 -0200
|
||||
Subject: [PATCH 02/11] Use a private temporary dir
|
||||
Subject: [PATCH 02/13] Use a private temporary dir
|
||||
|
||||
Without this vagrant will clutter $TMPDIR with dozens of even hundreds
|
||||
of temporary files (~4 per vagrant invocation).
|
||||
@ -94,5 +94,5 @@ index 000000000..0cbbb53ac
|
||||
+ FileUtils.rm_rf(Vagrant::Util::Tempfile.private_tmpdir)
|
||||
+end
|
||||
--
|
||||
2.34.1
|
||||
2.35.1
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
From e8835db89852f1221ed9eeff67816a079ed6762b Mon Sep 17 00:00:00 2001
|
||||
From: Johannes Kastl <kastl@b1-systems.de>
|
||||
Date: Wed, 17 May 2017 09:09:57 +0200
|
||||
Subject: [PATCH 03/11] plugins-don-t-abuse-require_relative.patch
|
||||
Subject: [PATCH 03/13] plugins-don-t-abuse-require_relative.patch
|
||||
|
||||
Signed-off-by: Johannes Kastl <kastl@b1-systems.de>
|
||||
---
|
||||
@ -154,5 +154,5 @@ index 2dd140230..e6dd96f08 100644
|
||||
module VagrantPlugins
|
||||
module GuestSUSE
|
||||
--
|
||||
2.34.1
|
||||
2.35.1
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
From d124f36515e112737baecea699a3aa09615702d7 Mon Sep 17 00:00:00 2001
|
||||
From: Johannes Kastl <kastl@b1-systems.de>
|
||||
Date: Fri, 16 Nov 2018 21:12:43 +0100
|
||||
Subject: [PATCH 04/11] fix vbox package boo#1044087, added by
|
||||
Subject: [PATCH 04/13] fix vbox package boo#1044087, added by
|
||||
robert.munteanu@gmail.com on Sun Aug 13 19:07:06 UTC 2017
|
||||
|
||||
Signed-off-by: Johannes Kastl <kastl@b1-systems.de>
|
||||
@ -33,5 +33,5 @@ index a0baf516f..867fe2bf8 100644
|
||||
module VagrantPlugins
|
||||
module ProviderVirtualBox
|
||||
--
|
||||
2.34.1
|
||||
2.35.1
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
From 4a7f3ff284ac2a3dd1e6261221f787ac4e7075d7 Mon Sep 17 00:00:00 2001
|
||||
From: Johannes Kastl <kastl@b1-systems.de>
|
||||
Date: Mon, 4 Jun 2018 09:18:23 +0200
|
||||
Subject: [PATCH 05/11] do not depend on wdm
|
||||
Subject: [PATCH 05/13] do not depend on wdm
|
||||
|
||||
Signed-off-by: Johannes Kastl <kastl@b1-systems.de>
|
||||
---
|
||||
@ -21,5 +21,5 @@ index 992b48f2f..2bef1036a 100644
|
||||
s.add_dependency "winrm-elevated", ">= 1.2.1", "< 2.0"
|
||||
s.add_dependency "winrm-fs", ">= 1.3.4", "< 2.0"
|
||||
--
|
||||
2.34.1
|
||||
2.35.1
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
From 99447e851f41f413d1e525ef51e946b003e1a080 Mon Sep 17 00:00:00 2001
|
||||
From: Johannes Kastl <kastl@b1-systems.de>
|
||||
Date: Fri, 16 Nov 2018 21:14:46 +0100
|
||||
Subject: [PATCH 06/11] do not abuse relative paths in docker plugin to make
|
||||
Subject: [PATCH 06/13] do not abuse relative paths in docker plugin to make
|
||||
docker work, added by tmkn@tmkn.uk on Thu Oct 26 19:42:46 UTC 2017
|
||||
|
||||
Signed-off-by: Johannes Kastl <kastl@b1-systems.de>
|
||||
@ -22,5 +22,5 @@ index 07c4e5333..e8142df8b 100644
|
||||
module VagrantPlugins
|
||||
module DockerProvider
|
||||
--
|
||||
2.34.1
|
||||
2.35.1
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
From 3dc208ffbe52efb9c77e8541824b2b33a9252eaf Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Dan=20=C4=8Cerm=C3=A1k?= <dcermak@suse.com>
|
||||
Date: Fri, 11 Jan 2019 12:32:28 +0100
|
||||
Subject: [PATCH 07/11] Don't abuse relative paths in plugins
|
||||
Subject: [PATCH 07/13] Don't abuse relative paths in plugins
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
@ -65,5 +65,5 @@ index 7bc8ceca0..e938305e7 100644
|
||||
require_relative "../installer"
|
||||
|
||||
--
|
||||
2.34.1
|
||||
2.35.1
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
From f6b2e0cebf27725b82b29085451df2308989b1c7 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Dan=20=C4=8Cerm=C3=A1k?= <dcermak@suse.com>
|
||||
Date: Mon, 1 Apr 2019 17:28:31 +0200
|
||||
Subject: [PATCH 08/11] Skip failing tests
|
||||
Subject: [PATCH 08/13] Skip failing tests
|
||||
|
||||
---
|
||||
test/unit/bin/vagrant_test.rb | 4 ++--
|
||||
@ -30,5 +30,5 @@ index dbbd52112..4481e4c09 100644
|
||||
end
|
||||
end
|
||||
--
|
||||
2.34.1
|
||||
2.35.1
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
From cc9cc287131b8a0b4419d2a7c2a0f7f3fd7b5b26 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Dan=20=C4=8Cerm=C3=A1k?= <dcermak@suse.com>
|
||||
Date: Wed, 28 Aug 2019 13:39:58 +0200
|
||||
Subject: [PATCH 09/11] Disable Subprocess unit test
|
||||
Subject: [PATCH 09/13] Disable Subprocess unit test
|
||||
|
||||
This unit test is *very* flaky on OBS' workers and causes random build
|
||||
failures. These are probably caused by worker being under high load and then
|
||||
@ -33,5 +33,5 @@ index 0ff5835c8..757d8ef8a 100644
|
||||
thread = Thread.new{ sp.execute }
|
||||
sleep(0.1)
|
||||
--
|
||||
2.34.1
|
||||
2.35.1
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
From 214e118384d0456db19faa0fa63bff571d0229c3 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Dan=20=C4=8Cerm=C3=A1k?= <dcermak@suse.com>
|
||||
Date: Mon, 3 Jan 2022 12:08:09 +0100
|
||||
Subject: [PATCH 10/11] Add support for Ruby 3.1
|
||||
Subject: [PATCH 10/13] Add support for Ruby 3.1
|
||||
|
||||
The biggest change comming with Ruby 3.1 is that net/ftp is no longer bundled
|
||||
with Ruby but distributed as a separate gem.
|
||||
@ -33,5 +33,5 @@ index 2bef1036a..ccf76011a 100644
|
||||
s.add_dependency "net-sftp", "~> 3.0"
|
||||
s.add_dependency "net-scp", "~> 3.0.0"
|
||||
--
|
||||
2.34.1
|
||||
2.35.1
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
From 32b8ea83078edc4a86cbba573142dc95b16ebd40 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Dan=20=C4=8Cerm=C3=A1k?= <dcermak@suse.com>
|
||||
Date: Tue, 1 Feb 2022 11:31:44 +0100
|
||||
Subject: [PATCH 11/11] Bump version of ed25519 to ~> 1.3.0
|
||||
Subject: [PATCH 11/13] Bump version of ed25519 to ~> 1.3.0
|
||||
|
||||
(cherry picked from commit 2a974101f42dbc525450e240f02db2a3edc62ac1)
|
||||
---
|
||||
@ -22,5 +22,5 @@ index ccf76011a..ea38685bf 100644
|
||||
s.add_dependency "hashicorp-checkpoint", "~> 0.1.5"
|
||||
s.add_dependency "i18n", "~> 1.8"
|
||||
--
|
||||
2.34.1
|
||||
2.35.1
|
||||
|
||||
|
26
0012-Bump-rspec-dependency-to-3.11.0.patch
Normal file
26
0012-Bump-rspec-dependency-to-3.11.0.patch
Normal file
@ -0,0 +1,26 @@
|
||||
From 28264928d405319ddc28c300cb9b32101eb5fa4c Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Dan=20=C4=8Cerm=C3=A1k?= <dcermak@suse.com>
|
||||
Date: Mon, 28 Feb 2022 10:51:50 +0100
|
||||
Subject: [PATCH 12/13] Bump rspec dependency to ~> 3.11.0
|
||||
|
||||
(cherry picked from commit 45a225416d2e611ddad34635104b9e22badd17e7)
|
||||
---
|
||||
vagrant.gemspec | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/vagrant.gemspec b/vagrant.gemspec
|
||||
index ea38685bf..8622c2dbf 100644
|
||||
--- a/vagrant.gemspec
|
||||
+++ b/vagrant.gemspec
|
||||
@@ -39,7 +39,7 @@ Gem::Specification.new do |s|
|
||||
# Constraint rake to properly handle deprecated method usage
|
||||
# from within rspec
|
||||
s.add_development_dependency "rake", "~> 13.0"
|
||||
- s.add_development_dependency "rspec", "~> 3.10.0"
|
||||
+ s.add_development_dependency "rspec", "~> 3.11.0"
|
||||
s.add_development_dependency "rspec-its", "~> 1.3.0"
|
||||
s.add_development_dependency "fake_ftp", "~> 0.1.1"
|
||||
s.add_development_dependency "webrick", "~> 1.7.0"
|
||||
--
|
||||
2.35.1
|
||||
|
@ -0,0 +1,76 @@
|
||||
From 729306f83a0cc2926752bc09fb0194e0b2e1d455 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Dan=20=C4=8Cerm=C3=A1k?= <dcermak@suse.com>
|
||||
Date: Mon, 28 Feb 2022 10:46:17 +0100
|
||||
Subject: [PATCH 13/13] Stop using the last argument as kwargs in unit tests
|
||||
|
||||
A few unit tests started failing with Ruby 3.0, because they were relying on
|
||||
keyword arguments being converted into hashes automatically. This behavior was
|
||||
deprecated in Ruby 2.7 and results in errors in Ruby 3.0 onward.
|
||||
|
||||
For further details:
|
||||
https://rubyreferences.github.io/rubychanges/3.0.html#keyword-arguments-are-now-fully-separated-from-positional-arguments
|
||||
|
||||
(cherry picked from commit 2b1c25d247aba492e582a01cff8ecdd33d4d165b)
|
||||
---
|
||||
test/unit/plugins/commands/package/command_test.rb | 4 ++--
|
||||
.../plugins/providers/hyperv/action/read_guest_ip_test.rb | 2 +-
|
||||
test/unit/vagrant/ui_test.rb | 4 ++--
|
||||
3 files changed, 5 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/test/unit/plugins/commands/package/command_test.rb b/test/unit/plugins/commands/package/command_test.rb
|
||||
index 7b289bd1e..d0f81393b 100644
|
||||
--- a/test/unit/plugins/commands/package/command_test.rb
|
||||
+++ b/test/unit/plugins/commands/package/command_test.rb
|
||||
@@ -64,7 +64,7 @@ describe VagrantPlugins::CommandPackage::Command do
|
||||
|
||||
it "packages default machine inside specified folder" do
|
||||
expect(package_command).to receive(:package_vm).with(
|
||||
- a_machine_named('default'), :output => "package-output-folder/default"
|
||||
+ a_machine_named('default'), { output: "package-output-folder/default" }
|
||||
)
|
||||
package_command.execute
|
||||
end
|
||||
@@ -96,7 +96,7 @@ describe VagrantPlugins::CommandPackage::Command do
|
||||
let(:argv){ ['--base', 'machine-id'] }
|
||||
|
||||
it "packages vm defined within virtualbox" do
|
||||
- expect(package_command).to receive(:package_base).with(:base => 'machine-id')
|
||||
+ expect(package_command).to receive(:package_base).with({ base: 'machine-id' })
|
||||
package_command.execute
|
||||
end
|
||||
|
||||
diff --git a/test/unit/plugins/providers/hyperv/action/read_guest_ip_test.rb b/test/unit/plugins/providers/hyperv/action/read_guest_ip_test.rb
|
||||
index 5642c6271..ecce003a6 100644
|
||||
--- a/test/unit/plugins/providers/hyperv/action/read_guest_ip_test.rb
|
||||
+++ b/test/unit/plugins/providers/hyperv/action/read_guest_ip_test.rb
|
||||
@@ -31,7 +31,7 @@ describe VagrantPlugins::HyperV::Action::ReadGuestIP do
|
||||
end
|
||||
|
||||
it "should set the host information into the env" do
|
||||
- expect(env).to receive(:[]=).with(:machine_ssh_info, host: "ADDRESS")
|
||||
+ expect(env).to receive(:[]=).with(:machine_ssh_info, { host: "ADDRESS" })
|
||||
expect(driver).to receive(:read_guest_ip).and_return("ip" => "ADDRESS")
|
||||
subject.call(env)
|
||||
end
|
||||
diff --git a/test/unit/vagrant/ui_test.rb b/test/unit/vagrant/ui_test.rb
|
||||
index e484b8154..120b1dda2 100644
|
||||
--- a/test/unit/vagrant/ui_test.rb
|
||||
+++ b/test/unit/vagrant/ui_test.rb
|
||||
@@ -379,12 +379,12 @@ describe Vagrant::UI::Prefixed do
|
||||
|
||||
describe "#machine" do
|
||||
it "sets the target option" do
|
||||
- expect(ui).to receive(:machine).with(:foo, target: prefix)
|
||||
+ expect(ui).to receive(:machine).with(:foo, { target: prefix })
|
||||
subject.machine(:foo)
|
||||
end
|
||||
|
||||
it "preserves existing options" do
|
||||
- expect(ui).to receive(:machine).with(:foo, :bar, foo: :bar, target: prefix)
|
||||
+ expect(ui).to receive(:machine).with(:foo, :bar, { foo: :bar, target: prefix })
|
||||
subject.machine(:foo, :bar, foo: :bar)
|
||||
end
|
||||
end
|
||||
--
|
||||
2.35.1
|
||||
|
@ -1,3 +1,25 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 28 11:08:13 UTC 2022 - Dan Čermák <dcermak@suse.com>
|
||||
|
||||
- Bump rspec version to ~> 3.11.0
|
||||
|
||||
Rebase patches:
|
||||
* 0001-bin-vagrant-silence-warning-about-installer.patch
|
||||
* 0002-Use-a-private-temporary-dir.patch
|
||||
* 0003-plugins-don-t-abuse-require_relative.patch.patch
|
||||
* 0004-fix-vbox-package-boo-1044087-added-by-robert.muntean.patch
|
||||
* 0005-do-not-depend-on-wdm.patch
|
||||
* 0006-do-not-abuse-relative-paths-in-docker-plugin-to-make.patch
|
||||
* 0007-Don-t-abuse-relative-paths-in-plugins.patch
|
||||
* 0008-Skip-failing-tests.patch
|
||||
* 0009-Disable-Subprocess-unit-test.patch
|
||||
* 0010-Add-support-for-Ruby-3.1.patch
|
||||
* 0011-Bump-version-of-ed25519-to-1.3.0.patch
|
||||
|
||||
Added patches:
|
||||
* 0012-Bump-rspec-dependency-to-3.11.0.patch
|
||||
* 0013-Stop-using-the-last-argument-as-kwargs-in-unit-tests.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 1 10:55:47 UTC 2022 - Dan Čermák <dcermak@suse.com>
|
||||
|
||||
|
@ -59,6 +59,8 @@ Patch8: 0008-Skip-failing-tests.patch
|
||||
Patch9: 0009-Disable-Subprocess-unit-test.patch
|
||||
Patch10: 0010-Add-support-for-Ruby-3.1.patch
|
||||
Patch11: 0011-Bump-version-of-ed25519-to-1.3.0.patch
|
||||
Patch12: 0012-Bump-rspec-dependency-to-3.11.0.patch
|
||||
Patch13: 0013-Stop-using-the-last-argument-as-kwargs-in-unit-tests.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
# force only one ruby version
|
||||
@ -139,8 +141,9 @@ BuildRequires: %{rubygem vagrant_cloud:3.0 >= 3.0.5 }
|
||||
# devel dependencies:
|
||||
# s.add_development_dependency "rake", "~> 13.0"
|
||||
BuildRequires: %{rubygem rake:13 }
|
||||
# s.add_development_dependency "rspec", "~> 3.10.0"
|
||||
BuildRequires: %{rubygem rspec:3.10 }
|
||||
# PATCHED
|
||||
# s.add_development_dependency "rspec", "~> 3.11.0"
|
||||
BuildRequires: %{rubygem rspec:3.11 }
|
||||
# s.add_development_dependency "rspec-its", "~> 1.3.0"
|
||||
BuildRequires: %{rubygem rspec-its:1.3 }
|
||||
# s.add_development_dependency "fake_ftp", "~> 0.1.1"
|
||||
|
Loading…
Reference in New Issue
Block a user