Sha256: f798e3f38e603d65338ae0820c1ac05f74f3622c657660c6ab868165bf950d85

Contents?: true

Size: 478 Bytes

Versions: 22

Compression:

Stored size: 478 Bytes

Contents

# frozen_string_literal: true

module CapybaraAtoms
private

  def read_atom(function)
    @atoms ||= Hash.new do |hash, key|
      hash[key] = begin
                    File.read(File.expand_path("../../atoms/#{key}.min.js", __FILE__))
                  rescue Errno::ENOENT
                    super
                  end
    end
    @atoms[function]
  end
end

::Selenium::WebDriver::Remote::Bridge.prepend CapybaraAtoms unless ENV['DISABLE_CAPYBARA_SELENIUM_OPTIMIZATIONS']

Version data entries

22 entries across 19 versions & 3 rubygems

Version Path
tdiary-5.1.3 vendor/bundle/ruby/2.7.0/gems/capybara-3.33.0/lib/capybara/selenium/patches/atoms.rb
tdiary-5.1.3 vendor/bundle/ruby/2.6.0/gems/capybara-3.32.2/lib/capybara/selenium/patches/atoms.rb
capybara-3.33.0 lib/capybara/selenium/patches/atoms.rb
tdiary-5.1.2 vendor/bundle/ruby/2.7.0/gems/capybara-3.32.2/lib/capybara/selenium/patches/atoms.rb
tdiary-5.1.2 vendor/bundle/ruby/2.6.0/gems/capybara-3.29.0/lib/capybara/selenium/patches/atoms.rb
capybara-3.32.2 lib/capybara/selenium/patches/atoms.rb
capybara-3.32.1 lib/capybara/selenium/patches/atoms.rb
capybara-3.32.0 lib/capybara/selenium/patches/atoms.rb
tdiary-5.1.1 vendor/bundle/ruby/2.6.0/gems/capybara-3.29.0/lib/capybara/selenium/patches/atoms.rb
tdiary-5.1.1 vendor/bundle/ruby/2.7.0/gems/capybara-3.31.0/lib/capybara/selenium/patches/atoms.rb
capybara-3.31.0 lib/capybara/selenium/patches/atoms.rb
capybara-3.30.0 lib/capybara/selenium/patches/atoms.rb
tdiary-5.1.0 vendor/bundle/gems/capybara-3.29.0/lib/capybara/selenium/patches/atoms.rb
chatops-rpc-0.0.2 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/capybara-3.29.0/lib/capybara/selenium/patches/atoms.rb
chatops-rpc-0.0.1 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/capybara-3.29.0/lib/capybara/selenium/patches/atoms.rb
capybara-3.29.0 lib/capybara/selenium/patches/atoms.rb
capybara-3.28.0 lib/capybara/selenium/patches/atoms.rb
capybara-3.27.0 lib/capybara/selenium/patches/atoms.rb
capybara-3.26.0 lib/capybara/selenium/patches/atoms.rb
capybara-3.25.0 lib/capybara/selenium/patches/atoms.rb