converse 1.0.24 → 1.0.25

Sign up to get free protection for your applications and to get access to all the features.
@@ -51,5 +51,13 @@ module Converse
51
51
  def format_response(response_body)
52
52
  response_body
53
53
  end
54
+
55
+ def is_json
56
+ begin
57
+ JSON.parse(@validation)
58
+ rescue TypeError
59
+ raise ArgumentError, "#{@validation} is not in JSON format"
60
+ end
61
+ end
54
62
  end
55
63
  end
@@ -1,3 +1,3 @@
1
1
  module Converse
2
- VERSION = "1.0.24"
2
+ VERSION = "1.0.25"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: converse
3
3
  version: !ruby/object:Gem::Version
4
- hash: 39
4
+ hash: 37
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 24
10
- version: 1.0.24
9
+ - 25
10
+ version: 1.0.25
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ernst van Graan