honeybadger 4.12.1 → 4.12.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/honeybadger/cli/heroku.rb +1 -1
- data/lib/honeybadger/plugins/lambda.rb +1 -0
- data/lib/honeybadger/templates/feedback_form.erb +0 -1
- data/lib/honeybadger/util/request_hash.rb +1 -1
- data/lib/honeybadger/util/revision.rb +8 -3
- data/lib/honeybadger/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 27ff7c374bbf6bcfb0086d8494399ecaf46b20cca0f37cb032abc883e3115c85
|
4
|
+
data.tar.gz: 658f3b9ef36a76771265af32bddbf3c6e720385c8051cece4b15f339abdad364
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0641dd6546f0ac77ed8175331791708f0de21a540ab6e0d7aacb56e39ed60c5e65252f6f8d7c3959df859f2dedf210df2055d38337e546e92d74ff46f0aadefa
|
7
|
+
data.tar.gz: a1ee0bd23a820ef6bcb90e05901d984418347987e2d23202ea02e43799e2f4c6ef9a7f5f84bba8a888ff7747baef76280b7a79e8993ceadafaa05d0bd465e4ac
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,11 @@ adheres to [Semantic Versioning](http://semver.org/).
|
|
5
5
|
|
6
6
|
## [Unreleased]
|
7
7
|
|
8
|
+
## [4.12.2] - 2022-08-15
|
9
|
+
### Fixed
|
10
|
+
- Fix a bug where the auto-detected revision is blank instead of nil
|
11
|
+
- Fix inadvertent creation of invalid sessions (#441)
|
12
|
+
|
8
13
|
## [4.12.1] - 2022-04-01
|
9
14
|
### Fixed
|
10
15
|
- Fix Lambda plugin: support Ruby <2.5 (#428)
|
@@ -4,7 +4,6 @@
|
|
4
4
|
#honeybadger_feedback_form label { font-weight: bold; }
|
5
5
|
#honeybadger_feedback_name, #honeybadger_feedback_email, #honeybadger_feedback_comment { width: 100%; padding: 0.5em; }
|
6
6
|
#honeybadger_feedback_comment { height: 10em; }
|
7
|
-
#honeybadger_feedback_submit { height: 1em; }
|
8
7
|
#honeybadger_feedback_form .honeybadger-feedback-phone { display: none; }
|
9
8
|
#honeybadger_feedback_link { font-size: 90%; }
|
10
9
|
</style>
|
@@ -28,7 +28,7 @@ module Honeybadger
|
|
28
28
|
return {} unless defined?(::Rack::Request)
|
29
29
|
return {} unless env
|
30
30
|
|
31
|
-
hash, request = {}, ::Rack::Request.new(env)
|
31
|
+
hash, request = {}, ::Rack::Request.new(env.dup)
|
32
32
|
|
33
33
|
hash[:url] = extract_url(request)
|
34
34
|
hash[:params] = extract_params(request)
|
@@ -3,9 +3,14 @@ module Honeybadger
|
|
3
3
|
class Revision
|
4
4
|
class << self
|
5
5
|
def detect(root = Dir.pwd)
|
6
|
-
from_heroku ||
|
6
|
+
revision = from_heroku ||
|
7
7
|
from_capistrano(root) ||
|
8
8
|
from_git
|
9
|
+
|
10
|
+
revision = revision.to_s.strip
|
11
|
+
return unless revision =~ /\S/
|
12
|
+
|
13
|
+
revision
|
9
14
|
end
|
10
15
|
|
11
16
|
private
|
@@ -21,12 +26,12 @@ module Honeybadger
|
|
21
26
|
def from_capistrano(root)
|
22
27
|
file = File.join(root, 'REVISION')
|
23
28
|
return nil unless File.file?(file)
|
24
|
-
File.read(file)
|
29
|
+
File.read(file) rescue nil
|
25
30
|
end
|
26
31
|
|
27
32
|
def from_git
|
28
33
|
return nil unless File.directory?('.git')
|
29
|
-
`git rev-parse HEAD 2> #{File::NULL}
|
34
|
+
`git rev-parse HEAD 2> #{File::NULL}` rescue nil
|
30
35
|
end
|
31
36
|
end
|
32
37
|
end
|
data/lib/honeybadger/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: honeybadger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.12.
|
4
|
+
version: 4.12.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Honeybadger Industries LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-08-15 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Make managing application errors a more pleasant experience.
|
14
14
|
email:
|