lib/puppeteer/env.rb in puppeteer-ruby-0.0.18 vs lib/puppeteer/env.rb in puppeteer-ruby-0.0.19
- old
+ new
@@ -7,9 +7,14 @@
end
def ci?
['1', 'true'].include?(ENV['CI'].to_s)
end
+
+ # check if running on macOS
+ def darwin?
+ RUBY_PLATFORM.include?('darwin')
+ end
end
class Puppeteer
def self.env
Puppeteer::Env.new