Skip to content

Commit

Permalink
rb - deprecated ruby versions
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Jun 9, 2016
1 parent d00ae13 commit 4227381
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 19 deletions.
2 changes: 1 addition & 1 deletion rb/build.desc
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ ruby_test(name = "remote-marionette",

ruby_library(name = "safari",
srcs = [
"lib/selenium/webdriver/safari/**/* .rb",
"lib/selenium/webdriver/safari/**/*.rb",
"lib/selenium/webdriver/safari.rb"
],
deps = [":common"],
Expand Down
31 changes: 13 additions & 18 deletions rb/lib/selenium/webdriver/common/platform.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,8 @@ def ironruby?
engine == :ironruby
end

def ruby187?
!!(RUBY_VERSION =~ /^1\.8\.7/)
end

def ruby19?
!!(RUBY_VERSION =~ /^1\.9/)
def ruby_version
RUBY_VERSION
end

def windows?
Expand Down Expand Up @@ -230,16 +226,15 @@ def interfaces
end # Selenium

if __FILE__ == $0
p :engine => Selenium::WebDriver::Platform.engine,
:os => Selenium::WebDriver::Platform.os,
:ruby187? => Selenium::WebDriver::Platform.ruby187?,
:ruby19? => Selenium::WebDriver::Platform.ruby19?,
:jruby? => Selenium::WebDriver::Platform.jruby?,
:windows? => Selenium::WebDriver::Platform.windows?,
:home => Selenium::WebDriver::Platform.home,
:bitsize => Selenium::WebDriver::Platform.bitsize,
:localhost => Selenium::WebDriver::Platform.localhost,
:ip => Selenium::WebDriver::Platform.ip,
:interfaces => Selenium::WebDriver::Platform.interfaces,
:null_device => Selenium::WebDriver::Platform.null_device
p :engine => Selenium::WebDriver::Platform.engine,
:os => Selenium::WebDriver::Platform.os,
:ruby_version => Selenium::WebDriver::Platform.ruby_version,
:jruby? => Selenium::WebDriver::Platform.jruby?,
:windows? => Selenium::WebDriver::Platform.windows?,
:home => Selenium::WebDriver::Platform.home,
:bitsize => Selenium::WebDriver::Platform.bitsize,
:localhost => Selenium::WebDriver::Platform.localhost,
:ip => Selenium::WebDriver::Platform.ip,
:interfaces => Selenium::WebDriver::Platform.interfaces,
:null_device => Selenium::WebDriver::Platform.null_device
end

0 comments on commit 4227381

Please sign in to comment.