Skip to content

Commit 0378840

Browse files
committed
Fixed Rubocop version in gemfile
Ran appraisal clean Ran appraisal generate Re-ran rubocop Put back rack1 and rack2 gemfile I followed the naming convention of Appraisals Added autogen appraisals file
1 parent af3b5f9 commit 0378840

13 files changed

+95
-23
lines changed

.rubocop_todo.yml

+1-8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This configuration was generated by
22
# `rubocop --auto-gen-config`
3-
# on 2020-03-01 23:02:40 +0100 using RuboCop version 0.80.1.
3+
# on 2020-03-02 11:38:28 +0100 using RuboCop version 0.80.1.
44
# The point is for the user to remove these configuration records
55
# one by one as the offenses are removed from the code base.
66
# Note that changes in the inspected code, or installation of new
@@ -112,13 +112,6 @@ Metrics/ModuleLength:
112112
Metrics/PerceivedComplexity:
113113
Max: 14
114114

115-
# Offense count: 1
116-
# Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts, AllowedAcronyms.
117-
# AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS
118-
Naming/FileName:
119-
Exclude:
120-
- 'gemfiles/rack2-0.gemfile'
121-
122115
# Offense count: 3
123116
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
124117
# SupportedStylesForLeadingUnderscores: disallowed, required, optional

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ matrix:
1616
- rvm: 2.7.0
1717
gemfile: gemfiles/rack1.gemfile
1818
- rvm: 2.7.0
19-
gemfile: gemfiles/rack2-0.gemfile
19+
gemfile: gemfiles/rack2.gemfile
2020
- rvm: 2.7.0
2121
gemfile: gemfiles/rack_edge.gemfile
2222
- rvm: 2.7.0

Appraisals

+8
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,11 @@ end
1919
appraise 'multi_xml' do
2020
gem 'multi_xml', require: 'multi_xml'
2121
end
22+
23+
appraise 'rack1' do
24+
gem 'rack', '~> 1.0'
25+
end
26+
27+
appraise 'rack2' do
28+
gem 'rack', '~> 2.0'
29+
end

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#### Features
44

55
* Your contribution here.
6-
* [#2003](https://github.com/ruby-grape/grape/pull/2003): Updated rubocop - [@ericproulx](https://github.com/ericproulx).
6+
* [#2003](https://github.com/ruby-grape/grape/pull/2003): Upgraded Rubocop to 0.80.1 - [@ericproulx](https://github.com/ericproulx).
77
* [#2002](https://github.com/ruby-grape/grape/pull/2002): Objects allocation optimization (lazy_lookup) - [@ericproulx](https://github.com/ericproulx).
88

99
#### Fixes

Gemfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ group :development, :test do
1010
gem 'bundler'
1111
gem 'hashie'
1212
gem 'rake'
13-
gem 'rubocop'
14-
gem 'rubocop-performance'
13+
gem 'rubocop', '0.80.1'
14+
gem 'rubocop-performance', require: false
1515
end
1616

1717
group :development do

gemfiles/multi_json.gemfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ group :development, :test do
1010
gem 'bundler'
1111
gem 'hashie'
1212
gem 'rake'
13-
gem 'rubocop', '0.51.0'
13+
gem 'rubocop', '0.80.1'
14+
gem 'rubocop-performance', require: false
1415
end
1516

1617
group :development do

gemfiles/multi_xml.gemfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ group :development, :test do
1010
gem 'bundler'
1111
gem 'hashie'
1212
gem 'rake'
13-
gem 'rubocop', '0.51.0'
13+
gem 'rubocop', '0.80.1'
14+
gem 'rubocop-performance', require: false
1415
end
1516

1617
group :development do

gemfiles/rack1.gemfile

+34-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,38 @@
11
# frozen_string_literal: true
22

3-
eval_gemfile('../Gemfile')
3+
# This file was generated by Appraisal
4+
5+
source 'https://rubygems.org'
46

57
gem 'rack', '~> 1.0'
8+
9+
group :development, :test do
10+
gem 'bundler'
11+
gem 'hashie'
12+
gem 'rake'
13+
gem 'rubocop', '0.80.1'
14+
gem 'rubocop-performance', require: false
15+
end
16+
17+
group :development do
18+
gem 'appraisal'
19+
gem 'benchmark-ips'
20+
gem 'guard'
21+
gem 'guard-rspec'
22+
gem 'guard-rubocop'
23+
end
24+
25+
group :test do
26+
gem 'cookiejar'
27+
gem 'coveralls_reborn'
28+
gem 'danger-toc', '~> 0.1.2'
29+
gem 'grape-entity', '~> 0.6'
30+
gem 'maruku'
31+
gem 'mime-types'
32+
gem 'rack-jsonp', require: 'rack/jsonp'
33+
gem 'rack-test', '~> 1.1.0'
34+
gem 'rspec', '~> 3.0'
35+
gem 'ruby-grape-danger', '~> 0.1.0', require: false
36+
end
37+
38+
gemspec path: '../'

gemfiles/rack2-0.gemfile

-5
This file was deleted.

gemfiles/rack2.gemfile

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# frozen_string_literal: true
2+
3+
# This file was generated by Appraisal
4+
5+
source 'https://rubygems.org'
6+
7+
gem 'rack', '~> 2.0'
8+
9+
group :development, :test do
10+
gem 'bundler'
11+
gem 'hashie'
12+
gem 'rake'
13+
gem 'rubocop', '0.80.1'
14+
gem 'rubocop-performance', require: false
15+
end
16+
17+
group :development do
18+
gem 'appraisal'
19+
gem 'benchmark-ips'
20+
gem 'guard'
21+
gem 'guard-rspec'
22+
gem 'guard-rubocop'
23+
end
24+
25+
group :test do
26+
gem 'cookiejar'
27+
gem 'coveralls_reborn'
28+
gem 'danger-toc', '~> 0.1.2'
29+
gem 'grape-entity', '~> 0.6'
30+
gem 'maruku'
31+
gem 'mime-types'
32+
gem 'rack-jsonp', require: 'rack/jsonp'
33+
gem 'rack-test', '~> 1.1.0'
34+
gem 'rspec', '~> 3.0'
35+
gem 'ruby-grape-danger', '~> 0.1.0', require: false
36+
end
37+
38+
gemspec path: '../'

gemfiles/rack_edge.gemfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ group :development, :test do
1010
gem 'bundler'
1111
gem 'hashie'
1212
gem 'rake'
13-
gem 'rubocop', '0.51.0'
13+
gem 'rubocop', '0.80.1'
14+
gem 'rubocop-performance', require: false
1415
end
1516

1617
group :development do

gemfiles/rails_5.gemfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ group :development, :test do
1010
gem 'bundler'
1111
gem 'hashie'
1212
gem 'rake'
13-
gem 'rubocop', '0.51.0'
13+
gem 'rubocop', '0.80.1'
14+
gem 'rubocop-performance', require: false
1415
end
1516

1617
group :development do

gemfiles/rails_edge.gemfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ group :development, :test do
1010
gem 'bundler'
1111
gem 'hashie'
1212
gem 'rake'
13-
gem 'rubocop', '0.51.0'
13+
gem 'rubocop', '0.80.1'
14+
gem 'rubocop-performance', require: false
1415
end
1516

1617
group :development do

0 commit comments

Comments
 (0)