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