Date: Monday, January 23, 2023 @ 10:56:03
Author: bastelfreak
Revision: 1387930
Update 1.14.0->1.16.1
Modified:
ruby-mocha/trunk/PKGBUILD
ruby-mocha/trunk/disable-rubocop.patch
-----------------------+
PKGBUILD | 8 +--
disable-rubocop.patch | 99 ++++++++++++++++--------------------------------
2 files changed, 39 insertions(+), 68 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2023-01-23 10:45:37 UTC (rev 1387929)
+++ PKGBUILD 2023-01-23 10:56:03 UTC (rev 1387930)
@@ -4,7 +4,7 @@
_gemname=mocha
pkgname="ruby-${_gemname}"
-pkgver=1.14.0
+pkgver=1.16.1
pkgrel=1
pkgdesc='Mocha is a mocking and stubbing library for Ruby'
arch=('any')
@@ -11,13 +11,13 @@
url='https://github.com/freerange/mocha'
license=('Custom')
depends=('ruby')
-checkdepends=('ruby-rake' 'ruby-bundler' 'ruby-introspection')
+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=('41dfd1f9add0b62c8609ec4cdf07ae58580503c81eb40886cae6c97ee5a5109ae5aa6094756c9666985266c83fad38adef7c9c4a2add8ef2b7571c2c1753cfb0'
-
'0530a214c2d82be4ce029bad2dc3a6adc1a6b12b8563f25221224d6b761f1b190925181194f035501de356e2fc8c07df402bb66ffc6a8af85747334015621e2f')
+sha512sums=('b65cf98ab39334ad86a6f375b648fc906d083e803afa5bd2a62aaed87ac625fcf94ed9b16b21dc1563ff67675e00bf008d43234bde0343604f6fce2841d8b2bb'
+
'17b75309fb7bd2fa6dcd6ac8a0dda1f8a9e4f6c4a89d9500998ffe40cc2651debebbb8362442589a3405c09f5b97fff56cae10c48020f921b5885e2de08f3670')
prepare() {
cd "${_gemname}-${pkgver}"
Modified: disable-rubocop.patch
===================================================================
--- disable-rubocop.patch 2023-01-23 10:45:37 UTC (rev 1387929)
+++ disable-rubocop.patch 2023-01-23 10:56:03 UTC (rev 1387930)
@@ -1,34 +1,43 @@
+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 bbcea3b..95a77bd 100644
+index 2a57d96..51f60b9 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
+@@ -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?
@@ -41,41 +50,3 @@
# 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'