Module: Riddl

Defined in:
lib/ruby/riddl/error.rb,
lib/ruby/riddl/roles.rb,
lib/ruby/riddl/client.rb,
lib/ruby/riddl/header.rb,
lib/ruby/riddl/option.rb,
lib/ruby/riddl/server.rb,
lib/ruby/riddl/wrapper.rb,
lib/ruby/riddl/wrapper.rb,
lib/ruby/riddl/handlers.rb,
lib/ruby/riddl/constants.rb,
lib/ruby/riddl/parameter.rb,
lib/ruby/riddl/commonlogger.rb,
lib/ruby/riddl/utils/turtle.rb,
lib/ruby/riddl/protocols/sse.rb,
lib/ruby/riddl/handlers/oauth.rb,
lib/ruby/riddl/implementation.rb,
lib/ruby/riddl/utils/erbserve.rb,
lib/ruby/riddl/utils/xmlserve.rb,
lib/ruby/riddl/protocols/utils.rb,
lib/ruby/riddl/utils/fileserve.rb,
lib/ruby/riddl/handlers/relaxng.rb,
lib/ruby/riddl/utils/docoverlay.rb,
lib/ruby/riddl/utils/properties.rb,
lib/ruby/riddl/utils/xsloverlay.rb,
lib/ruby/riddl/utils/description.rb,
lib/ruby/riddl/utils/downloadify.rb,
lib/ruby/riddl/handlers/xmlschema.rb,
lib/ruby/riddl/handlers/plain-type.rb,
lib/ruby/riddl/protocols/websocket.rb,
lib/ruby/riddl/utils/oauth2-helper.rb,
lib/ruby/riddl/utils/oauth2-univie.rb,
lib/ruby/riddl/wrapper/declaration.rb,
lib/ruby/riddl/wrapper/description.rb,
lib/ruby/riddl/wrapper/layerchecker.rb,
lib/ruby/riddl/protocols/http/parser.rb,
lib/ruby/riddl/wrapper/messageparser.rb,
lib/ruby/riddl/wrapper/resourcechecker.rb,
lib/ruby/riddl/protocols/http/generator.rb,
lib/ruby/riddl/wrapper/declaration/tile.rb,
lib/ruby/riddl/wrapper/declaration/facade.rb,
lib/ruby/riddl/wrapper/description/access.rb,
lib/ruby/riddl/utils/notifications_producer.rb,
lib/ruby/riddl/wrapper/description/resource.rb,
lib/ruby/riddl/wrapper/declaration/interface.rb,
lib/ruby/riddl/roles/http%3A%2F%2Foauth.net%2F1.0/base.rb,
lib/ruby/riddl/roles/http%3A%2F%2Foauth.net%2F1.0%2Fon_behalf.rb,
lib/ruby/riddl/wrapper/description/message_and_transformation.rb,
lib/ruby/riddl/roles/http%3A%2F%2Foauth.net%2F1.0%2Faccess_token.rb,
lib/ruby/riddl/roles/http%3A%2F%2Foauth.net%2F1.0%2Frequest_token.rb

Defined Under Namespace

Modules: Handlers, Parameter, Protocols, Roles, Utils Classes: BlockError, Client, CommonLogger, ConnectionError, Header, Implementation, InputError, Option, OutputError, PathError, SSEImplementation, Server, SpecificationError, URIError, WebSocketImplementation, Wrapper

Constant Summary collapse

RIDDL_URL_PATTERN =

URL PATTERN {{{

%r{
  \A

  # protocol identifier
  (?:(?!(?i:file://))[a-zA-Z_-]+://)

  # user:pass authentication
  (?:\S+(?::\S*)?@)?

  (?:
    # IP address dotted notation octets
    # excludes loopback network 0.0.0.0
    # excludes reserved space >= 224.0.0.0
    # excludes network & broacast addresses
    # (first & last IP address of each class)
    (?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])
    (?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}
    (?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))
  |
    # host name
    (?:(?:[a-z\u00a1-\uffff0-9]+-?)*[a-z\u00a1-\uffff0-9]+)

    # domain name
    (?:\.(?:[a-z\u00a1-\uffff0-9]+-?)*[a-z\u00a1-\uffff0-9]+)*

    # TLD identifier
    (?:\.(?:[a-z\u00a1-\uffff]{2,}))
  |
    localhost
  )

  # port number
  (?::\d{2,5})?

  # resource path
  (?:/[^\s]*)?

  \z
}xi
BOUNDARY =
'Time_is_an_illusion._Lunchtime_doubly_so.0xriddldata'.freeze
EOL =
"\r\n".freeze
D =
'&;'.freeze