Module: Rubium

Defined in:
lib/rubium.rb,
lib/rubium/browser.rb,
lib/rubium/version.rb

Defined Under Namespace

Classes: Browser

Constant Summary collapse

DEFAULT_PUPPETEER_ARGS =
%w(
  --disable-background-networking
  --disable-background-timer-throttling
  --disable-backgrounding-occluded-windows
  --disable-breakpad
  --disable-client-side-phishing-detection
  --disable-default-apps
  --disable-dev-shm-usage
  --disable-extensions
  --disable-features=site-per-process
  --disable-hang-monitor
  --disable-ipc-flooding-protection
  --disable-popup-blocking
  --disable-prompt-on-repost
  --disable-renderer-backgrounding
  --disable-sync
  --disable-translate
  --metrics-recording-only
  --no-first-run
  --safebrowsing-disable-auto-update
  --enable-automation
  --password-store=basic
  --use-mock-keychain
  --hide-scrollbars
  --mute-audio
  --no-sandbox
  --disable-infobars
  --disable-blink-features=AutomationControlled
).freeze
VERSION =
"0.3.0"

Class Method Summary collapse

Class Method Details

.configurationObject



36
37
38
# File 'lib/rubium.rb', line 36

def self.configuration
  @configuration ||= OpenStruct.new
end

.configure {|configuration| ... } ⇒ Object

Yields:



40
41
42
# File 'lib/rubium.rb', line 40

def self.configure
  yield(configuration)
end