lib/skylight/probes/grape.rb in skylight-1.6.1 vs lib/skylight/probes/grape.rb in skylight-1.7.0
- old
+ new
@@ -3,15 +3,17 @@
module Grape
class Probe
def install
version = Gem::Version.new(::Grape::VERSION)
- if version > Gem::Version.new("0.12.1")
+ if version >= Gem::Version.new("0.13.0")
# AS::N is built in to newer versions
return
end
+ Skylight::DEPRECATOR.deprecation_warning("Support for Grape versions before 0.13.0")
+
if version < Gem::Version.new("0.10.0")
# Using $stderr here isn't great, but we don't have a logger accessible
$stderr.puts "[SKYLIGHT] [#{Skylight::VERSION}] The Grape probe only works with version 0.10.0+ " \
"and will be disabled."
@@ -79,8 +81,8 @@
end
end
end
end
- register("Grape::Endpoint", "grape/endpoint", Grape::Probe.new)
+ register(:grape, "Grape::Endpoint", "grape/endpoint", Grape::Probe.new)
end
end
\ No newline at end of file