Sha256: 49acec1f9e11490f281294d8c9f117461cb8c522ac1d95004b9800fb815e2084
Contents?: true
Size: 935 Bytes
Versions: 2
Compression:
Stored size: 935 Bytes
Contents
require 'ldp/version' require 'linkeddata' require 'logger' require 'http_logger' module Ldp RDF::Graph.send(:include, RDF::Isomorphic) require 'ldp/client' require 'ldp/uri' extend Uri autoload :Response, 'ldp/response' autoload :Resource, 'ldp/resource' autoload :Container, 'ldp/container' autoload :Orm, 'ldp/orm' class HttpError < RuntimeError; end class NotFound < HttpError; end # 404 class Gone < HttpError; end # 410 class EtagMismatch < HttpError; end # 412 class UnexpectedContentType < RuntimeError; end class << self def logger @logger ||= Logger.new(STDOUT).tap do |log| log.level = Logger::WARN end end def instrument *args, &block if defined?(::ActiveSupport) && defined?(::ActiveSupport::Notifications) ActiveSupport::Notifications.instrument *args, &block else yield end end attr_writer :logger end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ldp-0.0.10 | lib/ldp.rb |
ldp-0.0.9 | lib/ldp.rb |