Date: Monday, January 23, 2023 @ 10:56:12
Author: bastelfreak
Revision: 1387931
archrelease: copy trunk to community-any
Added:
ruby-mocha/repos/community-any/PKGBUILD
(from rev 1387930, ruby-mocha/trunk/PKGBUILD)
ruby-mocha/repos/community-any/disable-rubocop.patch
(from rev 1387930, ruby-mocha/trunk/disable-rubocop.patch)
Deleted:
ruby-mocha/repos/community-any/PKGBUILD
ruby-mocha/repos/community-any/disable-rubocop.patch
-----------------------+
PKGBUILD | 106 +++++++++++++++++++-------------------
disable-rubocop.patch | 133 ++++++++++++++++++------------------------------
2 files changed, 105 insertions(+), 134 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-01-23 10:56:03 UTC (rev 1387930)
+++ PKGBUILD 2023-01-23 10:56:12 UTC (rev 1387931)
@@ -1,53 +0,0 @@
-# Maintainer:: Tim Meusel <[email protected]>
-# Contributor: Christian Rebischke <[email protected]>
-# Contributor: Andreas 'Segaja' Schleifer <archlinux at segaja dot de>
-
-_gemname=mocha
-pkgname="ruby-${_gemname}"
-pkgver=1.14.0
-pkgrel=1
-pkgdesc='Mocha is a mocking and stubbing library for Ruby'
-arch=('any')
-url='https://github.com/freerange/mocha'
-license=('Custom')
-depends=('ruby')
-checkdepends=('ruby-rake' 'ruby-bundler' 'ruby-introspection')
-makedepends=('ruby-minitest')
-options=('!emptydirs')
-source=("${pkgname}-${pkgver}.tar.gz::https://github.com/freerange/mocha/archive/v${pkgver}.tar.gz"
- 'disable-rubocop.patch')
-sha512sums=('41dfd1f9add0b62c8609ec4cdf07ae58580503c81eb40886cae6c97ee5a5109ae5aa6094756c9666985266c83fad38adef7c9c4a2add8ef2b7571c2c1753cfb0'
-
'0530a214c2d82be4ce029bad2dc3a6adc1a6b12b8563f25221224d6b761f1b190925181194f035501de356e2fc8c07df402bb66ffc6a8af85747334015621e2f')
-
-prepare() {
- cd "${_gemname}-${pkgver}"
-
- # `git` doesn't work within src dir, because we downloaded an archive
- sed --in-place 's|`git ls-files -z`.split("\\x0")|`find`.split("\\n")|'
"${_gemname}.gemspec"
- patch --forward --verbose --strip=1 --input='../disable-rubocop.patch'
-}
-
-check() {
- cd "${_gemname}-${pkgver}"
- rake test:units
-}
-
-build() {
- cd "${_gemname}-${pkgver}"
- gem build ${_gemname}.gemspec
-}
-
-package() {
- cd "${_gemname}-${pkgver}"
- local _gemdir="$(gem env gemdir)"
- gem install --ignore-dependencies --no-user-install --install-dir
"${pkgdir}${_gemdir}" --bindir "${pkgdir}/usr/bin" "${_gemname}-${pkgver}.gem"
- install -Dm 644 README.md RELEASE.md --target-directory
"${pkgdir}/usr/share/doc/${pkgname}"
- install -Dm 644 COPYING.md MIT-LICENSE.md --target-directory
"${pkgdir}/usr/share/licenses/${pkgname}"
- mv "${pkgdir}/${_gemdir}/gems/${_gemname}-${pkgver}/docs"
"${pkgdir}/usr/share/doc/${pkgname}/"
-
- # delete unneeded files
- rm "${pkgdir}/${_gemdir}/cache/${_gemname}-${pkgver}.gem"
- rm -rf
"${pkgdir}/${_gemdir}/gems/${_gemname}-${pkgver}/"{test,yard-templates,gemfiles,bin,.github,.gemtest,mocha.gemspec.orig}
-}
-
-# vim: ts=2 sw=2 et:
Copied: ruby-mocha/repos/community-any/PKGBUILD (from rev 1387930,
ruby-mocha/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-01-23 10:56:12 UTC (rev 1387931)
@@ -0,0 +1,53 @@
+# Maintainer:: Tim Meusel <[email protected]>
+# Contributor: Christian Rebischke <[email protected]>
+# Contributor: Andreas 'Segaja' Schleifer <archlinux at segaja dot de>
+
+_gemname=mocha
+pkgname="ruby-${_gemname}"
+pkgver=1.16.1
+pkgrel=1
+pkgdesc='Mocha is a mocking and stubbing library for Ruby'
+arch=('any')
+url='https://github.com/freerange/mocha'
+license=('Custom')
+depends=('ruby')
+checkdepends=('ruby-rake' 'ruby-bundler' 'ruby-introspection' 'ruby-metaclass')
+makedepends=('ruby-minitest')
+options=('!emptydirs')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/freerange/mocha/archive/v${pkgver}.tar.gz"
+ 'disable-rubocop.patch')
+sha512sums=('b65cf98ab39334ad86a6f375b648fc906d083e803afa5bd2a62aaed87ac625fcf94ed9b16b21dc1563ff67675e00bf008d43234bde0343604f6fce2841d8b2bb'
+
'17b75309fb7bd2fa6dcd6ac8a0dda1f8a9e4f6c4a89d9500998ffe40cc2651debebbb8362442589a3405c09f5b97fff56cae10c48020f921b5885e2de08f3670')
+
+prepare() {
+ cd "${_gemname}-${pkgver}"
+
+ # `git` doesn't work within src dir, because we downloaded an archive
+ sed --in-place 's|`git ls-files -z`.split("\\x0")|`find`.split("\\n")|'
"${_gemname}.gemspec"
+ patch --forward --verbose --strip=1 --input='../disable-rubocop.patch'
+}
+
+check() {
+ cd "${_gemname}-${pkgver}"
+ rake test:units
+}
+
+build() {
+ cd "${_gemname}-${pkgver}"
+ gem build ${_gemname}.gemspec
+}
+
+package() {
+ cd "${_gemname}-${pkgver}"
+ local _gemdir="$(gem env gemdir)"
+ gem install --ignore-dependencies --no-user-install --install-dir
"${pkgdir}${_gemdir}" --bindir "${pkgdir}/usr/bin" "${_gemname}-${pkgver}.gem"
+ install -Dm 644 README.md RELEASE.md --target-directory
"${pkgdir}/usr/share/doc/${pkgname}"
+ install -Dm 644 COPYING.md MIT-LICENSE.md --target-directory
"${pkgdir}/usr/share/licenses/${pkgname}"
+ mv "${pkgdir}/${_gemdir}/gems/${_gemname}-${pkgver}/docs"
"${pkgdir}/usr/share/doc/${pkgname}/"
+
+ # delete unneeded files
+ rm "${pkgdir}/${_gemdir}/cache/${_gemname}-${pkgver}.gem"
+ rm -rf
"${pkgdir}/${_gemdir}/gems/${_gemname}-${pkgver}/"{test,yard-templates,gemfiles,bin,.github,.gemtest,mocha.gemspec.orig}
+}
+
+# vim: ts=2 sw=2 et:
Deleted: disable-rubocop.patch
===================================================================
--- disable-rubocop.patch 2023-01-23 10:56:03 UTC (rev 1387930)
+++ disable-rubocop.patch 2023-01-23 10:56:12 UTC (rev 1387931)
@@ -1,81 +0,0 @@
-diff --git a/Rakefile b/Rakefile
-index bbcea3b..95a77bd 100644
---- a/Rakefile
-+++ b/Rakefile
-@@ -1,7 +1,3 @@
--require 'bundler'
--Bundler::GemHelper.install_tasks
--require 'bundler/setup'
--
- require 'rake/testtask'
-
- desc 'Run all tests'
-@@ -9,12 +5,8 @@ task 'default' => ['test', 'test:performance']
-
- desc 'Run tests'
- task 'test' do
-- if (test_library = ENV['MOCHA_RUN_INTEGRATION_TESTS'])
-- Rake::Task["test:integration:#{test_library}"].invoke
-- else
-- Rake::Task['test:units'].invoke
-- Rake::Task['test:acceptance'].invoke
-- end
-+ Rake::Task['test:units'].invoke
-+ Rake::Task['test:acceptance'].invoke
- end
-
- namespace 'test' do # rubocop:disable Metrics/BlockLength
-@@ -83,15 +75,6 @@ namespace 'test' do # rubocop:disable Metrics/BlockLength
- end
- end
-
--begin
-- require 'rubocop/rake_task'
-- if RUBY_VERSION >= '2.2.0' && (defined?(RUBY_ENGINE) && RUBY_ENGINE ==
'ruby') && ENV['MOCHA_RUN_INTEGRATION_TESTS'].nil?
-- RuboCop::RakeTask.new
-- task 'test' => 'rubocop'
-- end
--rescue LoadError # rubocop:disable Lint/HandleExceptions
--end
--
- # rubocop:disable Metrics/CyclomaticComplexity,Metrics/PerceivedComplexity
- def benchmark_test_case(klass, iterations)
- require 'benchmark'
-@@ -121,37 +104,3 @@ def benchmark_test_case(klass, iterations)
- end
- end
- # rubocop:enable Metrics/CyclomaticComplexity,Metrics/PerceivedComplexity
--
--if ENV['MOCHA_GENERATE_DOCS']
-- require 'yard'
--
-- desc 'Remove generated documentation'
-- task 'clobber_yardoc' do
-- `rm -rf ./docs`
-- end
--
-- task 'docs_environment' do
-- unless ENV['GOOGLE_ANALYTICS_WEB_PROPERTY_ID']
-- puts "\nWarning: GOOGLE_ANALYTICS_WEB_PROPERTY_ID was not defined\n\n"
-- end
-- end
--
-- desc 'Generate documentation'
-- YARD::Rake::YardocTask.new('yardoc' => 'docs_environment') do |task|
-- task.options = ['--title', "Mocha #{Mocha::VERSION}", '--fail-on-warning']
-- end
--
-- task 'checkout_docs_cname' do
-- `git checkout docs/CNAME`
-- end
--
-- task 'checkout_docs_js' do
-- `git checkout docs/js/app.js`
-- `git checkout docs/js/jquery.js`
-- end
--
-- desc 'Generate documentation'
-- task 'generate_docs' => %w[clobber_yardoc yardoc checkout_docs_cname
checkout_docs_js]
--end
--
--task 'release' => 'default'
Copied: ruby-mocha/repos/community-any/disable-rubocop.patch (from rev 1387930,
ruby-mocha/trunk/disable-rubocop.patch)
===================================================================
--- disable-rubocop.patch (rev 0)
+++ disable-rubocop.patch 2023-01-23 10:56:12 UTC (rev 1387931)
@@ -0,0 +1,52 @@
+diff --git a/Gemfile b/Gemfile
+index e066639..3270b20 100644
+--- a/Gemfile
++++ b/Gemfile
+@@ -2,15 +2,7 @@ source 'https://rubygems.org'
+
+ gemspec
+
+-# rubocop:disable Bundler/DuplicatedGem
+-if RUBY_VERSION < '2'
+- gem 'rake', '~> 12.2.1'
+-elsif RUBY_VERSION < '2.2'
+- gem 'rake', '~> 12.3.3'
+-else
+- gem 'rake'
+-end
+-# rubocop:enable Bundler/DuplicatedGem
++gem 'rake'
+
+ gem 'introspection', '~> 0.0.1'
+
+@@ -23,10 +15,3 @@ if RUBY_VERSION >= '2.2.0'
+ # No test libraries in standard library
+ gem 'minitest'
+ end
+-if RUBY_VERSION >= '2.2.0'
+- gem 'rubocop', '<= 0.58.2'
+-end
+-if ENV['MOCHA_GENERATE_DOCS']
+- gem 'redcarpet'
+- gem 'yard'
+-end
+diff --git a/Rakefile b/Rakefile
+index 2a57d96..51f60b9 100644
+--- a/Rakefile
++++ b/Rakefile
+@@ -76,15 +76,6 @@ namespace 'test' do # rubocop:disable Metrics/BlockLength
+ end
+ end
+
+-begin
+- require 'rubocop/rake_task'
+- if RUBY_VERSION >= '2.2.0' && (defined?(RUBY_ENGINE) && RUBY_ENGINE ==
'ruby') && ENV['MOCHA_RUN_INTEGRATION_TESTS'].nil?
+- RuboCop::RakeTask.new
+- task 'test' => 'rubocop'
+- end
+-rescue LoadError # rubocop:disable Lint/HandleExceptions
+-end
+-
+ # rubocop:disable Metrics/CyclomaticComplexity,Metrics/PerceivedComplexity
+ def benchmark_test_case(klass, iterations)
+ require 'benchmark'