neography 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -114,13 +114,14 @@ module Neography
114
114
  case code
115
115
  when 400, 404
116
116
  case parsed_body["exception"]
117
- when "SyntaxException" ; raise SyntaxException.new(message, code, stacktrace)
118
- when "PropertyValueException" ; raise PropertyValueException.new(message, code, stacktrace)
119
- when "BadInputException" ; raise BadInputException.new(message, code, stacktrace)
120
- when "NodeNotFoundException" ; raise NodeNotFoundException.new(message, code, stacktrace)
121
- when "NoSuchPropertyException" ; raise NoSuchPropertyException.new(message, code, stacktrace)
122
- when "RelationshipNotFoundException" ; raise RelationshipNotFoundException.new(message, code, stacktrace)
123
- when "NotFoundException" ; raise NotFoundException.new(message, code, stacktrace)
117
+ when /SyntaxException/ ; raise SyntaxException.new(message, code, stacktrace)
118
+ when /this is not a query/ ; raise SyntaxException.new(message, code, stacktrace)
119
+ when /PropertyValueException/ ; raise PropertyValueException.new(message, code, stacktrace)
120
+ when /BadInputException/ ; raise BadInputException.new(message, code, stacktrace)
121
+ when /NodeNotFoundException/ ; raise NodeNotFoundException.new(message, code, stacktrace)
122
+ when /NoSuchPropertyException/ ; raise NoSuchPropertyException.new(message, code, stacktrace)
123
+ when /RelationshipNotFoundException/ ; raise RelationshipNotFoundException.new(message, code, stacktrace)
124
+ when /NotFoundException/ ; raise NotFoundException.new(message, code, stacktrace)
124
125
  else
125
126
  raise NeographyError.new(message, code, stacktrace)
126
127
  end
@@ -1,3 +1,3 @@
1
1
  module Neography
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neography
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-03 00:00:00.000000000 Z
12
+ date: 2012-10-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec