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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/msgr/client.rb +2 -8
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 38c0e08d717cec16a27fc96698fe2326cbc5ec02ac4ce233bc35075c1cb59f76
4
- data.tar.gz: a9da6d73574b6fc167219bfbc9b5ddf13b5263366c5da81e38a169f08e3e2a1c
3
+ metadata.gz: c514dacc24ec19f576a148dc068cdfd91ef2b3eacd79e43d95725c868db7c416
4
+ data.tar.gz: 376c5a3c5c34fa494afbb31ec6b517e3e202b6b89aad62bff2610b2922bb65d5
5
5
  SHA512:
6
- metadata.gz: 594dfb93f7abe993b493b1d728aa5c2097be0ab466a9c0cb7a63e590b83f984e3d5463e3b411f032751e7095fa3b05244d6b6f9c07baf4973db8e6dc0d163fb7
7
- data.tar.gz: 4687197349973e100dad636176745f1700dd69139239ab96031846b000d83b4af8969e3a8dba9730abfa865042702ba6bceab0419e4c992dfead70cacb0a1fdf
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
- begin
141
- payload = JSON.dump(payload)
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.b288
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-14 00:00:00.000000000 Z
11
+ date: 2019-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport