lib/slack_notifier/message.rb in slack_notifier-1.0.3 vs lib/slack_notifier/message.rb in slack_notifier-1.0.4

- old
+ new

@@ -56,11 +56,11 @@ end def base_param { username: @nickname, - text: @text.gsub('\'', '`'), + text: @text.gsub('\'', '').gsub('`', ''), channel: @channel } end def icon_param @@ -79,9 +79,11 @@ ] } end def key_value_pairs_to_s(hash) - hash.map { |k, v| "#{k.to_s.gsub(/_/, ' ').titleize}: #{v}" }.join("\n") + hash.map do |k, v| + "#{k.to_s.gsub(/_/, ' ').titleize}: #{v.to_s.gsub('\'', '').gsub('`', '')}" + end.join("\n") end end end