Tim Meusel pushed to branch main at Arch Linux / Packaging / Packages / 
ruby-mocha


Commits:
83c1f28a by Tim Meusel at 2023-09-15T12:48:03+02:00
upgpkg: 2.1.0-1

- - - - -


2 changed files:

- PKGBUILD
- − disable-rubocop.patch


Changes:

=====================================
PKGBUILD
=====================================
@@ -4,27 +4,25 @@
 
 _gemname=mocha
 pkgname="ruby-${_gemname}"
-pkgver=1.16.1
+pkgver=2.1.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' 'ruby-metaclass')
+checkdepends=('ruby-rake' 'ruby-bundler' 'ruby-introspection' 'ruby-metaclass' 
'ruby-rubocop')
 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')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/freerange/mocha/archive/v${pkgver}.tar.gz";)
+sha512sums=('8044065ebb2225f7aab117353b0a49c854768fd55f7165ccb5916027f6f8fc843665572ed786e41d5ec6affedf397f4de20fa31a9f9c1582a17a67555662a65e')
 
 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'
+  rm Gemfile
 }
 
 check() {


=====================================
disable-rubocop.patch deleted
=====================================
@@ -1,52 +0,0 @@
-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'



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/ruby-mocha/-/commit/83c1f28aafda9a48fc73956772d6243c456fe920

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/ruby-mocha/-/commit/83c1f28aafda9a48fc73956772d6243c456fe920
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to