mnemosyne-ruby 1.8.0 → 1.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -1
- data/lib/mnemosyne/middleware/rack.rb +14 -2
- data/lib/mnemosyne/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: ca4d26fef1e8b97cf0a9ff7e057d6cb2895fa67cfb4c7f88bf91bd77852ac795
|
4
|
+
data.tar.gz: 10b94fbd64aab07a75829ec2c024639ec2d6303896f2654dadab6a0791da1444
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6daedcfb508bd133d13786d2f55a98a4deb1029b0b1806c7dd59b292e4e5257691a38120fd6c4d5e21c05e41145ff31fa46b37dbddf82d75209b3ed8dc100a9
|
7
|
+
data.tar.gz: 6fc96395f7dfa312f58cbb9b0fe0ca8d1bb26bf67fc297f4d823a3311975ee489cebcf0233df8875271cfeaa2417a3c896ab3c2dfec1332494033c61582b3210
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
5
5
|
|
6
6
|
## [Unreleased]
|
7
7
|
|
8
|
+
## [1.9.0] - 2019-12-17
|
9
|
+
### Fixed
|
10
|
+
- [Rack] Fix exceptions raised on trace submit corrupting the response
|
11
|
+
|
12
|
+
### Added
|
13
|
+
- Rack: Collect redirect locations (#14)
|
14
|
+
|
8
15
|
## [1.8.0] - 2019-10-25
|
9
16
|
### Added
|
10
17
|
- Improve compatibility with Rails 6.0
|
@@ -86,7 +93,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
86
93
|
### Added
|
87
94
|
- Add platform identifier
|
88
95
|
|
89
|
-
[Unreleased]: https://github.com/mnemosyne-mon/mnemosyne-ruby/compare/v1.
|
96
|
+
[Unreleased]: https://github.com/mnemosyne-mon/mnemosyne-ruby/compare/v1.9.0...HEAD
|
97
|
+
[1.9.0]: https://github.com/mnemosyne-mon/mnemosyne-ruby/compare/v1.8.0...v1.9.0
|
90
98
|
[1.8.0]: https://github.com/mnemosyne-mon/mnemosyne-ruby/compare/v1.7.1...v1.8.0
|
91
99
|
[1.7.1]: https://github.com/mnemosyne-mon/mnemosyne-ruby/compare/v1.7.0...v1.7.1
|
92
100
|
[1.7.0]: https://github.com/mnemosyne-mon/mnemosyne-ruby/compare/v1.6.2...v1.7.0
|
@@ -34,7 +34,7 @@ module Mnemosyne
|
|
34
34
|
begin
|
35
35
|
@body.close if @body.respond_to? :close
|
36
36
|
ensure
|
37
|
-
|
37
|
+
_submit_trace
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
@@ -48,6 +48,15 @@ module Mnemosyne
|
|
48
48
|
@trace.attach_error(e)
|
49
49
|
raise
|
50
50
|
end
|
51
|
+
|
52
|
+
private
|
53
|
+
|
54
|
+
def _submit_trace
|
55
|
+
@trace.submit
|
56
|
+
rescue Exception => e
|
57
|
+
::Mnemosyne::Logging.logger.error \
|
58
|
+
"Error while submitting trace: #{e}\n #{e.backtrace.join("\n ")}"
|
59
|
+
end
|
51
60
|
end
|
52
61
|
|
53
62
|
def initialize(app)
|
@@ -110,7 +119,10 @@ module Mnemosyne
|
|
110
119
|
|
111
120
|
return unless headers
|
112
121
|
|
113
|
-
trace.meta
|
122
|
+
trace.meta.merge!({
|
123
|
+
content_type: headers['Content-Type'],
|
124
|
+
location: headers['Location'],
|
125
|
+
}.compact)
|
114
126
|
end
|
115
127
|
end
|
116
128
|
end
|
data/lib/mnemosyne/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mnemosyne-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Graichen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-12-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|