mnemosyne-ruby 1.7.1 → 1.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.editorconfig +8 -0
- data/.travis.yml +12 -17
- data/Appraisals +4 -0
- data/CHANGELOG.md +6 -1
- data/gemfiles/rails_42.gemfile +1 -1
- data/gemfiles/rails_50.gemfile +1 -1
- data/gemfiles/rails_51.gemfile +1 -1
- data/gemfiles/rails_52.gemfile +1 -1
- data/gemfiles/rails_60.gemfile +20 -0
- data/lib/mnemosyne/configuration.rb +1 -1
- data/lib/mnemosyne/global.rb +1 -0
- data/lib/mnemosyne/instrumenter.rb +3 -0
- data/lib/mnemosyne/middleware/faraday.rb +1 -1
- data/lib/mnemosyne/middleware/rack.rb +1 -0
- data/lib/mnemosyne/probes/faraday/base.rb +2 -2
- data/lib/mnemosyne/railtie.rb +1 -1
- data/lib/mnemosyne/registry.rb +1 -0
- data/lib/mnemosyne/trace.rb +6 -1
- data/lib/mnemosyne/version.rb +2 -2
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 460256725e443fc1e4d8524178e22e80827a2b53632d67ae9755d4d85ee5ea71
|
4
|
+
data.tar.gz: c645fc66b6a7097858f25271417265c1a1c1b51d4bebcf5d1912ca8a579fde10
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64bb20e6b63437b403e24141a5e46612b4e2f73727d0f1b18713a0e629666ac3e047655083d3bd57d7cd69d8dd0521abbceba5991f91980c7a05da9f5b4477e9
|
7
|
+
data.tar.gz: c264ae5bbabb2a7123723cc6855290023c59312885f9ca8c763c46e7c1a98b765230f5e31022ec685dd114afce14a55ff450890a9420ea8a5b4740882e719362
|
data/.editorconfig
ADDED
data/.travis.yml
CHANGED
@@ -8,32 +8,27 @@ addons:
|
|
8
8
|
packages:
|
9
9
|
- rabbitmq-server
|
10
10
|
rvm:
|
11
|
-
- 2.6.
|
12
|
-
- 2.5.
|
13
|
-
- 2.4.
|
11
|
+
- 2.6.5
|
12
|
+
- 2.5.7
|
13
|
+
- 2.4.9
|
14
14
|
- 2.3.8
|
15
15
|
gemfile:
|
16
|
+
- gemfiles/rails_60.gemfile
|
16
17
|
- gemfiles/rails_52.gemfile
|
17
18
|
- gemfiles/rails_51.gemfile
|
18
19
|
- gemfiles/rails_50.gemfile
|
19
20
|
- gemfiles/rails_42.gemfile
|
21
|
+
|
20
22
|
before_install:
|
21
23
|
- echo yes | rvm gemset delete global
|
22
24
|
- gem install bundler -v'~>1.0'
|
23
25
|
script:
|
24
26
|
- bundle exec rake rubocop
|
25
27
|
- bundle exec rake spec
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
provider: rubygems
|
34
|
-
api_key:
|
35
|
-
secure: s7hUPxL4RULQ398GXk6Ko/y3QtUy7bZMTzcC4sL9Opsw76IRhOY0n+c6r+S8wHH3n+cRxiLpUyXRAsLMhjd67Rn+qaBoVbEfyzZKt1EAYyskFdPf40Jlq3FjOjRjAJW+hLDYloLXqqgLIrx/ybOv0YOfKyGKmk6eBNCx9S5GPJzt15WAM4Lz+TxNuR82YhsDybcGtTtLJ1WCF5FeQ297l2OESgvikRoADhIIM3HVk6Msyqw7RwFlpoIFGPRhXZD7UmML981rxK4Gxkh5xKGJiInjzL8lYOgT3KIfSLwtp9JoDbtpKbzdIQfA8Z35aRzpLjofPFxxYsKjwmCfdKxvJf5E5hTlenrILqSIovuknHb9oNOp0aCdp52N4+B8BZl7n1muQzr1AKy/ogtkTAgmlPs5tW+qx2h6E5MU0wfy6sS0AqKtVcGaZ1u85llifY2TvYriHReBIf8vddOe6LLbDcPnaTrTnAdsk/Bx9n+Zd8A2l3vzam9RbwTjlr7ZezIY67RRknfScEO+qCt9cfdAKf57ZdpiAecDFEr9V/CdAPEBevxaoiTwzFrjO+N9BY57eGHJsPda8NwNsrBraGBgcgKOXWeg9MowfU+wWpUSbeAJDZ2zZabGRKJkXpbRNNnf3webPSaXfb9qeWrCHXXbuI8JO+PQmx6OX8IHGjqyE1E=
|
36
|
-
gem: mnemosyne-ruby
|
37
|
-
on:
|
38
|
-
tags: true
|
39
|
-
repo: mnemosyne-mon/mnemosyne-ruby
|
28
|
+
|
29
|
+
matrix:
|
30
|
+
exclude:
|
31
|
+
- rvm: 2.4.9
|
32
|
+
gemfile: gemfiles/rails_60.gemfile
|
33
|
+
- rvm: 2.3.8
|
34
|
+
gemfile: gemfiles/rails_60.gemfile
|
data/Appraisals
CHANGED
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
5
5
|
|
6
6
|
## [Unreleased]
|
7
7
|
|
8
|
+
## [1.8.0] - 2019-10-25
|
9
|
+
### Added
|
10
|
+
- Improve compatibility with Rails 6.0
|
11
|
+
|
8
12
|
## [1.7.1] - 2019-06-15
|
9
13
|
### Fixed
|
10
14
|
- Reworked Faraday probe to not override connection middleware stack
|
@@ -82,7 +86,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
82
86
|
### Added
|
83
87
|
- Add platform identifier
|
84
88
|
|
85
|
-
[
|
89
|
+
[Unreleased]: https://github.com/mnemosyne-mon/mnemosyne-ruby/compare/v1.8.0...HEAD
|
90
|
+
[1.8.0]: https://github.com/mnemosyne-mon/mnemosyne-ruby/compare/v1.7.1...v1.8.0
|
86
91
|
[1.7.1]: https://github.com/mnemosyne-mon/mnemosyne-ruby/compare/v1.7.0...v1.7.1
|
87
92
|
[1.7.0]: https://github.com/mnemosyne-mon/mnemosyne-ruby/compare/v1.6.2...v1.7.0
|
88
93
|
[1.6.2]: https://github.com/mnemosyne-mon/mnemosyne-ruby/compare/v1.6.1...v1.6.2
|
data/gemfiles/rails_42.gemfile
CHANGED
data/gemfiles/rails_50.gemfile
CHANGED
data/gemfiles/rails_51.gemfile
CHANGED
data/gemfiles/rails_52.gemfile
CHANGED
@@ -0,0 +1,20 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
gem "appraisal"
|
6
|
+
gem "rake", "~> 12.0"
|
7
|
+
gem "rspec", "~> 3.6"
|
8
|
+
gem "rubocop", "~> 0.67.1"
|
9
|
+
gem "timecop", "~> 0.9.1"
|
10
|
+
gem "pry", require: false
|
11
|
+
gem "pry-byebug", require: false
|
12
|
+
gem "faraday", require: false
|
13
|
+
gem "msgr", require: false
|
14
|
+
gem "rails", "~> 6.0.0", require: false
|
15
|
+
gem "restify", require: false
|
16
|
+
gem "sidekiq", require: false
|
17
|
+
gem "sqlite3", "~> 1.4", require: false
|
18
|
+
gem "webmock", require: false
|
19
|
+
|
20
|
+
gemspec path: "../"
|
data/lib/mnemosyne/global.rb
CHANGED
@@ -27,6 +27,7 @@ module Mnemosyne
|
|
27
27
|
def trace(name, **kwargs)
|
28
28
|
if (trace = current_trace)
|
29
29
|
return yield trace if block_given?
|
30
|
+
|
30
31
|
return trace
|
31
32
|
end
|
32
33
|
|
@@ -86,11 +87,13 @@ module Mnemosyne
|
|
86
87
|
|
87
88
|
def trace(*args)
|
88
89
|
return unless (instrumenter = instance)
|
90
|
+
|
89
91
|
instrumenter.trace(*args)
|
90
92
|
end
|
91
93
|
|
92
94
|
def current_trace
|
93
95
|
return unless (instrumenter = instance)
|
96
|
+
|
94
97
|
instrumenter.current_trace
|
95
98
|
end
|
96
99
|
end
|
@@ -17,9 +17,9 @@ module Mnemosyne
|
|
17
17
|
|
18
18
|
module Extension
|
19
19
|
def lock!
|
20
|
-
|
20
|
+
unless @handlers.include?('Mnemosyne::Middleware::Faraday')
|
21
21
|
if respond_to?(:is_adapter?, true) &&
|
22
|
-
|
22
|
+
(idx = @handlers.find_index {|h| is_adapter?(h) })
|
23
23
|
insert(idx, ::Mnemosyne::Middleware::Faraday)
|
24
24
|
else
|
25
25
|
use(::Mnemosyne::Middleware::Faraday)
|
data/lib/mnemosyne/railtie.rb
CHANGED
data/lib/mnemosyne/registry.rb
CHANGED
data/lib/mnemosyne/trace.rb
CHANGED
@@ -57,12 +57,13 @@ module Mnemosyne
|
|
57
57
|
end
|
58
58
|
|
59
59
|
Error = Struct.new(:error) do
|
60
|
-
BT_REGEXP = /^((?:[a-zA-Z]:)?[^:]+):(\d+)(?::in `([^']+)')
|
60
|
+
BT_REGEXP = /^((?:[a-zA-Z]:)?[^:]+):(\d+)(?::in `([^']+)')?$/.freeze
|
61
61
|
|
62
62
|
def serialize
|
63
63
|
{
|
64
64
|
type: error.class.name,
|
65
65
|
text: error.message.to_s,
|
66
|
+
cause: serialize_cause,
|
66
67
|
stacktrace: serialize_backtrace
|
67
68
|
}.compact
|
68
69
|
end
|
@@ -78,6 +79,10 @@ module Mnemosyne
|
|
78
79
|
{file: md[1], line: md[2], call: md[3], raw: md[0]}
|
79
80
|
end
|
80
81
|
end
|
82
|
+
|
83
|
+
def serialize_cause
|
84
|
+
self.class.new(error.cause).serialize if error.cause
|
85
|
+
end
|
81
86
|
end
|
82
87
|
end
|
83
88
|
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.8.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-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -59,6 +59,7 @@ executables: []
|
|
59
59
|
extensions: []
|
60
60
|
extra_rdoc_files: []
|
61
61
|
files:
|
62
|
+
- ".editorconfig"
|
62
63
|
- ".gitignore"
|
63
64
|
- ".rspec"
|
64
65
|
- ".rubocop.yml"
|
@@ -73,6 +74,7 @@ files:
|
|
73
74
|
- gemfiles/rails_50.gemfile
|
74
75
|
- gemfiles/rails_51.gemfile
|
75
76
|
- gemfiles/rails_52.gemfile
|
77
|
+
- gemfiles/rails_60.gemfile
|
76
78
|
- lib/mnemosyne-ruby.rb
|
77
79
|
- lib/mnemosyne.rb
|
78
80
|
- lib/mnemosyne/client.rb
|
@@ -134,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
134
136
|
- !ruby/object:Gem::Version
|
135
137
|
version: '0'
|
136
138
|
requirements: []
|
137
|
-
rubygems_version: 3.0.
|
139
|
+
rubygems_version: 3.0.6
|
138
140
|
signing_key:
|
139
141
|
specification_version: 4
|
140
142
|
summary: Ruby/Rails client for Mnemosyne APM
|