Module: Calligraphy
- Defined in:
- lib/calligraphy.rb,
lib/calligraphy/utils.rb,
lib/calligraphy/version.rb,
lib/calligraphy/xml/node.rb,
lib/calligraphy/xml/utils.rb,
lib/calligraphy/xml/builder.rb,
lib/calligraphy/xml/namespace.rb,
lib/calligraphy/resource/resource.rb,
lib/calligraphy/web_dav_request/get.rb,
lib/calligraphy/web_dav_request/put.rb,
lib/calligraphy/web_dav_request/copy.rb,
lib/calligraphy/web_dav_request/lock.rb,
lib/calligraphy/web_dav_request/move.rb,
lib/calligraphy/xml/web_dav_elements.rb,
lib/calligraphy/rails/web_dav_methods.rb,
lib/calligraphy/web_dav_request/mkcol.rb,
lib/calligraphy/resource/file_resource.rb,
lib/calligraphy/web_dav_request/delete.rb,
lib/calligraphy/web_dav_request/unlock.rb,
lib/calligraphy/web_dav_request/propfind.rb,
lib/calligraphy/web_dav_request/proppatch.rb,
lib/calligraphy/rails/web_dav_preconditions.rb,
lib/generators/calligraphy/install_generator.rb,
lib/calligraphy/web_dav_request/web_dav_request.rb,
lib/calligraphy/rails/web_dav_requests_controller.rb
Overview
:nodoc:
Defined Under Namespace
Modules: Generators, Rails, Utils, XML Classes: Copy, Delete, FileResource, Get, Lock, Mkcol, Move, Propfind, Proppatch, Put, Resource, Unlock, WebDavRequest
Constant Summary collapse
- DAV_NS =
Constants used throughout Calligraphy.
'DAV:'
- DAV_NO_LOCK_REGEX =
/DAV:no-lock/i
- DAV_NOT_NO_LOCK_REGEX =
/Not\s+<DAV:no-lock>/i
- ETAG_IF_REGEX =
/\[(.+?)\]/
- INFINITY =
1.0 / 0.0
- LOCK_TOKEN_ANGLE_REGEX =
/[<>]/
- LOCK_TOKEN_REGEX =
/<(urn:uuid:.+?)>/
- RESOURCE_REGEX =
/^<+(.+?)>\s/
- TAGGED_LIST_REGEX =
/\)\s</
- UNTAGGAGED_LIST_REGEX =
/\)\s\(/
- VERSION =
'0.3.1'
- @@allowed_http_methods =
%w[ options get put delete copy move mkcol propfind proppatch lock unlock ]
- @@digest_password_procedure =
proc { |_username| 'changeme!' }
- @@enable_digest_authentication =
false
- @@http_authentication_realm =
'Application'
- @@lock_timeout_period =
86_400
- @@web_dav_actions =
%i[ options get put delete copy move mkcol propfind proppatch lock unlock ]
Class Method Summary collapse
-
.configure {|_self| ... } ⇒ Object
Default way to set up Calligraphy.
Class Method Details
.configure {|_self| ... } ⇒ Object
Default way to set up Calligraphy. Run ‘rails generate calligraphy:install` to generate a fresh initializer with all configuration values.
81 82 83 |
# File 'lib/calligraphy.rb', line 81 def self.configure yield self end |