Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
issue #481: use __dir__ instead of __FILE__
  • Loading branch information
ColinDKelley authored and ioquatix committed Sep 16, 2020
1 parent 82523cd commit 1e90867
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion listen.gemspec
@@ -1,5 +1,5 @@
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
lib = File.expand_path('lib', __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'listen/version'

Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Expand Up @@ -12,7 +12,7 @@ def ci?
Coveralls.wear!
end

Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
Dir["#{__dir__}/support/**/*.rb"].each { |f| require f }

# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
RSpec.configure do |config|
Expand Down

0 comments on commit 1e90867

Please sign in to comment.