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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 460256725e443fc1e4d8524178e22e80827a2b53632d67ae9755d4d85ee5ea71
4
- data.tar.gz: c645fc66b6a7097858f25271417265c1a1c1b51d4bebcf5d1912ca8a579fde10
3
+ metadata.gz: ca4d26fef1e8b97cf0a9ff7e057d6cb2895fa67cfb4c7f88bf91bd77852ac795
4
+ data.tar.gz: 10b94fbd64aab07a75829ec2c024639ec2d6303896f2654dadab6a0791da1444
5
5
  SHA512:
6
- metadata.gz: 64bb20e6b63437b403e24141a5e46612b4e2f73727d0f1b18713a0e629666ac3e047655083d3bd57d7cd69d8dd0521abbceba5991f91980c7a05da9f5b4477e9
7
- data.tar.gz: c264ae5bbabb2a7123723cc6855290023c59312885f9ca8c763c46e7c1a98b765230f5e31022ec685dd114afce14a55ff450890a9420ea8a5b4740882e719362
6
+ metadata.gz: d6daedcfb508bd133d13786d2f55a98a4deb1029b0b1806c7dd59b292e4e5257691a38120fd6c4d5e21c05e41145ff31fa46b37dbddf82d75209b3ed8dc100a9
7
+ data.tar.gz: 6fc96395f7dfa312f58cbb9b0fe0ca8d1bb26bf67fc297f4d823a3311975ee489cebcf0233df8875271cfeaa2417a3c896ab3c2dfec1332494033c61582b3210
@@ -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.8.0...HEAD
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
- @trace.submit
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[:content_type] = headers['Content-Type']
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
@@ -3,7 +3,7 @@
3
3
  module Mnemosyne
4
4
  module VERSION
5
5
  MAJOR = 1
6
- MINOR = 8
6
+ MINOR = 9
7
7
  PATCH = 0
8
8
  STAGE = nil
9
9
 
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.8.0
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-10-25 00:00:00.000000000 Z
11
+ date: 2019-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport