jirafe 0.8.0 → 0.8.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,6 +14,7 @@ module Jirafe
14
14
  target_id = options[:target_id] || "jirafe"
15
15
  error_id = options[:error_id] || "messages"
16
16
  error_html = options[:error_html] || default_error_html
17
+ error_html = error_html.gsub(/"/, "\\\"").split("\n").join("")
17
18
  timeout = options[:timeout] || 10000
18
19
 
19
20
  <<-HTML
@@ -1,3 +1,3 @@
1
1
  module Jirafe
2
- VERSION = "0.8.0"
2
+ VERSION = "0.8.1"
3
3
  end
@@ -23,7 +23,7 @@ describe Jirafe::Dashboard do
23
23
  let(:app_id) { 123 }
24
24
  let(:version) { "myplatform-v1.0.1" }
25
25
  let(:locale) { Jirafe::LOCALES[:english] }
26
- let(:options) { { :error_html => "myerror" } }
26
+ let(:options) { { :error_html => %{myerror <contains some="html" />} } }
27
27
 
28
28
  let(:expected_html) do
29
29
  <<-HTML
@@ -36,7 +36,7 @@ describe Jirafe::Dashboard do
36
36
  locale: 'en_US' });
37
37
  setTimeout(function() {
38
38
  if ($('mod-jirafe') == undefined) {
39
- $('messages').insert ("myerror");
39
+ $('messages').insert ("myerror <contains some=\\\"html\\\" />");
40
40
  }
41
41
  }, 10000);
42
42
  </script>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jirafe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: