mnemosyne-ruby 1.13.0 → 1.14.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: f726dc01d0fb0ea763c94132859007806f3dfb03df6fda17bf4a755bc6f1c622
4
- data.tar.gz: bb835bd13a884134036224abeafd7e590949777709b1af89f4b4422ea35406a3
3
+ metadata.gz: 8a1ccbc2b8a4f823ec3a848242e53f7b2a4fbd9001de8dda44a70011a90e8bbc
4
+ data.tar.gz: 58ee31014f79ca2a7c36f7d19625f2e8c81f1298276733ed37aa5296a420064e
5
5
  SHA512:
6
- metadata.gz: 22c8ef3a8a40802efbc25501ad9d8f047c1b9bd5727991a76861a86633549992f39d47ac894f97943fd272183852ed438b5a1302ca42dc002591bcd6e068296b
7
- data.tar.gz: a30964afb55d3995f4ae051c5ac5b06bb99677e2e0a743fed7accccf1c120e02330831f049bcdb7365d519a1e3907ff8b01d589925a00c67638aa1346697eb71
6
+ metadata.gz: b9ec274a32fb1dfe5e9083b252246ff32a670de630d53f2bdb74e162d354d8b1fe314fe9a946fd70e70c309bfb7c7c1936d082460148102e8bde87d8c96158c2
7
+ data.tar.gz: 9fffad92d4957da1df5b6a7fe725bf728404716d349db348f85dff77c52730de4a8fcafb750f98d234c0cf90031a804da9a29ab7ebd928d7a84480e0cea6069f
@@ -8,15 +8,17 @@ jobs:
8
8
  name: rubocop
9
9
  runs-on: ubuntu-20.04
10
10
 
11
+ env:
12
+ BUNDLE_WITHOUT: development test
13
+
11
14
  steps:
12
15
  - uses: actions/checkout@master
13
16
  - uses: ruby/setup-ruby@v1
14
17
  env:
15
18
  BUNDLE_JOBS: 4
16
19
  BUNDLE_RETRY: 3
17
- BUNDLE_WITHOUT: development,test
18
20
  with:
19
- ruby-version: 3.0
21
+ ruby-version: 3.1
20
22
  bundler-cache: true
21
23
 
22
24
  - name: Run rubocop
@@ -12,19 +12,16 @@ jobs:
12
12
  fail-fast: false
13
13
  matrix:
14
14
  ruby:
15
+ - "3.2"
15
16
  - "3.1"
16
17
  - "3.0"
17
18
  - "2.7"
18
- - "2.6"
19
- - "2.5"
20
19
  suite:
21
20
  - core
22
21
  - faraday-0.9
23
22
  - faraday-1.0
24
23
  - msgr
25
24
  - rack
26
- - rails-5.0
27
- - rails-5.1
28
25
  - rails-5.2
29
26
  - rails-6.0
30
27
  - rails-6.1
@@ -36,6 +33,7 @@ jobs:
36
33
  include:
37
34
  - suite: core
38
35
  spec: --tag ~probe
36
+ gemfile: gemfiles/core.gemfile
39
37
  - suite: faraday-0.9
40
38
  spec: --tag probe:faraday
41
39
  gemfile: gemfiles/faraday_09.gemfile
@@ -44,14 +42,10 @@ jobs:
44
42
  gemfile: gemfiles/faraday_10.gemfile
45
43
  - suite: msgr
46
44
  spec: --tag probe:msgr
45
+ gemfile: gemfiles/core.gemfile
47
46
  - suite: rack
48
47
  spec: --tag probe:rack
49
- - suite: rails-5.0
50
- spec: --tag probe:rails --tag ~probe
51
- gemfile: gemfiles/rails_50.gemfile
52
- - suite: rails-5.1
53
- spec: --tag probe:rails --tag ~probe
54
- gemfile: gemfiles/rails_51.gemfile
48
+ gemfile: gemfiles/core.gemfile
55
49
  - suite: rails-5.2
