Sha256: 32a227561049ff8e6ec5cb05dda79de704641bee3c9984214f9b6115a79ad192

Contents?: true

Size: 598 Bytes

Versions: 20

Compression:

Stored size: 598 Bytes

Contents

require "sapience"
require "sapience/extensions/grape/timings"
require "sapience/extensions/grape/middleware/logging"
require "sapience/extensions/grape/notifications"

module Grape
  class API
    extend Sapience::Descendants
  end
end

module Sapience
  class Grape
    UnsupportedVersion = Class.new(Exception)
    if Gem.loaded_specs["grape"].version < Gem::Version.create("0.16.2")
      fail UnsupportedVersion, "Expecting grape version >= 0.16.2"
    end
    Sapience.configure
    ::Grape::API.send(:include, Sapience::Loggable)
    Sapience::Extensions::Grape::Notifications.use
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
sapience-2.4.0 lib/sapience/grape.rb
sapience-2.3.5 lib/sapience/grape.rb
sapience-2.3.4 lib/sapience/grape.rb
sapience-2.3.3 lib/sapience/grape.rb
sapience-2.2.3 lib/sapience/grape.rb
sapience-2.2.1 lib/sapience/grape.rb
sapience-2.2.0 lib/sapience/grape.rb
sapience-2.1.0 lib/sapience/grape.rb
sapience-2.0.5 lib/sapience/grape.rb
sapience-2.0.4 lib/sapience/grape.rb
sapience-2.0.3 lib/sapience/grape.rb
sapience-2.0.2 lib/sapience/grape.rb
sapience-2.0.1 lib/sapience/grape.rb
sapience-2.0.0 lib/sapience/grape.rb
sapience-1.0.15 lib/sapience/grape.rb
sapience-1.0.14 lib/sapience/grape.rb
sapience-1.0.13 lib/sapience/grape.rb
sapience-1.0.12 lib/sapience/grape.rb
sapience-1.0.11 lib/sapience/grape.rb
sapience-1.0.10 lib/sapience/grape.rb