[arch-commits] Commit in ruby27-power_assert/repos (3 files)
Tim Meusel
bastelfreak at archlinux.org
Sun May 16 15:13:54 UTC 2021
Date: Sunday, May 16, 2021 @ 15:13:53
Author: bastelfreak
Revision: 935849
archrelease: copy trunk to community-testing-any
Added:
ruby27-power_assert/repos/community-testing-any/
ruby27-power_assert/repos/community-testing-any/PKGBUILD
(from rev 935848, ruby27-power_assert/trunk/PKGBUILD)
ruby27-power_assert/repos/community-testing-any/disable-irb-1.3.1-and-newer-specific-test.patch
(from rev 935848, ruby27-power_assert/trunk/disable-irb-1.3.1-and-newer-specific-test.patch)
-------------------------------------------------+
PKGBUILD | 52 ++++++++++++++++++++++
disable-irb-1.3.1-and-newer-specific-test.patch | 42 +++++++++++++++++
2 files changed, 94 insertions(+)
Copied: ruby27-power_assert/repos/community-testing-any/PKGBUILD (from rev 935848, ruby27-power_assert/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2021-05-16 15:13:53 UTC (rev 935849)
@@ -0,0 +1,52 @@
+# Maintainer: Tim Meusel <tim at bastelfreak.de>
+# Contributor: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Anatol Pomozov <anatol.pomozov at gmail.com>
+# Contributor: Alfredo Palhares <masterkorp at masterkorp.net>
+# Contributor: Jochen Schalanda <jochen+aur at schalanda.name>
+
+_gemname=power_assert
+pkgname="ruby27-${_gemname}"
+pkgver=2.0.0
+pkgrel=1
+pkgdesc='Power Assert for Ruby'
+arch=('any')
+url="https://github.com/ruby/${_gemname}"
+license=('custom:BSDL')
+depends=('ruby2.7')
+makedepends=('ruby27-rdoc' 'ruby27-rake')
+checkdepends=('ruby27-test-unit')
+options=('!emptydirs')
+source=("${url}/archive/refs/tags/v${pkgver}.tar.gz" 'disable-irb-1.3.1-and-newer-specific-test.patch')
+sha512sums=('e6faf3cf50d2c70ae421bae20b885ac858fe11b10b1a8562d9ca88afbd397fa4812631f2aa02638c273eed518091dfaa020b6c002c0559383ddca625404bcc1c'
+ '7e959ac2b2170e7465cdb7b1a76740c8e84013b2f5c479574e9412aa252891d8713813c416679b79b19ae32693a4e1f032f4349018dcb69c2bacbe9727d65be5')
+
+prepare() {
+ cd "${_gemname}-${pkgver}"
+ sed --in-place 's|`git ls-files -z`|`find . -print0`|' "${_gemname}.gemspec"
+ sed --in-place '/bundler/d' Rakefile
+ patch --forward --verbose --strip=1 --input='../disable-irb-1.3.1-and-newer-specific-test.patch'
+}
+
+build() {
+ cd "${_gemname}-${pkgver}"
+ gem-2.7 build "${_gemname}.gemspec"
+}
+
+check() {
+ cd "${_gemname}-${pkgver}"
+ ruby27-rake test
+}
+
+package() {
+ cd "${_gemname}-${pkgver}"
+ local _gemdir="$(gem-2.7 env gemdir)"
+ gem-2.7 install --verbose --ignore-dependencies --no-user-install --install-dir "${pkgdir}/${_gemdir}" --bindir "${pkgdir}/usr/bin" "${_gemname}-${pkgver}.gem"
+
+ rm -rf "${pkgdir}/${_gemdir}/cache"
+ rm -rf "${pkgdir}/${_gemdir}/gems/${_gemname}-${pkgver}/.github"
+
+ install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+ install -Dm 644 BSDL COPYING LEGAL -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et:
Copied: ruby27-power_assert/repos/community-testing-any/disable-irb-1.3.1-and-newer-specific-test.patch (from rev 935848, ruby27-power_assert/trunk/disable-irb-1.3.1-and-newer-specific-test.patch)
===================================================================
--- community-testing-any/disable-irb-1.3.1-and-newer-specific-test.patch (rev 0)
+++ community-testing-any/disable-irb-1.3.1-and-newer-specific-test.patch 2021-05-16 15:13:53 UTC (rev 935849)
@@ -0,0 +1,42 @@
+diff --git a/test/block_test.rb b/test/block_test.rb
+index 3f5d24f..55bbb41 100644
+--- a/test/block_test.rb
++++ b/test/block_test.rb
+@@ -530,37 +530,6 @@ END
+ 'colorize_message' => [true, :p ],
+ 'inspector(pp)' => [false, :pp]
+ )
+- def test_colorized_pp((colorize_message, inspector))
+- begin
+- PowerAssert.configure do |c|
+- c.lazy_inspection = true
+- c.colorize_message = colorize_message
+- c.inspector = inspector
+- end
+- assert_equal <<END.chomp, strip_color(assertion_message {
+- 0 == 0
+- |
+- true
+-END
+- 0 == 0
+- })
+- if colorize_message and IRB::Color.colorable?
+- assert_not_equal <<END.chomp, assertion_message {
+- 0 == 0
+- |
+- true
+-END
+- 0 == 0
+- }
+- end
+- ensure
+- PowerAssert.configure do |c|
+- c.inspector = :p
+- c.colorize_message = false
+- c.lazy_inspection = false
+- end
+- end
+- end
+
+ def test_assertion_message_with_string
+ a, = 0, a # suppress "assigned but unused variable" warning
More information about the arch-commits
mailing list