Refactor gemspec files to include just the necessary (#907)

* Refactor gemspec files to include just the necessary

* Revert LOAD_PATH

* Replace MD Files by *.md

* Use require_relative to load version
This commit is contained in:
Eric Proulx 2023-10-22 14:58:16 +02:00 committed by GitHub
parent a56b56aaf1
commit c4c2dead28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -1,7 +1,6 @@
# frozen_string_literal: true # frozen_string_literal: true
$LOAD_PATH.push File.expand_path('lib', __dir__) require_relative 'lib/grape-swagger/version'
require 'grape-swagger/version'
Gem::Specification.new do |s| Gem::Specification.new do |s|
s.name = 'grape-swagger' s.name = 'grape-swagger'
@ -18,6 +17,6 @@ Gem::Specification.new do |s|
s.required_ruby_version = '>= 2.7' s.required_ruby_version = '>= 2.7'
s.add_runtime_dependency 'grape', '~> 1.3' 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'] s.require_paths = ['lib']
end end