public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/sinatra/
Date: Fri,  7 Apr 2023 11:25:56 +0000 (UTC)	[thread overview]
Message-ID: <1680866691.607ac7ce9739daf7601ae27868592343534a977a.sam@gentoo> (raw)

commit:     607ac7ce9739daf7601ae27868592343534a977a
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Apr  7 07:30:19 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Apr  7 11:24:51 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=607ac7ce

dev-ruby/sinatra: enable ruby32, fix tests

Closes: https://bugs.gentoo.org/893182
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-ruby/sinatra/sinatra-3.0.5-r1.ebuild | 52 ++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)

diff --git a/dev-ruby/sinatra/sinatra-3.0.5-r1.ebuild b/dev-ruby/sinatra/sinatra-3.0.5-r1.ebuild
new file mode 100644
index 000000000000..c7a9a21dcf65
--- /dev/null
+++ b/dev-ruby/sinatra/sinatra-3.0.5-r1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+USE_RUBY="ruby27 ruby30 ruby31"
+
+RUBY_FAKEGEM_TASK_TEST="MT_NO_PLUGINS=true test:core"
+
+RUBY_FAKEGEM_EXTRADOC="README.md AUTHORS.md CHANGELOG.md"
+
+RUBY_FAKEGEM_GEMSPEC="sinatra.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="A DSL for quickly creating web applications in Ruby with minimal effort"
+HOMEPAGE="https://sinatrarb.com/"
+SRC_URI="https://github.com/sinatra/sinatra/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="$(ver_cut 1)"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~x86"
+IUSE=""
+
+ruby_add_rdepend "
+	dev-ruby/mustermann:3
+	>=dev-ruby/rack-2.2.4:2.2
+	~dev-ruby/rack-protection-${PV}
+	dev-ruby/tilt:2"
+ruby_add_bdepend "
+	test? (
+		dev-ruby/builder
+		dev-ruby/erubi
+		dev-ruby/haml
+		>=dev-ruby/rack-test-0.5.6
+		<dev-ruby/activesupport-7
+	)
+"
+ruby_add_bdepend "doc? ( dev-ruby/yard )"
+
+all_ruby_prepare() {
+	# Matching dev-ruby/activesupport
+	sed -i -e '/minitest.*~> 5.0/s:.*:&, "< 5.16":' Gemfile || die
+
+	sed -i \
+		-e "/require 'rack'/igem 'rack', '~> 2.2', '>= 2.2.4'" \
+		-e "/require 'minitest'/igem 'minitest', '< 5.16'" \
+		-e '/active_support\/core_ext\/hash/igem "activesupport", "<7"' \
+		test/helper.rb || die
+
+	# Avoid spec broken by newer rack versions, already removed upstream.
+	sed -i -e 's/"bytes=IV-LXVI", //' test/static_test.rb || die
+}


             reply	other threads:[~2023-04-07 11:26 UTC|newest]

Thread overview: 80+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-07 11:25 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-10-07  2:44 [gentoo-commits] repo/gentoo:master commit in: dev-ruby/sinatra/ Sam James
2024-08-16  6:04 Hans de Graaff
2024-07-19  9:56 Hans de Graaff
2024-07-15  7:47 Hans de Graaff
2024-07-14  8:48 Hans de Graaff
2024-07-14  7:48 Hans de Graaff
2024-05-28  4:54 Hans de Graaff
2024-05-28  4:54 Hans de Graaff
2024-02-14 14:14 Hans de Graaff
2024-02-10 10:32 Hans de Graaff
2024-02-10  8:03 Hans de Graaff
2024-01-21  7:45 Hans de Graaff
2023-08-29  6:01 Hans de Graaff
2023-08-19  5:25 Hans de Graaff
2023-08-12  7:21 Hans de Graaff
2023-07-24 15:31 Arthur Zamarin
2023-06-13 10:11 Hans de Graaff
2023-06-13 10:11 Hans de Graaff
2023-04-11 17:52 Jakov Smolić
2023-04-09  2:34 Sam James
2023-04-08  8:42 Arthur Zamarin
2023-04-07 18:25 Sam James
2023-04-07 11:25 Sam James
2023-02-04  7:08 Hans de Graaff
2023-02-04  7:08 Hans de Graaff
2023-02-04  7:08 Hans de Graaff
2023-01-08  7:49 Hans de Graaff
2023-01-08  7:49 Hans de Graaff
2023-01-08  7:49 Hans de Graaff
2022-12-04 17:56 Arthur Zamarin
2022-12-03 11:04 Hans de Graaff
2022-12-03 11:04 Hans de Graaff
2022-10-22  4:36 Hans de Graaff
2022-10-01  7:55 Hans de Graaff
2022-10-01  7:55 Hans de Graaff
2022-07-21  6:37 Hans de Graaff
2022-05-06  8:22 Hans de Graaff
2022-05-06  8:22 Hans de Graaff
2022-04-22  6:55 Hans de Graaff
2022-03-20 10:04 Hans de Graaff
2021-09-07 21:28 Marek Szuba
2020-12-29 10:48 Hans de Graaff
2020-12-29  7:21 Hans de Graaff
2020-12-20 19:14 Sam James
2020-12-20 19:03 Sam James
2020-09-19  6:06 Hans de Graaff
2020-09-05  8:01 Hans de Graaff
2020-07-05  6:27 Hans de Graaff
2020-06-21  9:05 Hans de Graaff
2020-05-11 20:34 Sergei Trofimovich
2020-05-10  8:27 Hans de Graaff
2020-03-12 13:47 Hans de Graaff
2020-03-01  8:22 Hans de Graaff
2019-08-24  4:45 Hans de Graaff
2019-05-01 17:49 Hans de Graaff
2019-04-27  6:13 Hans de Graaff
2019-04-27  6:13 Hans de Graaff
2019-03-30  6:46 Hans de Graaff
2019-02-07  7:36 Hans de Graaff
2018-11-26 19:19 Mikle Kolyada
2018-10-20 12:16 Sergei Trofimovich
2018-10-20 12:16 Sergei Trofimovich
2018-09-27  4:15 Hans de Graaff
2018-08-03 23:09 Sergei Trofimovich
2018-07-28 13:25 Thomas Deutschmann
2018-07-19  6:30 Hans de Graaff
2018-04-27  8:33 Hans de Graaff
2018-04-27  8:33 Hans de Graaff
2018-01-22 16:42 Hans de Graaff
2017-06-30 11:17 Alexis Ballier
2017-06-23  3:38 Hans de Graaff
2016-07-25 17:28 Hans de Graaff
2016-07-25 17:28 Hans de Graaff
2016-07-25 17:28 Hans de Graaff
2016-06-02 21:48 Richard Farina
2016-03-06 19:33 Manuel Rüger
2016-03-06 19:33 Manuel Rüger
2016-01-25 14:05 Hans de Graaff
2015-08-16 23:14 Mikle Kolyada

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1680866691.607ac7ce9739daf7601ae27868592343534a977a.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox