File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed
Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 1+ ## 3.1.1 (16/01/2019):
2+ Bugfix:
3+ - Don't attempt to modify response unless JS api key is present
4+ - Don't attempt to modify response unless it responds to indexing ([ ] )
5+ - See PR ([ #140 ] ( https://github.com/MindscapeHQ/raygun4ruby/pull/140 ) )
6+
17## 3.1.0 (15/01/2019):
28
39Feature:
Original file line number Diff line number Diff line change @@ -16,8 +16,10 @@ def call(env)
1616 end
1717
1818 def inject_javascript_to_response ( response )
19- response [ 0 ] . gsub! ( '</head>' , "#{ js_tracker . head_html } </head>" )
20- response [ 0 ] . gsub! ( '</body>' , "#{ js_tracker . body_html } </body>" )
19+ if Raygun . configuration . js_api_key . present? && response . respond_to? ( '[]' )
20+ response [ 0 ] . gsub! ( '</head>' , "#{ js_tracker . head_html } </head>" )
21+ response [ 0 ] . gsub! ( '</body>' , "#{ js_tracker . body_html } </body>" )
22+ end
2123
2224 response
2325 end
Original file line number Diff line number Diff line change 11module Raygun
2- VERSION = "3.1.0 "
2+ VERSION = "3.1.1 "
33end
You can’t perform that action at this time.
0 commit comments