Sha256: 9e71e229b27946933b760dd19264211edeb20a258f7c299602b31152fe8a1645
Contents?: true
Size: 805 Bytes
Versions: 3
Compression:
Stored size: 805 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 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ldp-0.0.6 | lib/ldp.rb |
ldp-0.0.5 | lib/ldp.rb |
ldp-0.0.4 | lib/ldp.rb |