From f06bc66e3ce6fa4c0cf4166a2ccc45d60bcf592d Mon Sep 17 00:00:00 2001 From: Dan Janowski Date: Wed, 13 Mar 2013 21:51:37 -0700 Subject: [PATCH 1/2] add WasCreated type --- .gitignore | 2 ++ lib/neography/connection.rb | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) 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 From 845df3ebbfd6b1b5e8668cb9ca32e1f93caaffe3 Mon Sep 17 00:00:00 2001 From: Dan Janowski Date: Fri, 15 Mar 2013 10:09:57 -0700 Subject: [PATCH 2/2] letter version --- lib/neography/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/neography/version.rb b/lib/neography/version.rb index 152377b..aafe834 100644 --- a/lib/neography/version.rb +++ b/lib/neography/version.rb @@ -1,3 +1,3 @@ module Neography - VERSION = "1.0.7" + VERSION = "1.0.7a" end