archrelease: copy trunk to community-any
[ArchLinux/community.git] / ruby-mocha / repos / community-any / disable-rubocop.patch
blobc5759035421a9bbe099500e4671d838ae91c3b4c
1 diff --git a/Gemfile b/Gemfile
2 index e066639..3270b20 100644
3 --- a/Gemfile
4 +++ b/Gemfile
5 @@ -2,15 +2,7 @@ source 'https://rubygems.org'
7 gemspec
9 -# rubocop:disable Bundler/DuplicatedGem
10 -if RUBY_VERSION < '2'
11 - gem 'rake', '~> 12.2.1'
12 -elsif RUBY_VERSION < '2.2'
13 - gem 'rake', '~> 12.3.3'
14 -else
15 - gem 'rake'
16 -end
17 -# rubocop:enable Bundler/DuplicatedGem
18 +gem 'rake'
20 gem 'introspection', '~> 0.0.1'
22 @@ -23,10 +15,3 @@ if RUBY_VERSION >= '2.2.0'
23 # No test libraries in standard library
24 gem 'minitest'
25 end
26 -if RUBY_VERSION >= '2.2.0'
27 - gem 'rubocop', '<= 0.58.2'
28 -end
29 -if ENV['MOCHA_GENERATE_DOCS']
30 - gem 'redcarpet'
31 - gem 'yard'
32 -end
33 diff --git a/Rakefile b/Rakefile
34 index 2a57d96..51f60b9 100644
35 --- a/Rakefile
36 +++ b/Rakefile
37 @@ -76,15 +76,6 @@ namespace 'test' do # rubocop:disable Metrics/BlockLength
38 end
39 end
41 -begin
42 - require 'rubocop/rake_task'
43 - if RUBY_VERSION >= '2.2.0' && (defined?(RUBY_ENGINE) && RUBY_ENGINE == 'ruby') && ENV['MOCHA_RUN_INTEGRATION_TESTS'].nil?
44 - RuboCop::RakeTask.new
45 - task 'test' => 'rubocop'
46 - end
47 -rescue LoadError # rubocop:disable Lint/HandleExceptions
48 -end
50 # rubocop:disable Metrics/CyclomaticComplexity,Metrics/PerceivedComplexity
51 def benchmark_test_case(klass, iterations)
52 require 'benchmark'