Skip to content

Commit 4227381

Browse files
committed
rb - deprecated ruby versions
1 parent d00ae13 commit 4227381

File tree

2 files changed

+14
-19
lines changed

2 files changed

+14
-19
lines changed

rb/build.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ ruby_test(name = "remote-marionette",
250250

251251
ruby_library(name = "safari",
252252
srcs = [
253-
"lib/selenium/webdriver/safari/**/* .rb",
253+
"lib/selenium/webdriver/safari/**/*.rb",
254254
"lib/selenium/webdriver/safari.rb"
255255
],
256256
deps = [":common"],

rb/lib/selenium/webdriver/common/platform.rb

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,8 @@ def ironruby?
9191
engine == :ironruby
9292
end
9393

94-
def ruby187?
95-
!!(RUBY_VERSION =~ /^1\.8\.7/)
96-
end
97-
98-
def ruby19?
99-
!!(RUBY_VERSION =~ /^1\.9/)
94+
def ruby_version
95+
RUBY_VERSION
10096
end
10197

10298
def windows?
@@ -230,16 +226,15 @@ def interfaces
230226
end # Selenium
231227

232228
if __FILE__ == $0
233-
p :engine => Selenium::WebDriver::Platform.engine,
234-
:os => Selenium::WebDriver::Platform.os,
235-
:ruby187? => Selenium::WebDriver::Platform.ruby187?,
236-
:ruby19? => Selenium::WebDriver::Platform.ruby19?,
237-
:jruby? => Selenium::WebDriver::Platform.jruby?,
238-
:windows? => Selenium::WebDriver::Platform.windows?,
239-
:home => Selenium::WebDriver::Platform.home,
240-
:bitsize => Selenium::WebDriver::Platform.bitsize,
241-
:localhost => Selenium::WebDriver::Platform.localhost,
242-
:ip => Selenium::WebDriver::Platform.ip,
243-
:interfaces => Selenium::WebDriver::Platform.interfaces,
244-
:null_device => Selenium::WebDriver::Platform.null_device
229+
p :engine => Selenium::WebDriver::Platform.engine,
230+
:os => Selenium::WebDriver::Platform.os,
231+
:ruby_version => Selenium::WebDriver::Platform.ruby_version,
232+
:jruby? => Selenium::WebDriver::Platform.jruby?,
233+
:windows? => Selenium::WebDriver::Platform.windows?,
234+
:home => Selenium::WebDriver::Platform.home,
235+
:bitsize => Selenium::WebDriver::Platform.bitsize,
236+
:localhost => Selenium::WebDriver::Platform.localhost,
237+
:ip => Selenium::WebDriver::Platform.ip,
238+
:interfaces => Selenium::WebDriver::Platform.interfaces,
239+
:null_device => Selenium::WebDriver::Platform.null_device
245240
end

0 commit comments

Comments
 (0)