56
50
  spec: --tag probe:rails --tag ~probe
57
51
  gemfile: gemfiles/rails_52.gemfile
@@ -69,6 +63,7 @@ jobs:
69
63
  gemfile: gemfiles/redis_40.gemfile
70
64
  - suite: restify
71
65
  spec: --tag probe:restify
66
+ gemfile: gemfiles/core.gemfile
72
67
  - suite: sidekiq-5
73
68
  spec: --tag probe:sidekiq
74
69
  gemfile: gemfiles/sidekiq_50.gemfile
@@ -76,25 +71,16 @@ jobs:
76
71
  spec: --tag probe:sidekiq
77
72
  gemfile: gemfiles/sidekiq_60.gemfile
78
73
  exclude:
79
- - suite: rails-5.0
80
- ruby: 3.1
81
- - suite: rails-5.1
82
- ruby: 3.1
83
74
  - suite: rails-5.2
84
- ruby: 3.1
85
- - suite: rails-5.0
86
- ruby: 3.0
87
- - suite: rails-5.1
88
- ruby: 3.0
75
+ ruby: '3.2'
89
76
  - suite: rails-5.2
90
- ruby: 3.0
91
- - suite: rails-7.0
92
- ruby: 2.6
93
- - suite: rails-7.0
94
- ruby: 2.5
77
+ ruby: '3.1'
78
+ - suite: rails-5.2
79
+ ruby: '3.0'
95
80
 
96
81
  env:
97
82
  BUNDLE_GEMFILE: ${{ matrix.gemfile }}
83
+ BUNDLE_WITHOUT: development
98
84
 
99
85
  services:
100
86
  rabbitmq:
@@ -108,7 +94,6 @@ jobs:
108
94
  env:
109
95
  BUNDLE_JOBS: 4
110
96
  BUNDLE_RETRY: 3
111
- BUNDLE_WITHOUT: development,test
112
97
  with:
113
98
  ruby-version: ${{ matrix.ruby }}
114
99
  bundler-cache: true
data/.markdownlint.yml ADDED
@@ -0,0 +1,22 @@
1
+ # markdownlint config
2
+
3
+ # The CHANGELOG contains duplicated headers by design
4
+ MD024: false
5
+
6
+ # MD013/line-length: disable line length for all. We prefer lines as
7
+ # long as paragraph with in-editor line breaks.
8
+ MD013: false
9
+
10
+ # MD033/no-inline-html: allow often need tags
11
+ MD033:
12
+ allowed_elements:
13
+ - figure
14
+ - figcaption
15
+
16
+ # MD046/code-block-style: code block style conflicting with
17
+ # admonitions...
18
+ MD046: false
19
+
20
+ # MD048/code-fence-style: code fence style
21
+ MD048:
22
+ style: backtick
data/.rubocop.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  AllCops:
2
- TargetRubyVersion: 2.5
2
+ TargetRubyVersion: 2.7
3
3
  Exclude:
4
4
  - 'vendor/**/*'
5
5
  - 'gemfiles/**/*'
@@ -0,0 +1 @@
1
+ Changelog
data/Appraisals CHANGED
@@ -1,18 +1,28 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ appraise 'core' do
4
+ remove_gem 'rubocop'
5
+ end
6
+
3
7
  appraise 'faraday-09' do
8
+ remove_gem 'rubocop'
9
+
4
10
  group :test do
5
11
  gem 'faraday', '~> 0.9'
6
12
  end
7
13
  end
8
14
 
9
15
  appraise 'faraday-10' do
16
+ remove_gem 'rubocop'
17
+
10
18
  group :test do
11
19
  gem 'faraday', '~> 1.0'
12
20
  end
13
21
  end
14
22
 
15
23
  appraise 'rails-70' do
24
+ remove_gem 'rubocop'
25
+
16
26
  group :test do
