diff options
Diffstat (limited to 'dev-ruby/websocket-extensions')
3 files changed, 42 insertions, 2 deletions
diff --git a/dev-ruby/websocket-extensions/Manifest b/dev-ruby/websocket-extensions/Manifest index 7e94b70f5bcf..548863b62812 100644 --- a/dev-ruby/websocket-extensions/Manifest +++ b/dev-ruby/websocket-extensions/Manifest @@ -1,3 +1,4 @@ +AUX websocket-extensions-0.1.5-rspec-mocks.patch 1777 BLAKE2B afcb11336ae72a2a81b1be7a6715d5f86275baff851afb724a74b4560ef620d676e1b55d4fc0a517350edc626d542c393aeb7332e89cbe448d946cc3bcf35b04 SHA512 20b63d2244639beefd661dbf05c1828bfe4e513ebef202ec4c9ea2763d9daa55fe0ff02f334431993e708ea096b44da1a20494accec2a1206c9fdcfc569c94be DIST websocket-extensions-0.1.5-r1.tar.gz 9795 BLAKE2B ea387b9bd56d02372740a8f42e0c8259cd2013876f86a13c8203e1e1c5ae9e0e6a8d0c2cf11f653c3517c2bff0c283370ec7a5760c29df39493c4b41d8e55450 SHA512 a80154d0c83743ffa4dd3eee1adcc93bb38907fbae4260602a91c922e5a022806413a8aa84dc10bc14b5ed2ca928765ef4c39e04ff0a0c5f9b423aff2b2514fd -EBUILD websocket-extensions-0.1.5-r1.ebuild 648 BLAKE2B f01b47ec8667474ebcc118a1caaa7919b60130f34680b898d18d718762ca4fed1b8f2fd0ceb9de9ff9f9aac2d55209676dd4ec105d5c7a8dc05e8913b2e5b01f SHA512 409ef96f44d353e577ca662880ef49de4d2b777d076aad9bd61f88ddeb41452360abfc3ee82bba0af28f5e912ae19c31a2178bebd3616cfae2b248a87fa029f9 +EBUILD websocket-extensions-0.1.5-r1.ebuild 698 BLAKE2B 94223214c8628560e06c6f4d0f6af253b5f30843260450f423d535561fd7abf2d330b31135972cb3ddf3c387ae6f7b2f0cfebea3ef4887f7b8bab25655e485d7 SHA512 0f7ee56988ae030c1bf5f76ab1b269bbd7e6f1c61c7bb180656f9ad2b348b4eed7b99b24950a6d90cb32c49d28131c5301bbd972577db003acda28daebb20f42 MISC metadata.xml 357 BLAKE2B 53c981c963d611a3a88a88c54a0a186246422b84e12030650b1aadd52c046183c4eef2ded318cf0a295dd46b6a46ec452fe65b95d36c76669b29a310223e4ee8 SHA512 61b5e384d987994312e05bbed7b09e46f01b09db70db8fb4c53e6a97788a8079e8891dd11d533fdeb8570b6ca3927b2f7e41ea9d54faaa50a78d619a401e3c59 diff --git a/dev-ruby/websocket-extensions/files/websocket-extensions-0.1.5-rspec-mocks.patch b/dev-ruby/websocket-extensions/files/websocket-extensions-0.1.5-rspec-mocks.patch new file mode 100644 index 000000000000..152972e232dc --- /dev/null +++ b/dev-ruby/websocket-extensions/files/websocket-extensions-0.1.5-rspec-mocks.patch @@ -0,0 +1,37 @@ +From 5891358639fcfa7a2e2004855275bd7da0c85c64 Mon Sep 17 00:00:00 2001 +From: James Coglan <jcoglan@gmail.com> +Date: Sun, 6 Feb 2022 23:36:18 +0000 +Subject: [PATCH] As of rspec-mocks v3.10.3, mock expectations need to use + explicit hashes to avoid confusion with keyword args + +--- + spec/websocket/extensions_spec.rb | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/spec/websocket/extensions_spec.rb b/spec/websocket/extensions_spec.rb +index 7c1e4f1..ccb305d 100644 +--- a/spec/websocket/extensions_spec.rb ++++ b/spec/websocket/extensions_spec.rb +@@ -134,18 +134,18 @@ + end + + it "activates one session with a boolean param" do +- expect(@session).to receive(:activate).with("gzip" => true).exactly(1).and_return(true) ++ expect(@session).to receive(:activate).with({ "gzip" => true }).exactly(1).and_return(true) + @extensions.activate("deflate; gzip") + end + + it "activates one session with a string param" do +- expect(@session).to receive(:activate).with("mode" => "compress").exactly(1).and_return(true) ++ expect(@session).to receive(:activate).with({ "mode" => "compress" }).exactly(1).and_return(true) + @extensions.activate("deflate; mode=compress") + end + + it "activate multiple sessions" do +- expect(@session).to receive(:activate).with("a" => true).exactly(1).and_return(true) +- expect(@nonconflict_session).to receive(:activate).with("b" => true).exactly(1).and_return(true) ++ expect(@session).to receive(:activate).with({ "a" => true }).exactly(1).and_return(true) ++ expect(@nonconflict_session).to receive(:activate).with({ "b" => true }).exactly(1).and_return(true) + @extensions.activate("deflate; a, reverse; b") + end + diff --git a/dev-ruby/websocket-extensions/websocket-extensions-0.1.5-r1.ebuild b/dev-ruby/websocket-extensions/websocket-extensions-0.1.5-r1.ebuild index 6ab9f321e76a..8ed52fe05f7d 100644 --- a/dev-ruby/websocket-extensions/websocket-extensions-0.1.5-r1.ebuild +++ b/dev-ruby/websocket-extensions/websocket-extensions-0.1.5-r1.ebuild @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=7 -USE_RUBY="ruby25 ruby26 ruby27 ruby30" +USE_RUBY="ruby26 ruby27 ruby30 ruby31" RUBY_FAKEGEM_RECIPE_TEST="rspec3" @@ -21,3 +21,5 @@ LICENSE="Apache-2.0" SLOT="0" KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~riscv ~x86" IUSE="" + +PATCHES=( "${FILESDIR}"/${P}-rspec-mocks.patch ) |