diff --git a/.gitignore b/.gitignore index d3e0377..2123e0a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ +TAGS +*.rbc Gemfile.lock .idea *.iml diff --git a/lib/neography/connection.rb b/lib/neography/connection.rb index 088ea94..ade4d4f 100644 --- a/lib/neography/connection.rb +++ b/lib/neography/connection.rb @@ -1,4 +1,6 @@ module Neography + module WasCreated + end class Connection USER_AGENT = "Neography/#{Neography::VERSION}" @@ -94,7 +96,9 @@ def evaluate_response(response) response.parsed_response when 201 @logger.debug "OK, created #{body}" if @log_enabled - response.parsed_response + r=response.parsed_response + r.extend(WasCreated) + r when 204 @logger.debug "OK, no content returned" if @log_enabled nil diff --git a/lib/neography/version.rb b/lib/neography/version.rb index ecbc191..4850540 100644 --- a/lib/neography/version.rb +++ b/lib/neography/version.rb @@ -1,3 +1,3 @@ module Neography - VERSION = "1.0.8" + VERSION = "1.0.9" end