mnemosyne-ruby 1.16.0 → 1.17.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: 43c02b1229d902d187dee8281c88820a95d13a30ee594af7ca131645ffd85485
4
- data.tar.gz: c6ebd7b760e56adacacbb89390d5abc463ded7a72e37d346de0d51fb615a6582
3
+ metadata.gz: 8cc4eb9f402b3b0b6bff2303ab053db952748357a70353db3bfcd095d7c5c3b8
4
+ data.tar.gz: 2285a82061c02625dffc6bc660249cf5bc6c950c70968d858a4a2689711dca83
5
5
  SHA512:
6
- metadata.gz: 14220075cac092132c13d0c6d82bdfbc374c0c7a50db0d3e0d07e950fae0eda073b6958c30657f3bb089cbfcc0137d18fd56ae2f505e1f16d61917b929d25a6e
7
- data.tar.gz: a568b0e9ea1b96549ed78082c9ccef3946a5a8dbd8b7b9dc231a609a52d59c928069d7f7a5cf4c99f509589830279ff16b1e05a055114674d5dac8d2ccf85274
6
+ metadata.gz: 7378f99a3b5d170a027cd971234eb4256a7260d1d4ba5dffd7e0d7a3b94e2f3c3425fc1b920964dae34057b11a93043ef02dac97b8cdc6b779d46626e00a2224
7
+ data.tar.gz: f3190633b22cd474a4fdc365984dc4a26516637243b2f446345cf6ca4862ed7af456fde353f11babf2a5d4b79870d4102056d7077e7106b887cb16b22d04654b
@@ -26,6 +26,7 @@ jobs:
26
26
  - rails-6.0
27
27
  - rails-6.1
28
28
  - rails-7.0
29
+ - rails-7.1
29
30
  - redis-4.0
30
31
  - redis-5.0
31
32
  - redis-client
@@ -61,6 +62,9 @@ jobs:
61
62
  - suite: rails-7.0
62
63
  spec: --tag probe:rails --tag ~probe
63
64
  gemfile: gemfiles/rails_70.gemfile
65
+ - suite: rails-7.1
66
+ spec: --tag probe:rails --tag ~probe
67
+ gemfile: gemfiles/rails_71.gemfile
64
68
  - suite: redis-4.0
65
69
  spec: --tag probe:redis
66
70
  gemfile: gemfiles/redis_40.gemfile
@@ -118,3 +122,23 @@ jobs:
118
122
  env:
119
123
  AMQP_SERVER: amqp://localhost:${{ job.services.rabbitmq.ports[5672] }}
120
124
  run: bundle exec rspec --color ${{ matrix.spec }}
125
+
126
+ rubocop:
127
+ name: rubocop
128
+ runs-on: ubuntu-22.04
129
+
130
+ env:
131
+ BUNDLE_WITHOUT: development test
132
+
133
+ steps:
134
+ - uses: actions/checkout@master
135
+ - uses: ruby/setup-ruby@v1
136
+ env:
137
+ BUNDLE_JOBS: 4
138
+ BUNDLE_RETRY: 3
139
+ with:
140
+ ruby-version: 3.1
141
+ bundler-cache: true
142
+
143
+ - name: Run rubocop
144
+ run: bundle exec rubocop --parallel --color
data/Appraisals CHANGED
@@ -20,6 +20,15 @@ appraise 'faraday-10' do
20
20
  end
21
21
  end
22
22
 
23
+ appraise 'rails-71' do
24
+ remove_gem 'rubocop'
25
+
26
+ group :test do
27
+ gem 'rails', '~> 7.1.0'
28
+ gem 'sqlite3', '~> 1.4'
29
+ end
30
+ end
31
+
23
32
  appraise 'rails-70' do
24
33
  remove_gem 'rubocop'
25
34
 
data/CHANGELOG.md CHANGED
@@ -6,6 +6,16 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [1.17.0] - 2023-11-28
10
+
11
+ ### Added
12
+
13
+ - Add testing for Rails 7.1 by @MrSerth
14
+
15
+ ### Fixed
16
+
17
+ - Invalid exception class for ActionDispatch::ExceptionWrapper by @jgraichen
18
+
9
19
  ## [1.16.0] - 2023-08-24
10
20
 
11
21
  ### Added
@@ -202,7 +212,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
202
212
 
203
213
  - Add platform identifier
204
214
 
