Skip to content

Commit 51b081c

Browse files
authored
Reduce gem size by removing test_files (spec) (#2360)
* Remove test_files Refactor files * Add CHANGELOG
1 parent 4e2a2ff commit 51b081c

File tree

3 files changed

+2
-12
lines changed

3 files changed

+2
-12
lines changed

.rubocop_todo.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,6 @@
66
# Note that changes in the inspected code, or installation of new
77
# versions of RuboCop, may require this file to be generated again.
88

9-
# Offense count: 1
10-
# This cop supports safe autocorrection (--autocorrect).
11-
# Configuration parameters: Severity, Include.
12-
# Include: **/*.gemspec
13-
Gemspec/DeprecatedAttributeAssignment:
14-
Exclude:
15-
- 'grape.gemspec'
16-
179
# Offense count: 1
1810
# This cop supports safe autocorrection (--autocorrect).
1911
# Configuration parameters: Severity, Include.

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#### Features
44

55
* [#2353](https://github.com/ruby-grape/grape/pull/2353): Added Rails 7.1 support - [@ericproulx](https://github.com/ericproulx).
6+
* [#2360](https://github.com/ruby-grape/grape/pull/2360): Reduce gem size by removing specs - [@ericproulx](https://github.com/ericproulx).
67
* Your contribution here.
78

89
#### Fixes

grape.gemspec

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,7 @@ Gem::Specification.new do |s|
2727
s.add_runtime_dependency 'rack', '>= 1.3.0'
2828
s.add_runtime_dependency 'rack-accept'
2929

30-
s.files = %w[CHANGELOG.md CONTRIBUTING.md README.md grape.png UPGRADING.md LICENSE]
31-
s.files += %w[grape.gemspec]
32-
s.files += Dir['lib/**/*']
33-
s.test_files = Dir['spec/**/*']
30+
s.files = Dir['lib/**/*', 'CHANGELOG.md', 'CONTRIBUTING.md', 'README.md', 'grape.png', 'UPGRADING.md', 'LICENSE', 'grape.gemspec']
3431
s.require_paths = ['lib']
3532
s.required_ruby_version = '>= 2.6.0'
3633
end

0 commit comments

Comments
 (0)