Skip to content

Commit deb51a1

Browse files
Export error module
1 parent 9307231 commit deb51a1

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

rest-api-generator.gemspec

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# frozen_string_literal: true
22

33
require_relative "lib/rest_api_generator/version"
4+
require_relative "lib/rest_api_generator"
45

56
Gem::Specification.new do |spec|
67
spec.name = "rest-api-generator"
@@ -20,13 +21,8 @@ Gem::Specification.new do |spec|
2021
spec.metadata["source_code_uri"] = "https://github.com/SwitchDreams/rest-api-generator"
2122
spec.metadata["changelog_uri"] = "https://github.com/SwitchDreams/rest-api-generator"
2223

23-
# Specify which files should be added to the gem when it is released.
24-
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
25-
spec.files = Dir.chdir(File.expand_path(__dir__)) do
26-
`git ls-files -z`.split("\x0").reject do |f|
27-
(f == __FILE__) || f.match(%r{\A(?:(?:test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
28-
end
29-
end
24+
spec.files = Dir["{bin,sig,lib,public}/**/*", "MIT-LICENSE", "Rakefile", "README.md", "rest-api-generator.gemspec",
25+
"Gemfile", "Gemfile.lock"]
3026
spec.bindir = "exe"
3127
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
3228
spec.require_paths = ["lib"]

0 commit comments

Comments
 (0)