lib/capybara/screenshot/diff/os.rb in capybara-screenshot-diff-1.3.1 vs lib/capybara/screenshot/diff/os.rb in capybara-screenshot-diff-1.4.0
- old
+ new
@@ -1,19 +1,19 @@
# frozen_string_literal: true
module Capybara
module Screenshot
module Os
- ON_WINDOWS = !!(RbConfig::CONFIG['host_os'] =~ /mswin|mingw|cygwin/)
- ON_MAC = !!(RbConfig::CONFIG['host_os'] =~ /darwin/)
- ON_LINUX = !!(RbConfig::CONFIG['host_os'] =~ /linux/)
+ ON_WINDOWS = !!(RbConfig::CONFIG["host_os"] =~ /mswin|mingw|cygwin/)
+ ON_MAC = !!(RbConfig::CONFIG["host_os"] =~ /darwin/)
+ ON_LINUX = !!(RbConfig::CONFIG["host_os"] =~ /linux/)
def os_name
- return 'windows' if ON_WINDOWS
- return 'macos' if ON_MAC
- return 'linux' if ON_LINUX
+ return "windows" if ON_WINDOWS
+ return "macos" if ON_MAC
+ return "linux" if ON_LINUX
- 'unknown'
+ "unknown"
end
end
end
end