205
- [Unreleased]: https://github.com/mnemosyne-mon/mnemosyne-ruby/compare/v1.16.0...HEAD
215
+ [Unreleased]: https://github.com/mnemosyne-mon/mnemosyne-ruby/compare/v1.17.0...HEAD
216
+ [1.17.0]: https://github.com/mnemosyne-mon/mnemosyne-ruby/compare/v1.16.0...v1.17.0
206
217
  [1.16.0]: https://github.com/mnemosyne-mon/mnemosyne-ruby/compare/v1.15.0...v1.16.0
207
218
  [1.15.0]: https://github.com/mnemosyne-mon/mnemosyne-ruby/compare/v1.14.0...v1.15.0
208
219
  [1.14.0]: https://github.com/mnemosyne-mon/mnemosyne-ruby/compare/v1.14.0...v1.13.0
data/Gemfile CHANGED
@@ -6,7 +6,7 @@ source 'https://rubygems.org'
6
6
  gemspec
7
7
 
8
8
  gem 'rake', '~> 13.0'
9
- gem 'rubocop', '~> 1.56.0'
9
+ gem 'rubocop', '~> 1.57.0'
10
10
 
11
11
  group :test do
12
12
  gem 'rspec', '~> 3.6'
@@ -0,0 +1,27 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rake", "~> 13.0"
6
+
7
+ group :test do
8
+ gem "rspec", "~> 3.6"
9
+ gem "timecop", "~> 0.9.1"
10
+ gem "faraday"
11
+ gem "msgr"
12
+ gem "rails", "~> 7.1.0"
13
+ gem "redis"
14
+ gem "restify"
15
+ gem "sidekiq"
16
+ gem "sqlite3", "~> 1.4"
17
+ gem "webmock"
18
+ end
19
+
20
+ group :development do
21
+ gem "appraisal"
22
+ gem "rake-release", "~> 1.3.0"
23
+ gem "pry", require: false
24
+ gem "pry-byebug", require: false
25
+ end
26
+
27
+ gemspec path: "../"
@@ -12,7 +12,12 @@ module Mnemosyne
12
12
  module Instrumentation
13
13
  def render_exception(env, exception)
14
14
  if (trace = ::Mnemosyne::Instrumenter.current_trace)
15
- trace.attach_error(exception)
15
+ if exception.respond_to?(:unwrapped_exception) && exception.respond_to?(:exception)
16
+ # ActionDispatch::ExceptionWrapper
17
+ trace.attach_error(exception.exception)
18
+ else
19
+ trace.attach_error(exception)
20
+ end
16
21
  end
17
22
 
18
23
  super
@@ -3,7 +3,7 @@
3
3
  module Mnemosyne
4
4
  module VERSION
5
5
  MAJOR = 1
6
- MINOR = 16
6
+ MINOR = 17
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.16.0
4
+ version: 1.17.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: 2023-08-24 00:00:00.000000000 Z
11
+ date: 2023-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -46,7 +46,6 @@ extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
48
  - ".editorconfig"
49
- - ".github/workflows/lint.yml"
50
49
  - ".github/workflows/test.yml"
51
50
  - ".gitignore"
52
51
  - ".markdownlint.yml"
@@ -66,6 +65,7 @@ files:
66
65
  - gemfiles/rails_60.gemfile
67
66
  - gemfiles/rails_61.gemfile
68
67
  - gemfiles/rails_70.gemfile
68
+ - gemfiles/rails_71.gemfile
69
69
  - gemfiles/redis_40.gemfile
70
70
  - gemfiles/redis_50.gemfile
71
71
  - gemfiles/sidekiq_50.gemfile
@@ -138,7 +138,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
138
138
  - !ruby/object:Gem::Version
139
139
  version: '0'
140
140
  requirements: []
141
- rubygems_version: 3.4.18
141
+ rubygems_version: 3.4.22
142
142
  signing_key:
143
143
  specification_version: 4
144
144
  summary: Ruby/Rails client for Mnemosyne APM
@@ -1,25 +0,0 @@
1
- name: Lint
2
- on:
3
- - pull_request
4
- - push
5
-
6
- jobs:
7
- rubocop:
8
- name: rubocop
9
- runs-on: ubuntu-22.04
10
-
11
- env:
12
- BUNDLE_WITHOUT: development test
13
-
14
- steps:
15
- - uses: actions/checkout@master
16
- - uses: ruby/setup-ruby@v1
17
- env:
18
- BUNDLE_JOBS: 4
19
- BUNDLE_RETRY: 3
20
- with:
21
- ruby-version: 3.1
22
- bundler-cache: true
23
-
24
- - name: Run rubocop
25
- run: bundle exec rubocop --parallel --color