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

Reduce gem size #633

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
5 changes: 2 additions & 3 deletions auth0.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ Gem::Specification.new do |s|
s.summary = 'Auth0 API Client'
s.description = 'Ruby toolkit for Auth0 API https://auth0.com.'

s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
s.files = `git ls-files -z -- LICENSE README.md lib`.split("\x0")
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LICENSE README.md lib is a discussion point. Please let me know if you want to change.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For example, including EXAMPLES.md may make sense:

Suggested change
s.files = `git ls-files -z -- LICENSE README.md lib`.split("\x0")
s.files = `git ls-files -z -- EXAMPLES.md LICENSE README.md lib`.split("\x0")

s.executables = s.files.grep(%r{^bin/}).map { |f| File.basename(f) }
s.require_paths = ['lib']

s.add_runtime_dependency 'rest-client', '~> 2.1'
Expand Down