lib/interpol/stub_app.rb in interpol-0.3.5 vs lib/interpol/stub_app.rb in interpol-0.3.6

- old
+ new

@@ -21,13 +21,14 @@ def initialize(config) builder = self @config = config @app = ::Sinatra.new do - set :stub_app_builder, builder - not_found { JSON.dump(:error => "The requested resource could not be found") } - before { content_type "application/json;charset=utf-8" } - get('/__ping') { JSON.dump(:message => "Interpol stub app running.") } + set :stub_app_builder, builder + not_found { JSON.dump(:error => "The requested resource could not be found") } + before { content_type "application/json;charset=utf-8" } + before('/__ping') { skip_param_parsing! if respond_to?(:skip_param_parsing!) } + get('/__ping') { JSON.dump(:message => "Interpol stub app running.") } def self.name "Interpol::StubApp (anonymous)" end end