Module: Howitzer

Defined in:
lib/howitzer.rb,
lib/howitzer/log.rb,
lib/howitzer/web.rb,
lib/howitzer/cache.rb,
lib/howitzer/email.rb,
lib/howitzer/utils.rb,
lib/howitzer/version.rb,
lib/howitzer/web/page.rb,
lib/howitzer/exceptions.rb,
lib/howitzer/mailgun_api.rb,
lib/howitzer/web/section.rb,
lib/howitzer/web/page_dsl.rb,
lib/howitzer/mail_adapters.rb,
lib/howitzer/web/blank_page.rb,
lib/howitzer/web/iframe_dsl.rb,
lib/howitzer/web/element_dsl.rb,
lib/howitzer/web/section_dsl.rb,
lib/howitzer/capybara_helpers.rb,
lib/howitzer/web/base_section.rb,
lib/howitzer/mailgun_api/client.rb,
lib/howitzer/web/page_validator.rb,
lib/howitzer/mailgun_api/response.rb,
lib/howitzer/mail_adapters/mailgun.rb,
lib/howitzer/mailgun_api/connector.rb,
lib/howitzer/mail_adapters/abstract.rb,
lib/howitzer/utils/string_extensions.rb,
lib/howitzer/web/capybara_context_holder.rb,
lib/howitzer/web/capybara_methods_proxy.rb

Overview

:nocov:

Defined Under Namespace

Modules: Cache, CapybaraHelpers, MailAdapters, MailgunApi, Utils, Web Classes: Email, Log

Constant Summary collapse

VERSION =

:nodoc:

'2.0.3'.freeze
CommunicationError =

:nodoc:

Class.new(StandardError)
ParseError =

:nodoc:

Class.new(StandardError)
InvalidApiKeyError =

:nodoc:

Class.new(StandardError)
BadElementParamsError =

:nodoc:

Class.new(StandardError)
NoValidationError =

:nodoc:

Class.new(StandardError)
UnknownValidationError =

:nodoc:

Class.new(StandardError)
EmailNotFoundError =

:nodoc:

Class.new(StandardError)
NoAttachmentsError =

:nodoc:

Class.new(StandardError)
DriverNotSpecifiedError =

:nodoc:

Class.new(StandardError)
UnknownDriverError =

:nodoc:

Class.new(StandardError)
CloudBrowserNotSpecifiedError =

:nodoc:

Class.new(StandardError)
SelBrowserNotSpecifiedError =

:nodoc:

Class.new(StandardError)
UnknownBrowserError =

:nodoc:

Class.new(StandardError)
IncorrectPageError =

:nodoc:

Class.new(StandardError)
AmbiguousPageMatchingError =

:nodoc:

Class.new(StandardError)
NoMailAdapterError =

:nodoc:

Class.new(StandardError)
NoPathForPageError =

:nodoc:

Class.new(StandardError)
NoEmailSubjectError =

:nodoc:

Class.new(StandardError)
NoDataError =

:nodoc:

Class.new(StandardError)
UndefinedElementError =

:nodoc:

Class.new(StandardError)

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.current_rake_taskObject

Returns the value of attribute current_rake_task


30
31
32
# File 'lib/howitzer.rb', line 30

def current_rake_task
  @current_rake_task
end

Class Method Details

.app_uriObject

Returns an application uri

Examples:

returns url with auth

app_uri.site

returns url without auth

app_uri.origin

40
41
42
43
44
45
46
47
# File 'lib/howitzer.rb', line 40

def self.app_uri
  ::Addressable::URI.new(
    user: Howitzer.,
    password: Howitzer.app_base_auth_pass,
    host: Howitzer.app_host,
    scheme: Howitzer.app_protocol || 'http'
  )
end

.mailgun_idle_timeoutObject

Deprecated.

25
26
27
28
# File 'lib/howitzer.rb', line 25

def mailgun_idle_timeout
  puts "WARNING! 'mailgun_idle_timeout' setting is deprecated. Please replace with 'mail_wait_time' setting."
  ::SexySettings::Base.instance.all['mailgun_idle_timeout']
end