Skip to content

Commit 0924b7e

Browse files
committed
♻️ Use __dir__, not File.expand_path '..', __FILE__
It's simpler and easier to read.
1 parent c5afa83 commit 0924b7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net-imap.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
2525

2626
# Specify which files should be added to the gem when it is released.
2727
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
28-
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
28+
spec.files = Dir.chdir(__dir__) do
2929
`git ls-files -z 2>/dev/null`.split("\x0")
3030
.grep_v(%r{^(\.git(ignore)?|\.mailmap|(\.github|bin|test|spec|benchmarks|features|rfcs)/)})
3131
end

0 commit comments

Comments
 (0)