We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0bd2896 commit 55aef3fCopy full SHA for 55aef3f
ikazuchi.gemspec
@@ -1,4 +1,4 @@
1
-lib = File.expand_path('../lib', __FILE__)
+lib = File.expand_path('lib', __dir__)
2
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
require 'ikazuchi/version'
4
require 'ikazuchi/definition'
lib/ikazuchi/definition.rb
@@ -2,11 +2,11 @@
module Ikazuchi
class Definition
def root
5
- @root ||= File.expand_path '../../../', __FILE__
+ @root ||= File.expand_path '../..', __dir__
6
end
7
8
def gemfile
9
- @gemfile ||= File.expand_path '../Gemfile', __FILE__
+ @gemfile ||= File.expand_path 'Gemfile', __dir__
10
11
12
def definition
0 commit comments