msgr 1.1.0.1.b288 → 1.1.0.1.b291
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/msgr/client.rb +2 -8
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c514dacc24ec19f576a148dc068cdfd91ef2b3eacd79e43d95725c868db7c416
|
4
|
+
data.tar.gz: 376c5a3c5c34fa494afbb31ec6b517e3e202b6b89aad62bff2610b2922bb65d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 410211a5abcd254a22783124a1889c4e36e7598e710d203349e27497abc250555d79b9e259305e20fccacf56354fc2ea68e863144a0c48a84cd3e75b28f90a5b
|
7
|
+
data.tar.gz: 72c91dfbb724173ffaf5e5553bf55ff95a6ead10cd3c9e11d7dfc1630bc19c58f8ecec66b72d5e1171ff054e66b193b447e86a3f0a2aa2bbcc54dcf40deb39a8
|
data/lib/msgr/client.rb
CHANGED
@@ -137,14 +137,8 @@ module Msgr
|
|
137
137
|
private
|
138
138
|
|
139
139
|
def sync_publish(payload, opts)
|
140
|
-
|
141
|
-
|
142
|
-
opts[:content_type] ||= 'application/json'
|
143
|
-
rescue JSON::JSONError
|
144
|
-
opts[:content_type] ||= 'application/text'
|
145
|
-
end
|
146
|
-
|
147
|
-
sync_publish_message payload.to_s, opts
|
140
|
+
opts[:content_type] ||= 'application/json'
|
141
|
+
sync_publish_message JSON.dump(payload).to_s, opts
|
148
142
|
end
|
149
143
|
|
150
144
|
def sync_publish_message(message, opts)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: msgr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.0.1.
|
4
|
+
version: 1.1.0.1.b291
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Graichen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-05-
|
11
|
+
date: 2019-05-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|