diff --git a/lib/calligraphy.rb b/lib/calligraphy.rb index 96b567c..09d53cc 100644 --- a/lib/calligraphy.rb +++ b/lib/calligraphy.rb @@ -23,35 +23,54 @@ require 'calligraphy/put' require 'calligraphy/unlock' module Calligraphy + # Constants used throughout Calligraphy. DAV_NS = 'DAV:' DAV_NO_LOCK_REGEX = /DAV:no-lock/i DAV_NOT_NO_LOCK_REGEX = /Not\s+/i ETAG_IF_REGEX = /\[(.+?)\]/ + INFINITY = 1.0 / 0.0 unless defined? INFINITY LOCK_TOKEN_ANGLE_REGEX = /[<>]/ LOCK_TOKEN_REGEX = /<(urn:uuid:.+?)>/ RESOURCE_REGEX = /^<+(.+?)>\s/ TAGGED_LIST_REGEX = /\)\s