lib/active_spy.rb in active_spy-1.1.0 vs lib/active_spy.rb in active_spy-1.1.1

- old
+ new

@@ -30,10 +30,11 @@ host = ActiveSpy::Configuration.event_host port = ActiveSpy::Configuration.event_port @@base_url = "#{host}:#{port}/services" return if self.service_registered? - RestClient.post(@@base_url, service: ActiveSpy::Configuration.settings) + service = { service: ActiveSpy::Configuration.settings }.to_json + RestClient.post(@@base_url, service.to_json, content_type: :json) end # @!method self.service_registered? # Check if the service was already registetered in the configured event # runner instance.