Skip to content

Commit

Permalink
Refactor gemspec files to include just the necessary (ruby-grape#907)
Browse files Browse the repository at this point in the history
* Refactor gemspec files to include just the necessary

* Revert LOAD_PATH

* Replace MD Files by *.md

* Use require_relative to load version
  • Loading branch information
ericproulx authored Oct 22, 2023
1 parent a56b56a commit c4c2dea
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions grape-swagger.gemspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# frozen_string_literal: true

$LOAD_PATH.push File.expand_path('lib', __dir__)
require 'grape-swagger/version'
require_relative 'lib/grape-swagger/version'

Gem::Specification.new do |s|
s.name = 'grape-swagger'
Expand All @@ -18,6 +17,6 @@ Gem::Specification.new do |s|
s.required_ruby_version = '>= 2.7'
s.add_runtime_dependency 'grape', '~> 1.3'

s.files = `git ls-files`.split("\n")
s.files = Dir['lib/**/*', '*.md', 'LICENSE.txt', 'grape-swagger.gemspec']
s.require_paths = ['lib']
end

0 comments on commit c4c2dea

Please sign in to comment.