diff options
Diffstat (limited to 'dev-ruby')
-rw-r--r-- | dev-ruby/Manifest.gz | bin | 106575 -> 106569 bytes | |||
-rw-r--r-- | dev-ruby/jsobfu/Manifest | 2 | ||||
-rw-r--r-- | dev-ruby/jsobfu/jsobfu-0.4.2-r1.ebuild | 4 | ||||
-rw-r--r-- | dev-ruby/little-plugger/Manifest | 2 | ||||
-rw-r--r-- | dev-ruby/little-plugger/little-plugger-1.1.4-r1.ebuild | 5 | ||||
-rw-r--r-- | dev-ruby/rkelly-remix/Manifest | 2 | ||||
-rw-r--r-- | dev-ruby/rkelly-remix/rkelly-remix-0.0.7-r1.ebuild | 6 | ||||
-rw-r--r-- | dev-ruby/strptime/Manifest | 4 | ||||
-rw-r--r-- | dev-ruby/strptime/metadata.xml | 3 | ||||
-rw-r--r-- | dev-ruby/strptime/strptime-0.2.5-r2.ebuild | 9 | ||||
-rw-r--r-- | dev-ruby/websocket-driver/Manifest | 2 | ||||
-rw-r--r-- | dev-ruby/websocket-driver/files/websocket-driver-0.7.5-ruby32.patch | 125 | ||||
-rw-r--r-- | dev-ruby/websocket-driver/websocket-driver-0.7.5-r1.ebuild | 35 |
13 files changed, 184 insertions, 15 deletions
diff --git a/dev-ruby/Manifest.gz b/dev-ruby/Manifest.gz Binary files differindex ea1cf26a1959..df71f84068ef 100644 --- a/dev-ruby/Manifest.gz +++ b/dev-ruby/Manifest.gz diff --git a/dev-ruby/jsobfu/Manifest b/dev-ruby/jsobfu/Manifest index 39a4e9fc95c3..35fc2b858ed1 100644 --- a/dev-ruby/jsobfu/Manifest +++ b/dev-ruby/jsobfu/Manifest @@ -1,3 +1,3 @@ DIST jsobfu-0.4.2.gem 27648 BLAKE2B 280629f104a6aa1cfd4603fff2edf5d2dde5885bf074e39e790e06f03d17a2cf107a6bed61fb2279a3c1e1879e4a74d7faa266561ca10590fb67543ec52e02ec SHA512 84374c8c65691eac6fbdaef78a6faf8a1659474789df2ad0b938cd9101e5b51c69ac5fb157eff3e714decb1402372fe98015a2ef3d77775f0af22fba34f93227 -EBUILD jsobfu-0.4.2-r1.ebuild 851 BLAKE2B 5b0bf4ea5f66bdaee78354bcff1b6ae34c85fbae50ada21a93ad3d9921d44c4815fe2af5636c19632b8e0d49d5e1d08e25d4b114fdc68734ed43a02c93683f06 SHA512 29e9291b62ecb6c88f934a9a4dfedc21bd4348ebe5a2c93d3ed58d7fec72bc29701d17e1666a49129eca89e20ab43111f64275b0556071ff7b69d3e2e371cef4 +EBUILD jsobfu-0.4.2-r1.ebuild 851 BLAKE2B 23039f6c2a868541f9fcc15be6a969c52967665bad4e66366e35ab78cb2041a15088b82e9f38dcf38d279cd9d04a152a6aad7168f4444259bcb0289db5ebf7c2 SHA512 1073ab1a9b4022b01b58ccab8733b6d0a86f857cbd53b15482deb66ce51c96e93179a176298ed311c97a7a92bf46edbbde697df6389fd350fc5937829cbeb43b MISC metadata.xml 340 BLAKE2B 62a38bc48f9aeb2e6466a222a8521d383d6ec4effc8188056e0429e3c3707af86149d00fb43d41d413114567f4e52b415d51e73845f5c63cd1b503bb527a9c48 SHA512 61b8fdef9e9b5619a16ffbbfd56e8582e08c306aaa605102c046e29471f201963c59626f7dff426f72e458d29ed5f74356a94cfc6e1fe4742efe1cd552555848 diff --git a/dev-ruby/jsobfu/jsobfu-0.4.2-r1.ebuild b/dev-ruby/jsobfu/jsobfu-0.4.2-r1.ebuild index 3b7f60cfb522..f741a95f2d34 100644 --- a/dev-ruby/jsobfu/jsobfu-0.4.2-r1.ebuild +++ b/dev-ruby/jsobfu/jsobfu-0.4.2-r1.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby26 ruby27 ruby30 ruby31" +USE_RUBY="ruby27 ruby30 ruby31 ruby32" RUBY_FAKEGEM_BINWRAP="" RUBY_FAKEGEM_RECIPE_TEST="rspec3" diff --git a/dev-ruby/little-plugger/Manifest b/dev-ruby/little-plugger/Manifest index be9a723cec19..a37a88995928 100644 --- a/dev-ruby/little-plugger/Manifest +++ b/dev-ruby/little-plugger/Manifest @@ -1,3 +1,3 @@ DIST little-plugger-1.1.4.gem 10240 BLAKE2B 389abe95f8eaf815e4cbffe184416a2846c917cc3cd90dff6f6f7d6fc9e162c0304652f3173c84fa61b5d25135cb295131733aed4911d19719b2b032ec3c4ad7 SHA512 79b26509c56084a93997e011870de085f9e5222d631bf410c9bb2a361949e80f3d8be279b26b6c405dd47aedbea72089de212990ae0906f7493a3e8edfa8cb87 -EBUILD little-plugger-1.1.4-r1.ebuild 430 BLAKE2B d72fddafb857df8ac054361a2877812a0ad6b3ad41cc5d12de6d9ad65058d83c5cecd55569a9c4422b9fe371f2d6897e379b5d3a5d57e438ba07e265c1965b4d SHA512 dd00514c3e3da19390853eb4fe138eb440d166ea5764839ee7a3fe86bff0c0ef4bb26ac105cdfc29d4bed98b3bf196e24bed5bcf4e187c373f31a23193429df5 +EBUILD little-plugger-1.1.4-r1.ebuild 418 BLAKE2B e8087d0af20395e48341aa1c2670b95595242b4db9f93af5f1b4560585dabc48e121f13a912fc4bd1b8a74fc552d5b40a31efcf419055b10d91fe0941844e2af SHA512 7fb1930690f2d78e0a5f8c624c7ab143f812dbb0eb83e2998d0c15f088372f5b3b511669d44706289660d71d85a07fef567130fcaa796f1441547be5baa5d27f MISC metadata.xml 345 BLAKE2B 9eb6e17b4191b17df6fe29fbb0001633ab327dd7a6be7205388ed2ff7865b9821a58ffe2537cc6fdd56b0c84b680df1a960b0e927a6ac0d740af564c4346e183 SHA512 c3af1b9f693573e87305ab5f901d4371671eeab86691bbe5272187a78f1efee29bb71c0f5da7be3576873db1f12edb2a0e8ecb75e752bb0c4eddad632d081f4c diff --git a/dev-ruby/little-plugger/little-plugger-1.1.4-r1.ebuild b/dev-ruby/little-plugger/little-plugger-1.1.4-r1.ebuild index 172e92a78f34..82759e1edf6d 100644 --- a/dev-ruby/little-plugger/little-plugger-1.1.4-r1.ebuild +++ b/dev-ruby/little-plugger/little-plugger-1.1.4-r1.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby26 ruby27 ruby30 ruby31" +USE_RUBY="ruby27 ruby30 ruby31 ruby32" RUBY_FAKEGEM_RECIPE_TEST="rspec3" @@ -14,7 +14,6 @@ inherit ruby-fakegem DESCRIPTION="Module that provides Gem based plugin management" HOMEPAGE="https://github.com/TwP/little-plugger" -IUSE="test" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~x86" diff --git a/dev-ruby/rkelly-remix/Manifest b/dev-ruby/rkelly-remix/Manifest index 8af4871bbb0c..0ee5e90d574b 100644 --- a/dev-ruby/rkelly-remix/Manifest +++ b/dev-ruby/rkelly-remix/Manifest @@ -1,3 +1,3 @@ DIST rkelly-remix-0.0.7.gem 69632 BLAKE2B 5da7c29c13e34d319a0ef69251d1a80ea78a20ed3142e6add368c90ac05760b31257bcba8728cd8d115cffbb9d0622292191efc0b5a4eb1b56b5781fb80a9fc1 SHA512 5450b4b52b912b6626fcac3e3428dd2b4520dcb62b402e36579c9b34e8a027853e53a0860f33b4efc995517d70a3fab4f75f28ce7ab0b2b0c9e09e72ddd7cd54 -EBUILD rkelly-remix-0.0.7-r1.ebuild 445 BLAKE2B 79a3fea51a8e024b766243854b4dc2ad76a2413d960517365a8811c8ce4e6f66a4480d0dbf500d56e9f088e2b293dac1471ad3285c80cb8a2de2cb1163cbed1f SHA512 bc959bab6a465bca2b5b452c5c92fa3ef1979bfa596b5b3b88edab026cf2e5f2ba9867e6393b77ac26440c892d4586394f64f406dab94b807e04a8f1debe1ef8 +EBUILD rkelly-remix-0.0.7-r1.ebuild 445 BLAKE2B ee5d6e0eebeebcd55c0d5d4d77210057331617a4355169e831fad955ee7f0dae09c25b5f883b75ae0819c5159cd33c2f26ccbe1b85b1596e7158e3d320dfc92c SHA512 0e3fc51303e15fbcb9424980df86ed85692c382a1cd450c77b645cb68cfe74583cc5ff815486a2ae59ba59630789007733114bc6a9b19710b64eddd43599b596 MISC metadata.xml 458 BLAKE2B 1be95c4006de1de518ef0071d52e8ebc8efafe5f5de34bbdb81be841b4150bf43d6c60abbf1df9bb9786587f61ef05a5fe33b0392c851c9dea7bd4b2071f9cad SHA512 73738a7549c8d25d0e5bc22c7592ce5be91451220108cd83d1c9016469a365026074901c5f84a4bcf5d15bf4a78242b93ebeac969c4802748a0fa98be2702098 diff --git a/dev-ruby/rkelly-remix/rkelly-remix-0.0.7-r1.ebuild b/dev-ruby/rkelly-remix/rkelly-remix-0.0.7-r1.ebuild index a40f6b8941f1..161002ca3a0b 100644 --- a/dev-ruby/rkelly-remix/rkelly-remix-0.0.7-r1.ebuild +++ b/dev-ruby/rkelly-remix/rkelly-remix-0.0.7-r1.ebuild @@ -1,16 +1,16 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby26 ruby27 ruby30 ruby31" +USE_RUBY="ruby27 ruby30 ruby31 ruby32" inherit ruby-fakegem DESCRIPTION="RKelly Remix is a fork of the RKelly JavaScript parser" HOMEPAGE="https://github.com/nene/rkelly-remix" -LICENSE="MIT" +LICENSE="MIT" KEYWORDS="~amd64 ~arm ~x86" SLOT="0" IUSE="doc" diff --git a/dev-ruby/strptime/Manifest b/dev-ruby/strptime/Manifest index 54ce3a671fb4..88a31c289d95 100644 --- a/dev-ruby/strptime/Manifest +++ b/dev-ruby/strptime/Manifest @@ -1,3 +1,3 @@ DIST strptime-0.2.5.tar.gz 17431 BLAKE2B c9234ed0207e6bf214d4c011c883bc985cf527672f4bf9590617a742b4ea9a5cc0743388af23cc5f106350126eef16ffa89089d8715b0f8d371315412c7e5660 SHA512 6a85a3b45c43aa62a5c62e3902655351a839c4f2c397347356307c73ab160d053ea9dfc989f6d8687663bea5d8a60575f26b99b198b872bc1a3b2e0caa00a51f -EBUILD strptime-0.2.5-r2.ebuild 753 BLAKE2B 8c5513400bd9f6b3d50c695b29343fd931756147e10face69580da2aa3ce0ae1cbc9b45e77bdcd9a862448b905d23bf75eacd2926bf3bba3337c920c44a848dc SHA512 8226f8585f0fd3c0ad4a2ee9cf0e54cc9042711caa96e5b983772a6d19306e0283b4bade21615f1fc0da961e6ff61fc0b4e48006760d1578d8ab19c86b62cdb5 -MISC metadata.xml 248 BLAKE2B 0c876bde3c72e61d28284a95a837103e6d594c9f6fccbd6d7d1039f9c5a604347c20c334c9a57d80b152888fed536196f2807b477e8d0336c80affb0e28c9dc9 SHA512 b2b64178cf6cbbaa5fb4671ffe1ab88b83c920de363ae099ef74fa3e5eb8c8f0285c749cabc0cebf344951503d1b7309ae294afe9e7cf5172700182d8843fa14 +EBUILD strptime-0.2.5-r2.ebuild 832 BLAKE2B e99533b743a32a780ea67f9a7a5234748106333bbdbf5fb4b105e836b36dbf94379a283cfd2d77dbd3024fff367f433ce688d847fdd5f6eb923b679b94104759 SHA512 06aa4a8124d2bc29fd17f498984944b209d9747daa2b41e7761275c78416c2503bafe414bc9dadca78c26faa68247ca145f73ba33f3f3a2dad1583b8840bc6ab +MISC metadata.xml 324 BLAKE2B 6b0b16caf041aa0fc1b11f5b754bb50df320af4ac6439f71b2cfac3661ac3363a05d0871f868d192bc5be7eb60d8409f4f643f9a5e8d36d4b6a4ad66e7530ffc SHA512 4052b9c329a7e441b0e4cdac658ff155df1a34066c7d57398c4dd1a60930866653308d96077953d035e122c163ffe688a1fa9da72a263f5be6bbad0397def5a1 diff --git a/dev-ruby/strptime/metadata.xml b/dev-ruby/strptime/metadata.xml index 658c72b1920d..2fb5c68872d9 100644 --- a/dev-ruby/strptime/metadata.xml +++ b/dev-ruby/strptime/metadata.xml @@ -5,4 +5,7 @@ <email>ruby@gentoo.org</email> <name>Gentoo Ruby Project</name> </maintainer> +<upstream> + <remote-id type="github">nurse/strptime</remote-id> +</upstream> </pkgmetadata> diff --git a/dev-ruby/strptime/strptime-0.2.5-r2.ebuild b/dev-ruby/strptime/strptime-0.2.5-r2.ebuild index bec5f0bd8e88..242c6d1840de 100644 --- a/dev-ruby/strptime/strptime-0.2.5-r2.ebuild +++ b/dev-ruby/strptime/strptime-0.2.5-r2.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby26 ruby27 ruby30 ruby31" +USE_RUBY="ruby26 ruby27 ruby30 ruby31 ruby32" RUBY_FAKEGEM_EXTRADOC="README.md" @@ -29,3 +29,8 @@ IUSE="" all_ruby_prepare() { sed -i -e 's/git ls-files -z/find * -print0/' ${RUBY_FAKEGEM_GEMSPEC} || die } + +each_ruby_test() { + local -x TZ=UTC # bug #775380 + each_fakegem_test +} diff --git a/dev-ruby/websocket-driver/Manifest b/dev-ruby/websocket-driver/Manifest index be68aac65659..c9953ffda651 100644 --- a/dev-ruby/websocket-driver/Manifest +++ b/dev-ruby/websocket-driver/Manifest @@ -1,5 +1,7 @@ +AUX websocket-driver-0.7.5-ruby32.patch 4305 BLAKE2B ba2a2142b496178381b4e568f2062422e802115f3fecee907d148829950e7e085aeb51083eb9a1e9376319582275a877193345b1238d26a070fed856576993ea SHA512 81013e4f3553272eb6ecd15e6c5ac55e7237076342c1e392ee37f55dc81bb2064612aa0a576498571e766d338b580bdc6c615efbaa71a197192106f515f0f78d DIST websocket-driver-0.6.5.tar.gz 24737 BLAKE2B 137c16a69309a1aad07fff663ff95a888a151f0fa20e78e754ae62ddfc8c2bdbfda926d7f4c53549e92646d018df7f374721e95246eb2985012e6b219970c4c6 SHA512 6915fdefac26a24e1f7d3d9a7e6bc6afc84b491150290a75a14243c233f5029d7d6e90a803b34bd6a8e8717322c6ae6fd4d3f3dad7a50c8eb18f17c3f2e9bbd0 DIST websocket-driver-0.7.5.tar.gz 26179 BLAKE2B 8e7739d6cf48de5a2ef443f476652af74b269c075aa1e6bc13b2ac3ac17ede1699594a9380a137b307eaaed19ac2868b6a1362a66f835262f18e82f81c8e445f SHA512 538c78cd39507fb6cddeaa6196f0e2bbb89d7293f062d9b0231b6c6988a46b718c91b69a50b4cbf5b227067e6ed4ee89c61759bf340fc3e483c4af97052d42f9 EBUILD websocket-driver-0.6.5-r1.ebuild 831 BLAKE2B 70f301dbf5789c5fb4a0ccdd5f2186a96a267a4a0b8cbfdf14d94adb51ed20e276f3a21e0f35e412111e7c766a4040ecdbbe8f97fb81abde36f033b762b1cf02 SHA512 642f7ef178dfdc5c0aa843ab669e5f083b7f5489461ea47c3d519b7f9f48bbd6a3e848a36869bfe8ebb439d58db0cc0997b3bf0a6c29880eb3dd4608d93d7d75 +EBUILD websocket-driver-0.7.5-r1.ebuild 876 BLAKE2B b5b3bd2f5e92ea08dfc2a1b81b7c9813179e5eea156ecf8698775e2df67bfff7bca36d40b6328c0f1a61b595bcb4c1001c804e6feddf7720eed019f15e990551 SHA512 f9649e38e12c45e312c864cce585d579fe63f602f0cdc32385c7a28bddeadb0c5dfa6f7899222dfe1695391e92d7c0e2e241cee786185083c866361ff5af5f9e EBUILD websocket-driver-0.7.5.ebuild 1069 BLAKE2B 043dcdc303aa452fca7565067c0a19537892a0f0fdd140bbb32385bd2a6ad9cae02d58a51b7e32022a534ae7aed93dd3f4f5a5ca725e2ebb236f76f9666af746 SHA512 2f5f5039eda6a546c4e4f6772c7fc723518c92c025167a1bf2c9688921b599820275c3bc89c73d9f6f2c81fcd174bef7a6383099b380c0fc10214a3ca3b4851e MISC metadata.xml 353 BLAKE2B 6d6cd2bb65746c1d9bcd4ef50619b7005445623a728503bc4a5e99d38cd82a205c3ecf38e8ef4db9c1767d0b3376cf25f0d76c40b00c511c4926beb9648c5d91 SHA512 614b428fb42838fe85b90f37bb24bcffee597e90748b2da88b94098e8f96238a244fb00ddd7913ba414cb50817c0fa36438bfe7d05344a4d771e9d622594982a diff --git a/dev-ruby/websocket-driver/files/websocket-driver-0.7.5-ruby32.patch b/dev-ruby/websocket-driver/files/websocket-driver-0.7.5-ruby32.patch new file mode 100644 index 000000000000..e4f58e495cfd --- /dev/null +++ b/dev-ruby/websocket-driver/files/websocket-driver-0.7.5-ruby32.patch @@ -0,0 +1,125 @@ +https://github.com/faye/websocket-driver-ruby/commit/3a2931751c6893e312ee24d9c6392bd096a798fd + +From 3a2931751c6893e312ee24d9c6392bd096a798fd Mon Sep 17 00:00:00 2001 +From: James Coglan <jcoglan@gmail.com> +Date: Sat, 10 Sep 2022 15:37:55 +0100 +Subject: [PATCH] Fix handling of default ports on Ruby 3.1 + +--- a/lib/websocket/driver.rb ++++ b/lib/websocket/driver.rb +@@ -42,6 +42,7 @@ def Mask.mask(payload, mask) + end + + MAX_LENGTH = 0x3ffffff ++ PORTS = { 'ws' => 80, 'wss' => 443 } + STATES = [:connecting, :open, :closing, :closed] + + ConnectEvent = Struct.new(nil) +@@ -209,6 +210,14 @@ def self.encode(data, encoding = nil) + data.force_encoding(encoding) + end + ++ def self.host_header(uri) ++ host = uri.host ++ if uri.port and uri.port != PORTS[uri.scheme] ++ host += ":#{uri.port}" ++ end ++ host ++ end ++ + def self.validate_options(options, valid_keys) + options.keys.each do |key| + unless valid_keys.include?(key) +--- a/lib/websocket/driver/client.rb ++++ b/lib/websocket/driver/client.rb +@@ -23,11 +23,10 @@ def initialize(socket, options = {}) + raise URIError, "#{ socket.url } is not a valid WebSocket URL" + end + +- host = uri.host + (uri.port ? ":#{ uri.port }" : '') + path = (uri.path == '') ? '/' : uri.path + @pathname = path + (uri.query ? '?' + uri.query : '') + +- @headers['Host'] = host ++ @headers['Host'] = Driver.host_header(uri) + @headers['Upgrade'] = 'websocket' + @headers['Connection'] = 'Upgrade' + @headers['Sec-WebSocket-Key'] = @key +--- a/lib/websocket/driver/proxy.rb ++++ b/lib/websocket/driver/proxy.rb +@@ -4,8 +4,6 @@ class Driver + class Proxy + include EventEmitter + +- PORTS = { 'ws' => 80, 'wss' => 443 } +- + attr_reader :status, :headers + + def initialize(client, origin, options) +@@ -20,7 +18,7 @@ def initialize(client, origin, options) + @state = 0 + + @headers = Headers.new +- @headers['Host'] = @origin.host + (@origin.port ? ":#{ @origin.port }" : '') ++ @headers['Host'] = Driver.host_header(@origin) + @headers['Connection'] = 'keep-alive' + @headers['Proxy-Connection'] = 'keep-alive' + +--- a/spec/websocket/driver/client_spec.rb ++++ b/spec/websocket/driver/client_spec.rb +@@ -121,6 +121,54 @@ + end + end + ++ describe "with an explicit port" do ++ let(:url) { "ws://www.example.com:3000/socket" } ++ ++ it "includes the port in the Host header" do ++ expect(socket).to receive(:write).with( ++ "GET /socket HTTP/1.1\r\n" + ++ "Host: www.example.com:3000\r\n" + ++ "Upgrade: websocket\r\n" + ++ "Connection: Upgrade\r\n" + ++ "Sec-WebSocket-Key: 2vBVWg4Qyk3ZoM/5d3QD9Q==\r\n" + ++ "Sec-WebSocket-Version: 13\r\n" + ++ "\r\n") ++ driver.start ++ end ++ end ++ ++ describe "with a wss: URL" do ++ let(:url) { "wss://www.example.com/socket" } ++ ++ it "does not include the port in the Host header" do ++ expect(socket).to receive(:write).with( ++ "GET /socket HTTP/1.1\r\n" + ++ "Host: www.example.com\r\n" + ++ "Upgrade: websocket\r\n" + ++ "Connection: Upgrade\r\n" + ++ "Sec-WebSocket-Key: 2vBVWg4Qyk3ZoM/5d3QD9Q==\r\n" + ++ "Sec-WebSocket-Version: 13\r\n" + ++ "\r\n") ++ driver.start ++ end ++ end ++ ++ describe "with a wss: URL and explicit port" do ++ let(:url) { "wss://www.example.com:3000/socket" } ++ ++ it "includes the port in the Host header" do ++ expect(socket).to receive(:write).with( ++ "GET /socket HTTP/1.1\r\n" + ++ "Host: www.example.com:3000\r\n" + ++ "Upgrade: websocket\r\n" + ++ "Connection: Upgrade\r\n" + ++ "Sec-WebSocket-Key: 2vBVWg4Qyk3ZoM/5d3QD9Q==\r\n" + ++ "Sec-WebSocket-Version: 13\r\n" + ++ "\r\n") ++ driver.start ++ end ++ end ++ + describe "with custom headers" do + before do + driver.set_header "User-Agent", "Chrome" + diff --git a/dev-ruby/websocket-driver/websocket-driver-0.7.5-r1.ebuild b/dev-ruby/websocket-driver/websocket-driver-0.7.5-r1.ebuild new file mode 100644 index 000000000000..a9cd58bc570f --- /dev/null +++ b/dev-ruby/websocket-driver/websocket-driver-0.7.5-r1.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby27 ruby30 ruby31 ruby32" + +RUBY_FAKEGEM_RECIPE_TEST="rspec3" +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md" + +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +RUBY_FAKEGEM_EXTENSIONS=(ext/websocket-driver/extconf.rb) + +inherit ruby-fakegem + +DESCRIPTION="A complete implementation of the WebSocket protocols" +HOMEPAGE="https://github.com/faye/websocket-driver-ruby" +SRC_URI="https://github.com/faye/websocket-driver-ruby/archive/${PV}.tar.gz -> ${P}.tar.gz" +RUBY_S="${PN}-ruby-${PV}" + +LICENSE="Apache-2.0" +SLOT="0.7" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86" +IUSE="" + +ruby_add_rdepend ">=dev-ruby/websocket-extensions-0.1.0" + +PATCHES=( + "${FILESDIR}"/${P}-ruby32.patch +) + +all_ruby_prepare() { + sed -i -e '/bundler/ s:^:#:' spec/spec_helper.rb || die +} |