summaryrefslogtreecommitdiff
path: root/dev-ruby
diff options
context:
space:
mode:
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/afm/afm-0.2.2-r2.ebuild (renamed from dev-ruby/afm/afm-0.2.2-r1.ebuild)7
-rw-r--r--dev-ruby/ansi/ansi-1.5.0-r1.ebuild9
-rw-r--r--dev-ruby/barby/barby-0.6.8-r1.ebuild (renamed from dev-ruby/barby/barby-0.6.8.ebuild)6
-rw-r--r--dev-ruby/chunky_png/chunky_png-1.4.0.ebuild5
-rw-r--r--dev-ruby/contracts/contracts-0.17-r1.ebuild31
-rw-r--r--dev-ruby/contracts/files/contracts-0.17-ruby32.patch120
-rw-r--r--dev-ruby/narray/narray-0.6.1.2-r2.ebuild4
-rw-r--r--dev-ruby/prawn/prawn-2.4.0-r1.ebuild (renamed from dev-ruby/prawn/prawn-2.4.0.ebuild)7
-rw-r--r--dev-ruby/rb-gsl/rb-gsl-2.1.0.2-r1.ebuild4
-rw-r--r--dev-ruby/rcairo/rcairo-1.17.8.ebuild2
-rw-r--r--dev-ruby/red-colors/red-colors-0.3.0-r1.ebuild4
-rw-r--r--dev-ruby/ruby-cairo-gobject/ruby-cairo-gobject-3.5.1.ebuild2
-rw-r--r--dev-ruby/ruby-gio2/ruby-gio2-3.5.1.ebuild2
-rw-r--r--dev-ruby/ruby-gobject-introspection/ruby-gobject-introspection-3.5.1.ebuild2
-rw-r--r--dev-ruby/ruby-poppler/ruby-poppler-3.5.1.ebuild2
-rw-r--r--dev-ruby/ruby-rc4/ruby-rc4-0.1.5-r3.ebuild5
-rw-r--r--dev-ruby/safe_yaml/safe_yaml-1.0.5-r1.ebuild6
-rw-r--r--dev-ruby/spy/spy-1.0.3.ebuild4
-rw-r--r--dev-ruby/ttfunk/ttfunk-1.7.0-r1.ebuild (renamed from dev-ruby/ttfunk/ttfunk-1.7.0.ebuild)8
19 files changed, 197 insertions, 33 deletions
diff --git a/dev-ruby/afm/afm-0.2.2-r1.ebuild b/dev-ruby/afm/afm-0.2.2-r2.ebuild
index 753750fb5ffc..b211e6fff871 100644
--- a/dev-ruby/afm/afm-0.2.2-r1.ebuild
+++ b/dev-ruby/afm/afm-0.2.2-r2.ebuild
@@ -1,8 +1,9 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
-USE_RUBY="ruby26 ruby27 ruby30 ruby31"
+EAPI=8
+
+USE_RUBY="ruby27 ruby30 ruby31 ruby32"
RUBY_FAKEGEM_EXTRADOC="README.rdoc"
diff --git a/dev-ruby/ansi/ansi-1.5.0-r1.ebuild b/dev-ruby/ansi/ansi-1.5.0-r1.ebuild
index 6842446df0a1..a72fb394da1a 100644
--- a/dev-ruby/ansi/ansi-1.5.0-r1.ebuild
+++ b/dev-ruby/ansi/ansi-1.5.0-r1.ebuild
@@ -1,8 +1,9 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
-USE_RUBY="ruby26 ruby27 ruby30 ruby31"
+
+USE_RUBY="ruby27 ruby30 ruby31"
RUBY_FAKEGEM_TASK_TEST=""
RUBY_FAKEGEM_RECIPE_DOC="rdoc"
@@ -20,3 +21,7 @@ IUSE=""
# Tests cause circular dependencies with dev-ruby/qed & dev-ruby/rubytest
RESTRICT="test"
+
+each_ruby_test() {
+ ${RUBY} -S rubytest -Ilib -Itest test/ || die 'tests failed'
+}
diff --git a/dev-ruby/barby/barby-0.6.8.ebuild b/dev-ruby/barby/barby-0.6.8-r1.ebuild
index 39e44ef44bd6..0ce49ddabc93 100644
--- a/dev-ruby/barby/barby-0.6.8.ebuild
+++ b/dev-ruby/barby/barby-0.6.8-r1.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
+EAPI=8
-USE_RUBY="ruby24 ruby25 ruby26 ruby27"
+USE_RUBY="ruby27 ruby30 ruby31"
RUBY_FAKEGEM_TASK_TEST="test"
diff --git a/dev-ruby/chunky_png/chunky_png-1.4.0.ebuild b/dev-ruby/chunky_png/chunky_png-1.4.0.ebuild
index 15d6471608f0..7a7956982248 100644
--- a/dev-ruby/chunky_png/chunky_png-1.4.0.ebuild
+++ b/dev-ruby/chunky_png/chunky_png-1.4.0.ebuild
@@ -1,8 +1,9 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
+# Can't do ruby32 until https://github.com/wvanbergen/chunky_png/pull/169 is merged
USE_RUBY="ruby26 ruby27 ruby30 ruby31"
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
@@ -19,7 +20,7 @@ RUBY_FAKEGEM_GEMSPEC="chunky_png.gemspec"
inherit ruby-fakegem
DESCRIPTION="Pure Ruby library that can read and write PNG images"
-HOMEPAGE="https://chunkypng.com/"
+HOMEPAGE="https://github.com/wvanbergen/chunky_png"
LICENSE="MIT"
SLOT="0"
diff --git a/dev-ruby/contracts/contracts-0.17-r1.ebuild b/dev-ruby/contracts/contracts-0.17-r1.ebuild
new file mode 100644
index 000000000000..6232037c76e4
--- /dev/null
+++ b/dev-ruby/contracts/contracts-0.17-r1.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby30 ruby31 ruby32"
+
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG.markdown README.md TODO.markdown TUTORIAL.md"
+
+inherit ruby-fakegem
+
+DESCRIPTION="provides contracts for Ruby"
+HOMEPAGE="https://github.com/egonSchiele/contracts.ruby"
+
+LICENSE="MIT"
+SLOT="$(ver_cut 1-2)"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-ruby32.patch
+)
+
+each_ruby_test() {
+ # COLUMNS needed for:
+ # ./spec/contracts_spec.rb:654 # Contracts: Contracts to_s formatting in expected should wrap and pretty print for long return contracts
+ # ./spec/contracts_spec.rb:643 # Contracts: Contracts to_s formatting in expected should wrap and pretty print for long param contracts
+ local -x COLUMNS=80
+ each_fakegem_test
+}
diff --git a/dev-ruby/contracts/files/contracts-0.17-ruby32.patch b/dev-ruby/contracts/files/contracts-0.17-ruby32.patch
new file mode 100644
index 000000000000..0f28e763ddac
--- /dev/null
+++ b/dev-ruby/contracts/files/contracts-0.17-ruby32.patch
@@ -0,0 +1,120 @@
+https://github.com/egonSchiele/contracts.ruby/issues/300
+https://github.com/egonSchiele/contracts.ruby/commit/88fd1d841615e59c873d7da64d050d3a251634dd
+
+From 88fd1d841615e59c873d7da64d050d3a251634dd Mon Sep 17 00:00:00 2001
+From: PikachuEXE <pikachuexe@gmail.com>
+Date: Wed, 5 Oct 2022 10:27:41 +0800
+Subject: [PATCH] * Update all references to Fixnum to Integer
+
+Deprecated in ruby 2.4
+--- a/lib/contracts/builtin_contracts.rb
++++ b/lib/contracts/builtin_contracts.rb
+@@ -95,7 +95,7 @@ def self.[](*vals)
+
+ # Takes a variable number of contracts.
+ # The contract passes if any of the contracts pass.
+- # Example: <tt>Or[Fixnum, Float]</tt>
++ # Example: <tt>Or[Integer, Float]</tt>
+ class Or < CallableClass
+ def initialize(*vals)
+ super()
+@@ -120,7 +120,7 @@ def to_s
+
+ # Takes a variable number of contracts.
+ # The contract passes if exactly one of those contracts pass.
+- # Example: <tt>Xor[Fixnum, Float]</tt>
++ # Example: <tt>Xor[Integer, Float]</tt>
+ class Xor < CallableClass
+ def initialize(*vals)
+ super()
+@@ -146,7 +146,7 @@ def to_s
+
+ # Takes a variable number of contracts.
+ # The contract passes if all contracts pass.
+- # Example: <tt>And[Fixnum, Float]</tt>
++ # Example: <tt>And[Integer, Float]</tt>
+ class And < CallableClass
+ def initialize(*vals)
+ super()
+--- a/spec/builtin_contracts_spec.rb
++++ b/spec/builtin_contracts_spec.rb
+@@ -30,7 +30,7 @@ def passes(&some)
+ end
+
+ describe "Num:" do
+- it "should pass for Fixnums" do
++ it "should pass for Integers" do
+ passes { @o.double(2) }
+ end
+
+--- a/spec/fixtures/fixtures.rb
++++ b/spec/fixtures/fixtures.rb
+@@ -100,11 +100,11 @@ def sum_three(vals)
+ end
+ end
+
+- Contract ({ :name => String, :age => Fixnum }) => nil
++ Contract ({ :name => String, :age => Integer }) => nil
+ def person(data)
+ end
+
+- Contract C::StrictHash[{ :name => String, :age => Fixnum }] => nil
++ Contract C::StrictHash[{ :name => String, :age => Integer }] => nil
+ def strict_person(data)
+ end
+
+@@ -119,7 +119,7 @@ def hash_complex_contracts(data)
+ def nested_hash_complex_contracts(data)
+ end
+
+- Contract C::KeywordArgs[:name => String, :age => Fixnum] => nil
++ Contract C::KeywordArgs[:name => String, :age => Integer] => nil
+ def person_keywordargs(name: "name", age: 10)
+ end
+
+@@ -529,30 +529,30 @@ def initialize(day, month)
+ @month = month
+ end
+
+- Contract C::None => Fixnum
++ Contract C::None => Integer
+ def silly_next_day!
+ self.day += 1
+ end
+
+- Contract C::None => Fixnum
++ Contract C::None => Integer
+ def silly_next_month!
+ self.month += 1
+ end
+
+- Contract C::None => Fixnum
++ Contract C::None => Integer
+ def clever_next_day!
+ return clever_next_month! if day == 31
+ self.day += 1
+ end
+
+- Contract C::None => Fixnum
++ Contract C::None => Integer
+ def clever_next_month!
+ return next_year! if month == 12
+ self.month += 1
+ self.day = 1
+ end
+
+- Contract C::None => Fixnum
++ Contract C::None => Integer
+ def next_year!
+ self.month = 1
+ self.day = 1
+@@ -610,7 +610,7 @@ def on_response(status, body)
+ body + "!"
+ end
+
+- Contract Fixnum, String => String
++ Contract Integer, String => String
+ def on_response(status, body)
+ "error #{status}: #{body}"
+ end
+
diff --git a/dev-ruby/narray/narray-0.6.1.2-r2.ebuild b/dev-ruby/narray/narray-0.6.1.2-r2.ebuild
index 0d45789133f2..4154ee0c1d70 100644
--- a/dev-ruby/narray/narray-0.6.1.2-r2.ebuild
+++ b/dev-ruby/narray/narray-0.6.1.2-r2.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_TASK_TEST=""
RUBY_FAKEGEM_TASK_DOC=""
diff --git a/dev-ruby/prawn/prawn-2.4.0.ebuild b/dev-ruby/prawn/prawn-2.4.0-r1.ebuild
index f1a2427c9beb..6846b3e75f25 100644
--- a/dev-ruby/prawn/prawn-2.4.0.ebuild
+++ b/dev-ruby/prawn/prawn-2.4.0-r1.ebuild
@@ -1,8 +1,9 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
-USE_RUBY="ruby26 ruby27 ruby30"
+EAPI=8
+
+USE_RUBY="ruby27 ruby30 ruby31"
RUBY_FAKEGEM_RECIPE_DOC="yard"
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
diff --git a/dev-ruby/rb-gsl/rb-gsl-2.1.0.2-r1.ebuild b/dev-ruby/rb-gsl/rb-gsl-2.1.0.2-r1.ebuild
index 5fc4e9e1c9d9..1b4bd449037d 100644
--- a/dev-ruby/rb-gsl/rb-gsl-2.1.0.2-r1.ebuild
+++ b/dev-ruby/rb-gsl/rb-gsl-2.1.0.2-r1.ebuild
@@ -1,7 +1,9 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
+
+# No >= ruby30 because of https://github.com/SciRuby/rb-gsl/issues/63
USE_RUBY="ruby26 ruby27"
RUBY_FAKEGEM_NAME="gsl"
diff --git a/dev-ruby/rcairo/rcairo-1.17.8.ebuild b/dev-ruby/rcairo/rcairo-1.17.8.ebuild
index 4f3fa7c8472b..c82217f31c26 100644
--- a/dev-ruby/rcairo/rcairo-1.17.8.ebuild
+++ b/dev-ruby/rcairo/rcairo-1.17.8.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-USE_RUBY="ruby27 ruby30 ruby31"
+USE_RUBY="ruby27 ruby30 ruby31 ruby32"
RUBY_FAKEGEM_NAME="cairo"
diff --git a/dev-ruby/red-colors/red-colors-0.3.0-r1.ebuild b/dev-ruby/red-colors/red-colors-0.3.0-r1.ebuild
index 8aa565aee547..d2f60e5e1a86 100644
--- a/dev-ruby/red-colors/red-colors-0.3.0-r1.ebuild
+++ b/dev-ruby/red-colors/red-colors-0.3.0-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_EXTRADOC="README.md"
RUBY_FAKEGEM_EXTRAINSTALL="data"
diff --git a/dev-ruby/ruby-cairo-gobject/ruby-cairo-gobject-3.5.1.ebuild b/dev-ruby/ruby-cairo-gobject/ruby-cairo-gobject-3.5.1.ebuild
index 77cf9889f14d..2692210e71da 100644
--- a/dev-ruby/ruby-cairo-gobject/ruby-cairo-gobject-3.5.1.ebuild
+++ b/dev-ruby/ruby-cairo-gobject/ruby-cairo-gobject-3.5.1.ebuild
@@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
EAPI=7
-USE_RUBY="ruby27 ruby30 ruby31"
+USE_RUBY="ruby27 ruby30 ruby31 ruby32"
inherit ruby-ng-gnome2
diff --git a/dev-ruby/ruby-gio2/ruby-gio2-3.5.1.ebuild b/dev-ruby/ruby-gio2/ruby-gio2-3.5.1.ebuild
index 8613c818d0f3..7d7f5758fca8 100644
--- a/dev-ruby/ruby-gio2/ruby-gio2-3.5.1.ebuild
+++ b/dev-ruby/ruby-gio2/ruby-gio2-3.5.1.ebuild
@@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
EAPI=7
-USE_RUBY="ruby27 ruby30 ruby31"
+USE_RUBY="ruby27 ruby30 ruby31 ruby32"
inherit ruby-ng-gnome2
diff --git a/dev-ruby/ruby-gobject-introspection/ruby-gobject-introspection-3.5.1.ebuild b/dev-ruby/ruby-gobject-introspection/ruby-gobject-introspection-3.5.1.ebuild
index 78cb6138f3a3..d10a04bd694a 100644
--- a/dev-ruby/ruby-gobject-introspection/ruby-gobject-introspection-3.5.1.ebuild
+++ b/dev-ruby/ruby-gobject-introspection/ruby-gobject-introspection-3.5.1.ebuild
@@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
EAPI=7
-USE_RUBY="ruby27 ruby30 ruby31"
+USE_RUBY="ruby27 ruby30 ruby31 ruby32"
inherit ruby-ng-gnome2
diff --git a/dev-ruby/ruby-poppler/ruby-poppler-3.5.1.ebuild b/dev-ruby/ruby-poppler/ruby-poppler-3.5.1.ebuild
index 44060206a44a..1bf802e25616 100644
--- a/dev-ruby/ruby-poppler/ruby-poppler-3.5.1.ebuild
+++ b/dev-ruby/ruby-poppler/ruby-poppler-3.5.1.ebuild
@@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
EAPI=7
-USE_RUBY="ruby27 ruby30 ruby31"
+USE_RUBY="ruby27 ruby30 ruby31 ruby32"
inherit ruby-ng-gnome2
diff --git a/dev-ruby/ruby-rc4/ruby-rc4-0.1.5-r3.ebuild b/dev-ruby/ruby-rc4/ruby-rc4-0.1.5-r3.ebuild
index c683a3db28ac..e0870cf4c2d5 100644
--- a/dev-ruby/ruby-rc4/ruby-rc4-0.1.5-r3.ebuild
+++ b/dev-ruby/ruby-rc4/ruby-rc4-0.1.5-r3.ebuild
@@ -1,8 +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"
diff --git a/dev-ruby/safe_yaml/safe_yaml-1.0.5-r1.ebuild b/dev-ruby/safe_yaml/safe_yaml-1.0.5-r1.ebuild
index 8be3fdee610c..6c605c412659 100644
--- a/dev-ruby/safe_yaml/safe_yaml-1.0.5-r1.ebuild
+++ b/dev-ruby/safe_yaml/safe_yaml-1.0.5-r1.ebuild
@@ -1,8 +1,10 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
+# Broken with ruby30: https://github.com/dtao/safe_yaml/issues/100
+# Broken with newer psych: https://github.com/dtao/safe_yaml/pull/101
USE_RUBY="ruby25 ruby26 ruby27"
RUBY_FAKEGEM_EXTRADOC="README.md"
@@ -11,7 +13,7 @@ RUBY_FAKEGEM_RECIPE_TEST="none"
inherit ruby-fakegem
DESCRIPTION="Parse YAML safely, alternative implementation of YAML.load"
-HOMEPAGE="https://dtao.github.com/safe_yaml"
+HOMEPAGE="https://github.com/dtao/safe_yaml"
LICENSE="MIT"
SLOT="0"
diff --git a/dev-ruby/spy/spy-1.0.3.ebuild b/dev-ruby/spy/spy-1.0.3.ebuild
index a8d2bf5bd237..3edeeab0a89c 100644
--- a/dev-ruby/spy/spy-1.0.3.ebuild
+++ b/dev-ruby/spy/spy-1.0.3.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="ruby27 ruby30 ruby31"
+USE_RUBY="ruby27 ruby30 ruby31 ruby32"
RUBY_FAKEGEM_EXTRADOC="README.md CHANGELOG.md"
diff --git a/dev-ruby/ttfunk/ttfunk-1.7.0.ebuild b/dev-ruby/ttfunk/ttfunk-1.7.0-r1.ebuild
index cdd977a619a5..6f7447a16790 100644
--- a/dev-ruby/ttfunk/ttfunk-1.7.0.ebuild
+++ b/dev-ruby/ttfunk/ttfunk-1.7.0-r1.ebuild
@@ -1,8 +1,9 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
-USE_RUBY="ruby26 ruby27 ruby30 ruby31"
+EAPI=8
+
+USE_RUBY="ruby27 ruby30 ruby31 ruby32"
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
@@ -19,7 +20,6 @@ SRC_URI="https://github.com/prawnpdf/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="|| ( GPL-2 GPL-3 Ruby )"
SLOT="$(ver_cut 1-2)"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
-IUSE=""
all_ruby_prepare() {
sed -i -e '/bundler/I s:^:#:' spec/spec_helper.rb || die