17
27
  gem 'rails', '~> 7.0.0'
18
28
  gem 'sqlite3', '~> 1.4'
@@ -20,6 +30,8 @@ appraise 'rails-70' do
20
30
  end
21
31
 
22
32
  appraise 'rails-61' do
33
+ remove_gem 'rubocop'
34
+
23
35
  group :test do
24
36
  gem 'rails', '~> 6.1.0'
25
37
  gem 'sqlite3', '~> 1.4'
@@ -27,6 +39,8 @@ appraise 'rails-61' do
27
39
  end
28
40
 
29
41
  appraise 'rails-60' do
42
+ remove_gem 'rubocop'
43
+
30
44
  group :test do
31
45
  gem 'rails', '~> 6.0.0'
32
46
  gem 'sqlite3', '~> 1.4'
@@ -34,6 +48,8 @@ appraise 'rails-60' do
34
48
  end
35
49
 
36
50
  appraise 'rails-52' do
51
+ remove_gem 'rubocop'
52
+
37
53
  group :test do
38
54
  gem 'rails', '~> 5.2.0'
39
55
  gem 'sqlite3', '~> 1.4'
@@ -41,6 +57,8 @@ appraise 'rails-52' do
41
57
  end
42
58
 
43
59
  appraise 'rails-51' do
60
+ remove_gem 'rubocop'
61
+
44
62
  group :test do
45
63
  gem 'rails', '~> 5.1.0'
46
64
  gem 'sqlite3', '~> 1.4'
@@ -48,6 +66,8 @@ appraise 'rails-51' do
48
66
  end
49
67
 
50
68
  appraise 'rails-50' do
69
+ remove_gem 'rubocop'
70
+
51
71
  group :test do
52
72
  gem 'rails', '~> 5.0.0'
53
73
  gem 'sqlite3', '~> 1.3.6'
@@ -55,18 +75,24 @@ appraise 'rails-50' do
55
75
  end
56
76
 
57
77
  appraise 'redis-40' do
78
+ remove_gem 'rubocop'
79
+
58
80
  group :test do
59
81
  gem 'redis', '~> 4.0'
60
82
  end
61
83
  end
62
84
 
63
85
  appraise 'sidekiq-50' do
86
+ remove_gem 'rubocop'
87
+
64
88
  group :test do
65
89
  gem 'sidekiq', '~> 5.0'
66
90
  end
67
91
  end
68
92
 
69
93
  appraise 'sidekiq-60' do
94
+ remove_gem 'rubocop'
95
+
70
96
  group :test do
71
97
  gem 'sidekiq', '~> 6.0'
72
98
  end
data/CHANGELOG.md CHANGED
@@ -1,100 +1,164 @@
1
1
  # Changelog
2
+
2
3
  All notable changes to this project will be documented in this file.
3
4
 
4
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
5
6
 
6
- ## [Unreleased]
7
+ ## Unreleased
8
+
9
+ ---
10
+
11
+ ### New
12
+
13
+ ### Changes
14
+
15
+ ### Fixes
16
+
17
+ ### Breaks
18
+
19
+ ## [1.14.0] - (2023-07-31)
20
+
21
+ ### New
22
+
23
+ - Tests with Ruby 3.2
24
+
25
+ ### Changed
26
+
27
+ - Replace reprecated `!render.view_component` hook with `render.view_component`
28
+ - Removed tests for Rails 5.0 and 5.1
7
29
 
8
30
  ## [1.13.0] - 2022-04-14
31
+
9
32
  ### Added
