Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modernize gemspec & remove unnecessary files to reduce size #231

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions rails-footnotes.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ require_relative "./lib/rails-footnotes/version"
Gem::Specification.new do |s|
s.name = "rails-footnotes"
s.version = Footnotes::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ["Roman V. Babenko", "José Valim", "Keenan Brock", "Duane Johnson", "Adrien Siami", "André Arko"]
s.email = ["[email protected]"]
s.homepage = "http://github.com/indirect/rails-footnotes"
Expand All @@ -13,7 +12,13 @@ Gem::Specification.new do |s|
s.add_dependency "rails", "~> 7.0"
s.required_ruby_version = ">= 3.0"

s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
# Specify which files should be added to the gem when it is released.
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
s.files =
IO.popen(["git", "-C", __dir__, "ls-files", "-z", "--", "exe/", "lib/", "*.md", "*.txt", "CHANGELOG", "*LICENSE"], &:read).split("\x0")
.reject do |f|
(File.expand_path(f) == __FILE__) ||
f.start_with?(*%w[bin/ test/ spec/ features/ .git .github appveyor Gemfile Rakefile tasks/])
end
s.require_paths = ["lib"]
end