raygun4ruby 3.1.0 → 3.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: acbc458153d576b6856920cb72985952f9f6ed22
4
- data.tar.gz: bb9976f64347bce6b6a6a6f3920564b489b478bb
3
+ metadata.gz: 1b2d4b0893569016193338e74716ee400aa22318
4
+ data.tar.gz: c95e698b2376c2592dc19b341a3c82ca213d64bd
5
5
  SHA512:
6
- metadata.gz: d603e52d886065cf9cc7b26f6639a8f6c237447d2af106bd5e55b96e5d25b721b1b2607a34f25b71ef9ea5514252492dd7f584463d36a7dd2d614db1a00b66c1
7
- data.tar.gz: 9c1f5c46f012cc003a32ed8829755f3c8321d3049c6b1c7c349063461674f6bf0a6c7114fb9bf444f8ce926c101cd9125c96f92438a34c2a6f1dd8322e650734
6
+ metadata.gz: a7ac04cea20753d0e5618af7d8676c8ce48648932de4311d5dc38d311b942f9677e352c3739bb21591b61aeb40859aa1f34af8698a7257a6d27b25a60cba1462
7
+ data.tar.gz: e1374a86dc5768b89fc10e32548dc6f6beb22b9560b35d9d81b0aee467f53f945cd6c1bc865816fef72fea52db37e2ab64fce8f758b89dced6fb9fd9a53b60b3
data/CHANGELOG.md CHANGED
@@ -1,7 +1,13 @@
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
+
1
7
  ## 3.1.0 (15/01/2019):
2
8
 
3
- Feature:
4
- - Ability to automatically configure Raygun4JS on the client side by injecting it into outbound HTML pages. Thanks @MikeRogers0 for this ([#138](https://github.com/MindscapeHQ/raygun4ruby/pull/138)])
9
+ Feature:
10
+ - Ability to automatically configure Raygun4JS on the client side by injecting it into outbound HTML pages. Thanks @MikeRogers0 for this ([#138](https://github.com/MindscapeHQ/raygun4ruby/pull/138))
5
11
 
6
12
  ## 3.0.0 (18/12/2018):
7
13
  Breaking changes:
@@ -16,8 +16,10 @@ module Raygun::Middleware
16
16
  end
17
17
 
18
18
  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
21
23
 
22
24
  response
23
25
  end
@@ -1,3 +1,3 @@
1
1
  module Raygun
2
- VERSION = "3.1.0"
2
+ VERSION = "3.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raygun4ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 3.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mindscape
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-01-15 00:00:00.000000000 Z
12
+ date: 2019-01-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty