msgr 1.1.0.1.b285 → 1.1.0.1.b288

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 +1 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 42a8d52e6d7a46d3892ed8caff4eebe89c6706f82bdffc0321840ef784100fae
4
- data.tar.gz: d31ff2b38df028829cbd974ae0d20b6d0f023f8a81379bb7c2b2dbc635ab7e51
3
+ metadata.gz: 38c0e08d717cec16a27fc96698fe2326cbc5ec02ac4ce233bc35075c1cb59f76
4
+ data.tar.gz: a9da6d73574b6fc167219bfbc9b5ddf13b5263366c5da81e38a169f08e3e2a1c
5
5
  SHA512:
6
- metadata.gz: 239b8ab9f5f93cdf8ce19ea6ccf1cb099d1e265791a8083b6c9c6531612cc86d86048254c33a14b2b97c6f374ed1f12abcbbdf69f079c5844d13df2063a049ff
7
- data.tar.gz: 12a9446166c815c5978717d7ecf6e74aa4e25dc1c63f2b3490ed6d1cc0d12b127925242fe08a38f5f9ec7f442d5b3162c2fd0f026d37feea0a081f672a3c8c16
6
+ metadata.gz: 594dfb93f7abe993b493b1d728aa5c2097be0ab466a9c0cb7a63e590b83f984e3d5463e3b411f032751e7095fa3b05244d6b6f9c07baf4973db8e6dc0d163fb7
7
+ data.tar.gz: 4687197349973e100dad636176745f1700dd69139239ab96031846b000d83b4af8969e3a8dba9730abfa865042702ba6bceab0419e4c992dfead70cacb0a1fdf
data/lib/msgr/client.rb CHANGED
@@ -140,7 +140,7 @@ module Msgr
140
140
  begin
141
141
  payload = JSON.dump(payload)
142
142
  opts[:content_type] ||= 'application/json'
143
- rescue
143
+ rescue JSON::JSONError
144
144
  opts[:content_type] ||= 'application/text'
145
145
  end
146
146
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: msgr
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0.1.b285
4
+ version: 1.1.0.1.b288
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Graichen