caseblocks_api 0.2.18 → 0.2.19

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "caseblocks_api"
8
- s.version = "0.2.18"
8
+ s.version = "0.2.19"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Mark Provan", "Stewart McKee"]
@@ -36,6 +36,7 @@ module CaseblocksAPI
36
36
  response_hash = {:body => response.body, :code => response.code, :message => response.message, :headers => response.headers.inspect}
37
37
  raise CaseblocksAPI::CaseCreationError.new("Unable to create case - received response code #{response.code}", response_hash)
38
38
  end
39
+ response
39
40
  end
40
41
 
41
42
  def find_or_create_case(params, case_type=nil)
@@ -44,9 +45,8 @@ module CaseblocksAPI
44
45
  if response.code != 201
45
46
  response_hash = {:body => response.body, :code => response.code, :message => response.message, :headers => response.headers.inspect}
46
47
  raise CaseblocksAPI::CaseCreationError.new("Unable to create case - received response code #{response.code}", response_hash)
47
- else
48
- return response["message"]
49
48
  end
49
+ response
50
50
  end
51
51
 
52
52
  def create_message(params)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caseblocks_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.18
4
+ version: 0.2.19
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: