chat_sdk-gchat 0.2.1 → 0.3.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0e9348ada1c09fb7faedb9198f622121d21476bf235c377db5329a0361631b9b
4
- data.tar.gz: 4c708fca555cf9518651d90950367e8807c9f901109be5cddac8b5e82a13a587
3
+ metadata.gz: add6e3e3088112cbd9ff7f961405513965fc7d0238a7a9468b639b5697824735
4
+ data.tar.gz: d0a335fa198ce5ca2dc762d69ad20321e74e7600e7108187b5ab37719019cdb9
5
5
  SHA512:
6
- metadata.gz: ba4526d38d3435680bdffdc7deee40f4933cdaff03dbb20fe1a0cd5c701f587114a147ae1cf6121fce46414b982c3c46fd414fa34b61172ce377077448519a82
7
- data.tar.gz: c3013ec0e48c5bf99b6236a36cc44c8abe616d471147fc48bedf3b68e3a9725fe1f729cdfd3bbbba73514d93e1ed328bc73679a71ca40da5e6368751245e5959
6
+ metadata.gz: 694efb5db42fa7be0ff862f1ef4a5b39c99fa90bbacfefa7bd90c3808a1052e22e6cc56a36e6d4289c8fbe76a75b78b9e1c8e2d94553404338bac0106fe5c969
7
+ data.tar.gz: 9313c31c3faea7e8dd903a58ca79271b3cd1dfe5fec7aa2abd14e2588cb531ff524091ce1b2339d4144b501d71bf128765b7eee4a2f765d9aa519bfc169b75f3
@@ -37,10 +37,7 @@ module ChatSDK
37
37
  end
38
38
 
39
39
  def parse_events(rack_request)
40
- body = rack_request.body.read
41
- rack_request.body.rewind
42
-
43
- payload = JSON.parse(body)
40
+ payload = read_json_body(rack_request)
44
41
  EventParser.parse(payload)
45
42
  rescue JSON::ParserError
46
43
  []
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chat_sdk-gchat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
- - Rootly
7
+ - Quentin Rousseau
8
8
  bindir: bin
9
9
  cert_chain: []
10
10
  date: 1980-01-02 00:00:00.000000000 Z
@@ -53,7 +53,7 @@ dependencies:
53
53
  version: '1.0'
54
54
  description: Google Chat bot adapter for the ChatSDK framework
55
55
  email:
56
- - eng@rootly.com
56
+ - quentin@rootly.com
57
57
  executables: []
58
58
  extensions: []
59
59
  extra_rdoc_files: []
@@ -64,7 +64,7 @@ files:
64
64
  - lib/chat_sdk/gchat/event_parser.rb
65
65
  - lib/chat_sdk/gchat/resource_name.rb
66
66
  - lib/chat_sdk/gchat/token_verifier.rb
67
- homepage: https://github.com/rootlyhq/rootly-chat-sdk
67
+ homepage: https://github.com/rootlyhq/chat-sdk
68
68
  licenses:
69
69
  - MIT
70
70
  metadata: