Skip to content

Commit f09c045

Browse files
author
Antono Vasiljev
committed
Fix version parsing for phantomjs 1.5 (development)
1 parent 35ad652 commit f09c045

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: lib/guard/jasmine.rb

+2
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,8 @@ def jasmine_runner_available?(url)
178178
def phantomjs_bin_valid?(bin)
179179
if bin && !bin.empty?
180180
version = `#{ bin } --version`
181+
# remove all but version from "1.5 (development)"
182+
version = version.match(/(\d\.\d)/)[0]
181183

182184
if !version
183185
notify_failure('PhantomJS executable missing', "PhantomJS executable doesn't exist at #{ bin }")

0 commit comments

Comments
 (0)