converse 1.0.19 → 1.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/converse/rest/rest_interaction.rb +13 -13
- data/lib/converse/version.rb +1 -1
- metadata +3 -3
@@ -36,21 +36,21 @@ module Converse
|
|
36
36
|
test_value = "#{response.code}"
|
37
37
|
return test_value == "200"
|
38
38
|
end
|
39
|
-
end
|
40
39
|
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
40
|
+
def interpret_conversation(response)
|
41
|
+
format_error(response) if not response_ok?(response)
|
42
|
+
return format_response(response.body)
|
43
|
+
end
|
45
44
|
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
45
|
+
def format_error(response)
|
46
|
+
result = []
|
47
|
+
result << response.code
|
48
|
+
result << response.body
|
49
|
+
return result
|
50
|
+
end
|
52
51
|
|
53
|
-
|
54
|
-
|
52
|
+
def format_response(response_body)
|
53
|
+
response_body
|
54
|
+
end
|
55
55
|
end
|
56
56
|
end
|
data/lib/converse/version.rb
CHANGED
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:
|
4
|
+
hash: 63
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 20
|
10
|
+
version: 1.0.20
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ernst van Graan
|