Skip to content

Commit bed395c

Browse files
alikingtitusfortner
authored andcommitted
[rb] change File#expand_path to File#realpath for gemspec paths to address issues with symlinks
Signed-off-by: Titus Fortner <titusfortner@gmail.com>
1 parent 4aebb3a commit bed395c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

rb/selenium-webdriver.gemspec

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# -*- encoding: utf-8 -*-
22

3-
root = File.expand_path(File.dirname(__FILE__))
4-
raise "cwd must be #{root} when reading gemspec" if root != Dir.pwd
3+
root = File.realpath(File.dirname(__FILE__))
4+
cwd = File.realpath(Dir.pwd)
5+
raise "cwd(#{cwd}) must be #{root} when reading gemspec" if root != cwd
56

67
Gem::Specification.new do |s|
78
s.name = 'selenium-webdriver'

0 commit comments

Comments
 (0)