33
+
10
34
  - Support for `view_component` gem (#42)
11
35
  - Support for Ruby 3.1 and Rails 7.0 (formally)
12
36
 
13
37
  ## [1.12.1] - 2022-03-21
38
+
14
39
  ### Added
40
+
15
41
  - More commands whitelisted in Redis span metadata (#44)
16
42
 
17
43
  ## [1.12.0] - 2021-08-24
44
+
18
45
  ### Added
46
+
19
47
  - Support for `redis` gem (#34)
20
48
 
21
49
  ### Removed
50
+
22
51
  - Support for Ruby 2.4 (hard gem requirement)
23
52
 
24
53
  ## [1.11.0] - 2020-12-18
54
+
25
55
  ### Removed
56
+
26
57
  - Support for Ruby 2.4 and Rails 4.2
27
58
 
28
59
  ### Fixed
60
+
29
61
  - Deprecation warnings due to block capture and keyword arguments
30
62
 
31
63
  ## [1.10.0] - 2020-03-05
64
+
32
65
  ### Added
66
+
33
67
  - Support for Faraday 1.0
34
68
 
35
69
  ## [1.9.0] - 2019-12-17
70
+
36
71
  ### Fixed
37
- - [Rack] Fix exceptions raised on trace submit corrupting the response
72
+
73
+ - \[Rack] Fix exceptions raised on trace submit corrupting the response
38
74
 
39
75
  ### Added
76
+
40
77
  - Rack: Collect redirect locations (#14)
41
78
 
42
79
  ## [1.8.0] - 2019-10-25
80
+
43
81
  ### Added
82
+
44
83
  - Improve compatibility with Rails 6.0
45
84
 
46
85
  ## [1.7.1] - 2019-06-15
86
+
47
87
  ### Fixed
88
+
48
89
  - Reworked Faraday probe to not override connection middleware stack
49
90
 
50
91
  ## [1.7.0] - 2019-05-21
92
+
51
93
  ### Added
94
+
52
95
  - Restify probe: Attach HTTP response status (#12, #13)
53
96
 
54
97
  ## [1.6.2] - 2019-05-16
98
+
55
99
  ### Fixed
100
+
56
101
  - The Faraday probe dropped Faraday's default request encoder
57
102
 
58
103
  ## [1.6.1] - 2019-05-14
104
+
59
105
  ### Fixed
106
+
60
107
  - Fix release pipeline; no code changed
61
108
 
62
109
  ## [1.6.0] - 2019-05-14
110
+
63
111
  ### Added
112
+
64
113
  - Add faraday probe (#11)
65
114
 
66
115
  ## [1.5.1] - 2019-05-14
116
+
67
117
  ### Fixed
118
+
68
119
  - Avoid using internal AMQP constant: Fix compat with amq-protocol 2.3+
69
120
 
70
121
  ## [1.5.0] - 2019-05-14
122
+
71
123
  ### Added
124
+
72
125
  - Add ActiveJob perform probe
73
126
 
74
127
  ### Changed
128
+
75
129
  - Capture endpoint names for grape web requests
76
130
  - `attach_error` accepts errors without backtraces and string messages
77
131
 
78
132
  ## [1.4.0] - 2019-05-14
133
+
79
134
  ### Added
135
+
80
136
  - Add global `#attach_error` for manual error reporting
81
137
 
82
138
  ## [1.3.0] - 2019-05-14
139
+
83
140
  ### Added
141
+
84
142
  - Add exception serialization to trace and protocol
85
143
  - Add exception reporting to Sidekiq, Msgr, Rack and Rails
86
144
 
87
145
  ## [1.2.1] - 2019-05-14
146
+
88
147
  ### Changed
148
+
89
149
  - Improve AMQP connection recovery
90
150
  - Fix dynamic probe loading
91
151
 
92
152
  ## [1.2.0] - 2019-05-14
153
+
93
154
  ### Added
155
+
94
156
  - Collect response metadata in rack instrumentation
95
157
 
96
158
  ## [1.1.0] - 2019-05-14
159
+
97
160
  ### Added
161
+
98
162
  - Add metadata to rack instrumentation
99
163
  - Add msgr server & client instrumentation
100
164
  - Add sidekiq client instrumentation
@@ -102,26 +166,35 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
102
166
  - Add acfs request parameter tracing
103
167
 
104
168
  ## [1.0.1] - 2019-05-14
169
+
105
170
  ### Fixed
171
+
106
172
  - Fix issue with `enabled` configuration flag (#1)
107
173
 
108
174
  ## [1.0.0] - 2019-05-14
175
+
109
176
  ### Fixed
177
+
110
178
  - Fix issue with acfs middleware on non-tracing contexts
111
179
 
112
180
  ### Changed
181
+
113
182
  - Simplify restify probe to only extend base adapter
114
183
  - Remove FQDN lookup as it failed on missing RDNS
115
184
 
116
185
  ## 0.2.0 - 2019-05-14
186
+
117
187
  ### Changed
188
+
118
189
  - Rename gem to mnemosyne-ruby due to name conflict
119
190
 
120
191
  ### Added
192
+
121
193
  - Add platform identifier
122
194
 
123
- [Unreleased]: https://github.com/mnemosyne-mon/mnemosyne-ruby/compare/v1.12.1...HEAD
124
- [1.12.0]: https://github.com/mnemosyne-mon/mnemosyne-ruby/compare/v1.12.0...v1.12.1
195
+ [1.14.0]: https://github.com/mnemosyne-mon/mnemosyne-ruby/compare/v1.14.0...v1.13.0
196
+ [1.13.0]: https://github.com/mnemosyne-mon/mnemosyne-ruby/compare/v1.13.0...v1.12.1
197
+ [1.12.1]: https://github.com/mnemosyne-mon/mnemosyne-ruby/compare/v1.12.1...v1.12.0
125
198
  [1.12.0]: https://github.com/mnemosyne-mon/mnemosyne-ruby/compare/v1.10.0...v1.12.0
126
199
  [1.11.0]: https://github.com/mnemosyne-mon/mnemosyne-ruby/compare/v1.10.0...v1.11.0
127
200
  [1.10.0]: https://github.com/mnemosyne-mon/mnemosyne-ruby/compare/v1.9.0...v1.10.0
data/Gemfile CHANGED
@@ -6,11 +6,12 @@ source 'https://rubygems.org'
6
6
  gemspec
7
7
 
8
8
  gem 'rake', '~> 13.0'
9
- gem 'rspec', '~> 3.6'
10
- gem 'rubocop', '~> 1.27.0'
11
- gem 'timecop', '~> 0.9.1'
9
+ gem 'rubocop', '~> 1.54.0'
12
10
 
13
11
  group :test do
12
+ gem 'rspec', '~> 3.6'
13
+ gem 'timecop', '~> 0.9.1'
14
+
14
15
  gem 'faraday'
15
16
  gem 'msgr'
16
17
  gem 'rails'
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  The ruby client plugin for the Mnemosyne monitoring system. It extracts full application traces including cross-application requests for distributed applications (services etc.).
4
4
 
5
- Currently supported probes:
5
+ Supported probes:
6
6
 
7
7
  * Acfs: Remote calls including tracing middleware
8
8
  * ActionController: Processing actions and rendering
@@ -18,20 +18,12 @@ Currently supported probes:
18
18
 
19
19
  ## Installation
20
20
 
21
- Add this line to your application's Gemfile:
21
+ Add this line to your Gemfile:
22
22
 
23
23
  ```ruby
24
24
  gem 'mnemosyne-ruby', '~> 1.0'
25
25
  ```
26
26
 
27
- And then execute:
28
-
29
- $ bundle
30
-
31
- Or install it yourself as:
32
-
33
- $ gem install mnemosyne
34
-
35
27
  Note: Removing support for ancient Ruby or Rails versions will not result in a new major. Please be extra careful when using ancient Ruby or Rails versions and updating gems.
36
28
 
37
29
  ## Usage
@@ -41,4 +33,3 @@ TODO
41
33
  ## License
42
34
 
43
35
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
44
-
@@ -3,18 +3,17 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "rake", "~> 13.0"
6
- gem "rspec", "~> 3.6"
7
- gem "rubocop", "~> 1.27.0"
8
- gem "timecop", "~> 0.9.1"
9
6
 
10
7
  group :test do
8
+ gem "rspec", "~> 3.6"
9
+ gem "timecop", "~> 0.9.1"
11
10
  gem "faraday"
12
11
  gem "msgr"
13
- gem "rails", "~> 5.1.0"
12
+ gem "rails"
14
13
  gem "redis"
15
14
  gem "restify"
16
15
  gem "sidekiq"
17
- gem "sqlite3", "~> 1.4"
16
+ gem "sqlite3"
18
17
  gem "webmock"
19
18
  end
20
19
 
@@ -3,11 +3,10 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "rake", "~> 13.0"
6
- gem "rspec", "~> 3.6"
7
- gem "rubocop", "~> 1.27.0"
8
- gem "timecop", "~> 0.9.1"
9
6
 
10
7
  group :test do
8
+ gem "rspec", "~> 3.6"
9
+ gem "timecop", "~> 0.9.1"
11
10
  gem "faraday", "~> 0.9"
12
11
  gem "msgr"
13
12
  gem "rails"
@@ -3,11 +3,10 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "rake", "~> 13.0"
6
- gem "rspec", "~> 3.6"
7
- gem "rubocop", "~> 1.27.0"
8
- gem "timecop", "~> 0.9.1"
9
6
 
10
7
  group :test do
8
+ gem "rspec", "~> 3.6"
9
+ gem "timecop", "~> 0.9.1"
11
10
  gem "faraday", "~> 1.0"
12
11
  gem "msgr"
13
12
  gem "rails"
@@ -3,11 +3,10 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "rake", "~> 13.0"
6
- gem "rspec", "~> 3.6"
7
- gem "rubocop", "~> 1.27.0"
8
- gem "timecop", "~> 0.9.1"
9
6
 
10
7
  group :test do
8
+ gem "rspec", "~> 3.6"
9
+ gem "timecop", "~> 0.9.1"
11
10
  gem "faraday"
12
11
  gem "msgr"
13
12
  gem "rails", "~> 5.2.0"
@@ -3,11 +3,10 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "rake", "~> 13.0"
6
- gem "rspec", "~> 3.6"
7
- gem "rubocop", "~> 1.27.0"
8
- gem "timecop", "~> 0.9.1"
9
6
 
10
7
  group :test do
8
+ gem "rspec", "~> 3.6"
9
+ gem "timecop", "~> 0.9.1"
11
10
  gem "faraday"
12
11
  gem "msgr"
13
12
  gem "rails", "~> 6.0.0"
@@ -3,11 +3,10 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "rake", "~> 13.0"
6
- gem "rspec", "~> 3.6"
7
- gem "rubocop", "~> 1.27.0"
8
- gem "timecop", "~> 0.9.1"
9
6
 
10
7
  group :test do
8
+ gem "rspec", "~> 3.6"
9
+ gem "timecop", "~> 0.9.1"
11
10
  gem "faraday"
12
11
  gem "msgr"
13
12
  gem "rails", "~> 6.1.0"
@@ -3,11 +3,10 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "rake", "~> 13.0"
6
- gem "rspec", "~> 3.6"
7
- gem "rubocop", "~> 1.27.0"
8
- gem "timecop", "~> 0.9.1"
9
6
 
10
7
  group :test do
8
+ gem "rspec", "~> 3.6"
9
+ gem "timecop", "~> 0.9.1"
11
10
  gem "faraday"
12
11
  gem "msgr"
13
12
  gem "rails", "~> 7.0.0"
@@ -3,11 +3,10 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "rake", "~> 13.0"
6
- gem "rspec", "~> 3.6"
7
- gem "rubocop", "~> 1.27.0"
8
- gem "timecop", "~> 0.9.1"
9
6
 
10
7
  group :test do
8
+ gem "rspec", "~> 3.6"
9
+ gem "timecop", "~> 0.9.1"
11
10
  gem "faraday"
12
11
  gem "msgr"
13
12
  gem "rails"
@@ -3,11 +3,10 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "rake", "~> 13.0"
6
- gem "rspec", "~> 3.6"
7
- gem "rubocop", "~> 1.27.0"
8
- gem "timecop", "~> 0.9.1"
9
6
 
10
7
  group :test do
8
+ gem "rspec", "~> 3.6"
9
+ gem "timecop", "~> 0.9.1"
11
10
  gem "faraday"
12
11
  gem "msgr"
13
12
  gem "rails"
@@ -3,11 +3,10 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "rake", "~> 13.0"
6
- gem "rspec", "~> 3.6"
7
- gem "rubocop", "~> 1.27.0"
8
- gem "timecop", "~> 0.9.1"
9
6
 
10
7
  group :test do
8
+ gem "rspec", "~> 3.6"
9
+ gem "timecop", "~> 0.9.1"
11
10
  gem "faraday"
12
11
  gem "msgr"
13
12
  gem "rails"
@@ -28,14 +28,16 @@ module Mnemosyne
28
28
 
29
29
  raise ArgumentError.new 'Platform is required' if platform.blank?
30
30
 
31
- if @platform =~ /[^a-zA-Z0-9\-]/
32
- raise ArgumentError.new \
31
+ if @platform =~ /[^a-zA-Z0-9-]/
32
+ raise ArgumentError.new(
33
33
  'Platform may only contain alphanumeric characters'
34
+ )
34
35
  end
35
36
 
36
37
  unless @platform =~ /\A[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*\z/
37
- raise ArgumentError.new \
38
+ raise ArgumentError.new(
38
39
  'Platform must start and end with a alphanumeric characters'
40
+ )
39
41
  end
40
42
 
41
43
  raise ArgumentError.new('Application is required') if application.blank?
@@ -10,7 +10,7 @@ module Mnemosyne
10
10
 
11
11
  return @app.call(env) unless trace
12
12
 
13
- span = ::Mnemosyne::Span.new 'external.http.faraday', \
13
+ span = ::Mnemosyne::Span.new 'external.http.faraday',
14
14
  meta: {url: env[:url].to_s, method: env[:method]}
15
15
 
16
16
  span.start!
@@ -37,8 +37,8 @@ module Mnemosyne
37
37
  @closed
38
38
  end
39
39
 
40
- def each(*args, &block)
41
- @body.each(*args, &block)
40
+ def each(...)
41
+ @body.each(...)
42
42
  rescue StandardError, LoadError, SyntaxError => e
43
43
  @trace.attach_error(e)
44
44
  raise
@@ -22,7 +22,7 @@ module Mnemosyne
22
22
  callers.shift until callers[0].include? 'lib/acfs/global.rb:'
23
23
 
24
24
  meta = {
25
- backtrace: callers[1..-1]
25
+ backtrace: callers[1..]
26
26
  }
27
27
 
28
28
  span = ::Mnemosyne::Span.new 'external.run.acfs',
@@ -13,9 +13,7 @@ module Mnemosyne
13
13
  def call(request)
14
14
  if (trace = ::Mnemosyne::Instrumenter.current_trace)
15
15
  meta = {url: request.uri.to_s, method: request.method}
16
-
17
- span = ::Mnemosyne::Span.new 'external.http.restify', \
18
- meta: meta
16
+ span = ::Mnemosyne::Span.new 'external.http.restify', meta: meta
19
17
 
20
18
  span.start!
21
19
 
@@ -5,7 +5,7 @@ module Mnemosyne
5
5
  module ViewComponent
6
6
  module RenderComponent
7
7
  class Probe < ::Mnemosyne::Probe
8
- subscribe '!render.view_component'
8
+ subscribe 'render.view_component'
9
9
 
10
10
  def call(trace, _name, start, finish, _id, payload)
11
11
  start = ::Mnemosyne::Clock.to_tick(start)
@@ -3,7 +3,7 @@
3
3
  module Mnemosyne
4
4
  module VERSION
5
5
  MAJOR = 1
6
- MINOR = 13
6
+ MINOR = 14
7
7
  PATCH = 0
8
8
  STAGE = nil
9
9
 
@@ -26,9 +26,7 @@ Gem::Specification.new do |spec|
26
26
  spec.executables = spec.files.grep(%r{^bin/}) {|f| File.basename(f) }
27
27
  spec.require_paths = %w[lib]
28
28
 
29
- spec.required_ruby_version = '>= 2.5'
29
+ spec.required_ruby_version = '>= 2.7'
30
30
  spec.add_runtime_dependency 'activesupport', '>= 4'
31
31
  spec.add_runtime_dependency 'bunny'
32
-
33
- spec.add_development_dependency 'bundler'
34
32
  end
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.13.0
4
+ version: 1.14.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: 2022-04-14 00:00:00.000000000 Z
11
+ date: 2023-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -38,20 +38,6 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: bundler
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
41
  description:
56
42
  email:
57
43
  - jgraichen@altimos.de
@@ -63,18 +49,19 @@ files:
63
49
  - ".github/workflows/lint.yml"
64
50
  - ".github/workflows/test.yml"
65
51
  - ".gitignore"
52
+ - ".markdownlint.yml"
66
53
  - ".rspec"
67
54
  - ".rubocop.yml"
55
+ - ".vscode/ltex.dictionary.en-US.txt"
68
56
  - Appraisals
69
57
  - CHANGELOG.md
70
58
  - Gemfile
71
59
  - LICENSE
72
60
  - README.md
73
61
  - Rakefile
62
+ - gemfiles/core.gemfile
74
63
  - gemfiles/faraday_09.gemfile
75
64
  - gemfiles/faraday_10.gemfile
76
- - gemfiles/rails_50.gemfile
77
- - gemfiles/rails_51.gemfile
78
65
  - gemfiles/rails_52.gemfile
79
66
  - gemfiles/rails_60.gemfile
80
67
  - gemfiles/rails_61.gemfile
@@ -140,14 +127,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
140
127
  requirements:
141
128
  - - ">="
142
129
  - !ruby/object:Gem::Version
143
- version: '2.5'
130
+ version: '2.7'
144
131
  required_rubygems_version: !ruby/object:Gem::Requirement
145
132
  requirements:
146
133
  - - ">="
147
134
  - !ruby/object:Gem::Version
148
135
  version: '0'
149
136
  requirements: []
150
- rubygems_version: 3.3.3
137
+ rubygems_version: 3.4.10
151
138
  signing_key:
152
139
  specification_version: 4
153
140
  summary: Ruby/Rails client for Mnemosyne APM
@@ -1,28 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "rake", "~> 13.0"
6
- gem "rspec", "~> 3.6"
7
- gem "rubocop", "~> 1.27.0"
8
- gem "timecop", "~> 0.9.1"
9
-
10
- group :test do
11
- gem "faraday"
12
- gem "msgr"
13
- gem "rails", "~> 5.0.0"
14
- gem "redis"
15
- gem "restify"
16
- gem "sidekiq"
17
- gem "sqlite3", "~> 1.3.6"
18
- gem "webmock"
19
- end
20
-
21
- group :development do
22
- gem "appraisal"
23
- gem "rake-release", "~> 1.3.0"
24
- gem "pry", require: false
25
- gem "pry-byebug", require: false
26
- end
27
-
28
- gemspec path: "../"