summaryrefslogtreecommitdiff
path: root/dev-ruby
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2024-05-30 17:42:51 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2024-05-30 17:42:51 +0000
commite9cbf29b799655f47d44dc9918f96bcfcb3e2e43 (patch)
treeeba533f66917dd7cb108af34fa43e61a05bf2c09 /dev-ruby
parentacd774cdb0e5124cb9adc53400b0e5fe969081d8 (diff)
downloadbaldeagleos-repo-e9cbf29b799655f47d44dc9918f96bcfcb3e2e43.tar.gz
baldeagleos-repo-e9cbf29b799655f47d44dc9918f96bcfcb3e2e43.tar.xz
baldeagleos-repo-e9cbf29b799655f47d44dc9918f96bcfcb3e2e43.zip
Adding metadata
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/json/json-2.7.2.ebuild2
-rw-r--r--dev-ruby/maxitest/Manifest1
-rw-r--r--dev-ruby/maxitest/maxitest-5.5.0.ebuild52
-rw-r--r--dev-ruby/rspec-block_is_expected/rspec-block_is_expected-1.0.5.ebuild8
-rw-r--r--dev-ruby/websocket/files/websocket-1.2.9-default-port.patch134
5 files changed, 58 insertions, 139 deletions
diff --git a/dev-ruby/json/json-2.7.2.ebuild b/dev-ruby/json/json-2.7.2.ebuild
index f920bc10c14a..57e3c6681fa7 100644
--- a/dev-ruby/json/json-2.7.2.ebuild
+++ b/dev-ruby/json/json-2.7.2.ebuild
@@ -19,7 +19,7 @@ HOMEPAGE="https://github.com/flori/json"
SRC_URI="https://github.com/flori/json/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="|| ( BSD-2 Ruby )"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
SLOT="$(ver_cut 1)"
IUSE="doc test"
diff --git a/dev-ruby/maxitest/Manifest b/dev-ruby/maxitest/Manifest
index c7a70cb45168..2c68fb25ed7b 100644
--- a/dev-ruby/maxitest/Manifest
+++ b/dev-ruby/maxitest/Manifest
@@ -2,3 +2,4 @@ DIST maxitest-4.4.1.tar.gz 62757 BLAKE2B 0023472200643dcc17aa7fc3720ebdaccb98862
DIST maxitest-5.2.0.tar.gz 63610 BLAKE2B 98efc803f43d02cfdec0431279446e555650928442593be436e0ebfcb0d21e505e69b9e26fd8560b12c4feb2ce307d9d46954ff8a82a80b328c2d0442c451f5a SHA512 10251961613a6a014c868c3fd2a8c4c51253b2dee058561450e88ef628de25b6042b17d04d7338afd400ca30e8c3c12923f0976ec28578b726630699d2a0d5b5
DIST maxitest-5.3.1.tar.gz 64755 BLAKE2B 8de322902638a284dadcf269fc16d82ee70a4b5fe4211c1859ce832a8b424c98347b005f103e9a2342df8384591ff98b23171bf2f61285177aa3bf1a0520bac9 SHA512 a287f880a1eb8695e716654c3921ffcf27430657285ec29002834145f87db620ae481f9dd5c023edec0473ce947c366eaeb78ddbbf556d26e08605f0b9341f69
DIST maxitest-5.4.0.tar.gz 64727 BLAKE2B 99751c419386ab1b2a10233371c151f8d7a55315dca223e65a72ccab5b6aabb655c2e853190dc94c09dacb77542a0cdadc4121f45207d1d756f5d8b0d727f457 SHA512 7bdff3081b294fa43fc9a03352eb8c3be4b1a0010de5ea6a3027a9207ffcee09aeb69cec5faf430cba8ed094e76e75e6b46c6ab60f749cde1f4fcfe763ab1242
+DIST maxitest-5.5.0.tar.gz 65102 BLAKE2B 46c7d0c9bcc794066316cc244f4628771a14224903416c4547b9c6d3f58aabae3597db93034a35f40140ee0bc443419d7e856d7a99f91565e8d6c3bbaa71a86c SHA512 331fd82a069494fbf2d1e2874de1c4bc5fe9b1ee430505e43aab4d1049f2e9dcf9c50bfcee8f8b897b881c2e859dbd7fe66d9d98c13b0cbc637cd8f87715abf7
diff --git a/dev-ruby/maxitest/maxitest-5.5.0.ebuild b/dev-ruby/maxitest/maxitest-5.5.0.ebuild
new file mode 100644
index 000000000000..2d4e9c6b4e44
--- /dev/null
+++ b/dev-ruby/maxitest/maxitest-5.5.0.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+USE_RUBY="ruby31 ruby32 ruby33"
+
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
+
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Minitest + all the features you always wanted"
+HOMEPAGE="https://github.com/grosser/maxitest"
+SRC_URI="https://github.com/grosser/maxitest/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="1"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
+IUSE="test"
+
+ruby_add_rdepend ">=dev-ruby/minitest-5.14.0:* <dev-ruby/minitest-5.24.0:*"
+
+ruby_add_bdepend "test? ( dev-ruby/bundler )"
+
+all_ruby_prepare() {
+ rm -f Gemfile.lock || die
+ # Remove developer-only gems from the gemspec and avoid git issues
+ sed -e 's:_relative ": "./:' \
+ -i ${RUBY_FAKEGEM_GEMSPEC} || die
+ sed -e '/\(debug\|bump\)/ s:^:#:' \
+ -e 'agem "mutex_m"' \
+ -i Gemfile || die
+
+ sed -e '/shows backtrace for/askip' \
+ -e '/describe.*line/ s/describe/xdescribe/' \
+ -e '/describe.*color/ s/describe/xdescribe/' \
+ -i spec/maxitest_spec.rb || die
+}
+
+each_ruby_prepare() {
+ # Use the correct target
+ sed -e '/\(run_cmd\|sh\)/ s:ruby:'${RUBY}':' \
+ -e '/\(run_cmd\|sh\)/ s:mtest:'${RUBY}' -S bin/mtest:' \
+ -i spec/maxitest_spec.rb || die
+}
+
+each_ruby_test() {
+ PATH="${S}/bin:${PATH}" RUBYLIB="${S}/lib" RSPEC_VERSION=3 ruby-ng_rspec spec
+}
diff --git a/dev-ruby/rspec-block_is_expected/rspec-block_is_expected-1.0.5.ebuild b/dev-ruby/rspec-block_is_expected/rspec-block_is_expected-1.0.5.ebuild
index 5958292deed3..1f9cf2905a20 100644
--- a/dev-ruby/rspec-block_is_expected/rspec-block_is_expected-1.0.5.ebuild
+++ b/dev-ruby/rspec-block_is_expected/rspec-block_is_expected-1.0.5.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
-USE_RUBY="ruby30 ruby31 ruby32"
+USE_RUBY="ruby31 ruby32 ruby33"
RUBY_FAKEGEM_BINWRAP=""
RUBY_FAKEGEM_EXTRADOC="README.md"
@@ -14,10 +14,10 @@ inherit ruby-fakegem
DESCRIPTION="Simplify testing of blocks in RSpec"
HOMEPAGE="https://github.com/pboling/rspec-block_is_expected"
SRC_URI="https://github.com/pboling/rspec-block_is_expected/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
-IUSE=""
-SLOT="1"
LICENSE="MIT"
+SLOT="1"
KEYWORDS="~amd64 ~ppc ~ppc64 ~riscv ~x86"
+IUSE="test"
ruby_add_depend "test? ( >=dev-ruby/rspec-pending_for-0.1:0 )"
diff --git a/dev-ruby/websocket/files/websocket-1.2.9-default-port.patch b/dev-ruby/websocket/files/websocket-1.2.9-default-port.patch
deleted file mode 100644
index 5830036da62e..000000000000
--- a/dev-ruby/websocket/files/websocket-1.2.9-default-port.patch
+++ /dev/null
@@ -1,134 +0,0 @@
-https://github.com/imanel/websocket-ruby/commit/736a7515aff808a5c268b87066e928b59aed769e
-
-From 736a7515aff808a5c268b87066e928b59aed769e Mon Sep 17 00:00:00 2001
-From: Bernard Potocki <bernard.potocki@imanel.org>
-Date: Thu, 17 Feb 2022 20:02:21 +0100
-Subject: [PATCH] Ensure correct port is always specified (#48)
-
---- a/lib/websocket/handshake/base.rb
-+++ b/lib/websocket/handshake/base.rb
-@@ -7,7 +7,7 @@ class Base
- include ExceptionHandler
- include NiceInspect
-
-- attr_reader :host, :port, :path, :query,
-+ attr_reader :host, :path, :query,
- :state, :version, :secure,
- :headers, :protocols
-
-@@ -66,6 +66,20 @@ def leftovers
- (@leftovers.to_s.split("\n", reserved_leftover_lines + 1)[reserved_leftover_lines] || '').strip
- end
-
-+ # Return default port for protocol (80 for ws, 443 for wss)
-+ def default_port
-+ secure ? 443 : 80
-+ end
-+
-+ # Check if provided port is a default one
-+ def default_port?
-+ port == default_port
-+ end
-+
-+ def port
-+ @port || default_port
-+ end
-+
- # URI of request.
- # @return [String] Full URI with protocol
- # @example
-@@ -73,7 +87,7 @@ def leftovers
- def uri
- uri = String.new(secure ? 'wss://' : 'ws://')
- uri << host
-- uri << ":#{port}" if port
-+ uri << ":#{port}" unless default_port?
- uri << path
- uri << "?#{query}" if query
- uri
---- a/lib/websocket/handshake/client.rb
-+++ b/lib/websocket/handshake/client.rb
-@@ -61,7 +61,7 @@ def initialize(args = {})
- uri = URI.parse(@url || @uri)
- @secure ||= (uri.scheme == 'wss')
- @host ||= uri.host
-- @port ||= uri.port
-+ @port ||= uri.port || default_port
- @path ||= uri.path
- @query ||= uri.query
- end
---- a/lib/websocket/handshake/handler/client04.rb
-+++ b/lib/websocket/handshake/handler/client04.rb
-@@ -21,7 +21,7 @@ def handshake_keys
- %w[Connection Upgrade]
- ]
- host = @handshake.host
-- host += ":#{@handshake.port}" if @handshake.port
-+ host += ":#{@handshake.port}" unless @handshake.default_port?
- keys << ['Host', host]
- keys += super
- keys << ['Sec-WebSocket-Origin', @handshake.origin] if @handshake.origin
---- a/lib/websocket/handshake/handler/client75.rb
-+++ b/lib/websocket/handshake/handler/client75.rb
-@@ -18,7 +18,7 @@ def handshake_keys
- %w[Connection Upgrade]
- ]
- host = @handshake.host
-- host += ":#{@handshake.port}" if @handshake.port
-+ host += ":#{@handshake.port}" unless @handshake.default_port?
- keys << ['Host', host]
- keys << ['Origin', @handshake.origin] if @handshake.origin
- keys << ['WebSocket-Protocol', @handshake.protocols.first] if @handshake.protocols.any?
---- a/lib/websocket/handshake/server.rb
-+++ b/lib/websocket/handshake/server.rb
-@@ -129,13 +129,13 @@ def should_respond?
- # Host of server according to client header
- # @return [String] host
- def host
-- @headers['host'].to_s.split(':')[0].to_s
-+ @host || @headers['host'].to_s.split(':')[0].to_s
- end
-
- # Port of server according to client header
-- # @return [String] port
-+ # @return [Integer] port
- def port
-- @headers['host'].to_s.split(':')[1]
-+ (@port || @headers['host'].to_s.split(':')[1] || default_port).to_i
- end
-
- private
---- a/spec/support/all_client_drafts.rb
-+++ b/spec/support/all_client_drafts.rb
-@@ -38,6 +38,10 @@ def validate_request
- expect(handshake.query).to eql('aaa=bbb')
- end
-
-+ it 'returns default port' do
-+ expect(handshake.port).to be(80)
-+ end
-+
- it 'returns valid port' do
- @request_params = { port: 123 }
- expect(handshake.port).to be(123)
---- a/spec/support/all_server_drafts.rb
-+++ b/spec/support/all_server_drafts.rb
-@@ -47,11 +47,17 @@ def validate_request
- expect(handshake.query).to eql('aaa=bbb')
- end
-
-+ it 'returns default port' do
-+ handshake << client_request
-+
-+ expect(handshake.port).to be(80)
-+ end
-+
- it 'returns valid port' do
- @request_params = { port: 123 }
- handshake << client_request
-
-- expect(handshake.port).to eql('123')
-+ expect(handshake.port).to be(123)
- end
-
- it 'returns valid response' do