mnemosyne-ruby 1.10.0 → 1.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/build.yml +4 -22
- data/.rubocop.yml +1 -1
- data/Appraisals +0 -7
- data/CHANGELOG.md +5 -0
- data/README.md +2 -0
- data/gemfiles/rails_50.gemfile +2 -1
- data/gemfiles/rails_51.gemfile +2 -1
- data/gemfiles/rails_52.gemfile +2 -1
- data/gemfiles/rails_60.gemfile +2 -1
- data/lib/mnemosyne/instrumenter.rb +3 -3
- data/lib/mnemosyne/middleware/rack.rb +4 -9
- data/lib/mnemosyne/version.rb +1 -1
- metadata +3 -4
- data/gemfiles/rails_42.gemfile +0 -26
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d21523f741fef0a9443c7c93e81f220183ffd1cf19f7cdd985d69c76dee0ec51
|
4
|
+
data.tar.gz: ab0c1a21e65bf42ad5bb9eb92539421246643ec195257ca95a5024aa6217589b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af9d3e285a017330119b9ced137fb3cf4c0059789359620170df6e4a26897036dda5ff787ee5d77d6e6960a77fc6b86443215d46f14def921ba7cbd737edc410
|
7
|
+
data.tar.gz: 9a36770c25abbdeb8c3ddb38a0fb4424228065fd3c58c364aa52538d0ddf5ca5ead683da36a18604ee71ff08880a9a65c461b536cddeb914d370c03655a34b73
|
data/.github/workflows/build.yml
CHANGED
@@ -11,14 +11,13 @@ jobs:
|
|
11
11
|
strategy:
|
12
12
|
fail-fast: false
|
13
13
|
matrix:
|
14
|
-
ruby: ['2.7', '2.6', '2.5'
|
14
|
+
ruby: ['2.7', '2.6', '2.5']
|
15
15
|
suite:
|
16
16
|
- core
|
17
17
|
- faraday-0.9
|
18
18
|
- faraday-1.0
|
19
19
|
- msgr
|
20
20
|
- rack
|
21
|
-
- rails-4.2
|
22
21
|
- rails-5.0
|
23
22
|
- rails-5.1
|
24
23
|
- rails-5.2
|
@@ -39,10 +38,6 @@ jobs:
|
|
39
38
|
spec: --tag probe:msgr
|
40
39
|
- suite: rack
|
41
40
|
spec: --tag probe:rack
|
42
|
-
- suite: rails-4.2
|
43
|
-
spec: --tag probe:rails --tag ~probe
|
44
|
-
env: BUNDLE_GEMFILE=gemfiles/rails_42.gemfile
|
45
|
-
bundle_args: _1.17.3_
|
46
41
|
- suite: rails-5.0
|
47
42
|
spec: --tag probe:rails --tag ~probe
|
48
43
|
env: BUNDLE_GEMFILE=gemfiles/rails_50.gemfile
|
@@ -63,17 +58,6 @@ jobs:
|
|
63
58
|
- suite: sidekiq-6
|
64
59
|
spec: --tag probe:sidekiq
|
65
60
|
env: SIDEKIQ_VERSION='~> 6.0'
|
66
|
-
exclude:
|
67
|
-
- ruby: 2.7
|
68
|
-
suite: rails-4.2
|
69
|
-
- ruby: 2.4
|
70
|
-
suite: rails-6.0
|
71
|
-
- ruby: 2.4
|
72
|
-
suite: sidekiq-6
|
73
|
-
- ruby: 2.3
|
74
|
-
suite: rails-6.0
|
75
|
-
- ruby: 2.3
|
76
|
-
suite: sidekiq-6
|
77
61
|
|
78
62
|
|
79
63
|
services:
|
@@ -84,25 +68,23 @@ jobs:
|
|
84
68
|
|
85
69
|
steps:
|
86
70
|
- uses: actions/checkout@master
|
71
|
+
|
87
72
|
- uses: actions/setup-ruby@v1
|
88
73
|
with:
|
89
74
|
ruby-version: ${{ matrix.ruby }}
|
90
|
-
|
75
|
+
|
91
76
|
- uses: actions/cache@v1
|
92
77
|
with:
|
93
78
|
path: vendor
|
94
79
|
key: v1-ruby-${{ matrix.ruby }}-suite-${{ matrix.suite }}
|
95
80
|
|
96
|
-
- name: Install debian dependencies
|
97
|
-
run: sudo apt-get install --yes --quiet libsqlite3-dev
|
98
|
-
|
99
81
|
- name: Install Ruby dependencies
|
100
82
|
run: |
|
101
83
|
set -x
|
102
84
|
gem install bundler --version '1.17.3'
|
103
85
|
bundle config path "$(pwd)/vendor/bundle"
|
104
86
|
bundle config without development
|
105
|
-
${{ matrix.env }} bundle
|
87
|
+
${{ matrix.env }} bundle update --jobs=$(nproc) --retry=3
|
106
88
|
|
107
89
|
- name: Run rspec
|
108
90
|
env:
|
data/.rubocop.yml
CHANGED
data/Appraisals
CHANGED
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
|
|
4
4
|
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
5
|
|
6
6
|
## [Unreleased]
|
7
|
+
### Removed
|
8
|
+
- Support for Ruby 2.4 and Rails 4.2
|
9
|
+
|
10
|
+
### Fixed
|
11
|
+
- Deprecation warnings due to block capture and keyword arguments
|
7
12
|
|
8
13
|
## [1.10.0] - 2020-03-05
|
9
14
|
### Added
|
data/README.md
CHANGED
@@ -31,6 +31,8 @@ Or install it yourself as:
|
|
31
31
|
|
32
32
|
$ gem install mnemosyne
|
33
33
|
|
34
|
+
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.
|
35
|
+
|
34
36
|
## Usage
|
35
37
|
|
36
38
|
TODO
|
data/gemfiles/rails_50.gemfile
CHANGED
@@ -4,7 +4,7 @@ source "https://rubygems.org"
|
|
4
4
|
|
5
5
|
gem "rake", "~> 12.0"
|
6
6
|
gem "rspec", "~> 3.6"
|
7
|
-
gem "rubocop", "~> 0.
|
7
|
+
gem "rubocop", "~> 0.80.1"
|
8
8
|
gem "timecop", "~> 0.9.1"
|
9
9
|
|
10
10
|
group :test do
|
@@ -19,6 +19,7 @@ end
|
|
19
19
|
|
20
20
|
group :development do
|
21
21
|
gem "appraisal"
|
22
|
+
gem "rake-release", "~> 1.2.1"
|
22
23
|
gem "pry", require: false
|
23
24
|
gem "pry-byebug", require: false
|
24
25
|
end
|
data/gemfiles/rails_51.gemfile
CHANGED
@@ -4,7 +4,7 @@ source "https://rubygems.org"
|
|
4
4
|
|
5
5
|
gem "rake", "~> 12.0"
|
6
6
|
gem "rspec", "~> 3.6"
|
7
|
-
gem "rubocop", "~> 0.
|
7
|
+
gem "rubocop", "~> 0.80.1"
|
8
8
|
gem "timecop", "~> 0.9.1"
|
9
9
|
|
10
10
|
group :test do
|
@@ -19,6 +19,7 @@ end
|
|
19
19
|
|
20
20
|
group :development do
|
21
21
|
gem "appraisal"
|
22
|
+
gem "rake-release", "~> 1.2.1"
|
22
23
|
gem "pry", require: false
|
23
24
|
gem "pry-byebug", require: false
|
24
25
|
end
|
data/gemfiles/rails_52.gemfile
CHANGED
@@ -4,7 +4,7 @@ source "https://rubygems.org"
|
|
4
4
|
|
5
5
|
gem "rake", "~> 12.0"
|
6
6
|
gem "rspec", "~> 3.6"
|
7
|
-
gem "rubocop", "~> 0.
|
7
|
+
gem "rubocop", "~> 0.80.1"
|
8
8
|
gem "timecop", "~> 0.9.1"
|
9
9
|
|
10
10
|
group :test do
|
@@ -19,6 +19,7 @@ end
|
|
19
19
|
|
20
20
|
group :development do
|
21
21
|
gem "appraisal"
|
22
|
+
gem "rake-release", "~> 1.2.1"
|
22
23
|
gem "pry", require: false
|
23
24
|
gem "pry-byebug", require: false
|
24
25
|
end
|
data/gemfiles/rails_60.gemfile
CHANGED
@@ -4,7 +4,7 @@ source "https://rubygems.org"
|
|
4
4
|
|
5
5
|
gem "rake", "~> 12.0"
|
6
6
|
gem "rspec", "~> 3.6"
|
7
|
-
gem "rubocop", "~> 0.
|
7
|
+
gem "rubocop", "~> 0.80.1"
|
8
8
|
gem "timecop", "~> 0.9.1"
|
9
9
|
|
10
10
|
group :test do
|
@@ -19,6 +19,7 @@ end
|
|
19
19
|
|
20
20
|
group :development do
|
21
21
|
gem "appraisal"
|
22
|
+
gem "rake-release", "~> 1.2.1"
|
22
23
|
gem "pry", require: false
|
23
24
|
gem "pry-byebug", require: false
|
24
25
|
end
|
@@ -31,7 +31,7 @@ module Mnemosyne
|
|
31
31
|
return trace
|
32
32
|
end
|
33
33
|
|
34
|
-
trace = self.current_trace = Trace.new(self, name, kwargs)
|
34
|
+
trace = self.current_trace = Trace.new(self, name, **kwargs)
|
35
35
|
|
36
36
|
return trace unless block_given?
|
37
37
|
|
@@ -85,10 +85,10 @@ module Mnemosyne
|
|
85
85
|
@instance = old
|
86
86
|
end
|
87
87
|
|
88
|
-
def trace(*args)
|
88
|
+
def trace(*args, **kwargs)
|
89
89
|
return unless (instrumenter = instance)
|
90
90
|
|
91
|
-
instrumenter.trace(*args)
|
91
|
+
instrumenter.trace(*args, **kwargs)
|
92
92
|
end
|
93
93
|
|
94
94
|
def current_trace
|
@@ -16,14 +16,9 @@ module Mnemosyne
|
|
16
16
|
@body.respond_to?(*args)
|
17
17
|
end
|
18
18
|
|
19
|
-
def method_missing(*args)
|
19
|
+
def method_missing(*args, &block)
|
20
20
|
super if args.first && args.first.to_s == 'to_ary'
|
21
|
-
|
22
|
-
if block_given?
|
23
|
-
@body.__send__(*args, &Proc.new)
|
24
|
-
else
|
25
|
-
@body.__send__(*args)
|
26
|
-
end
|
21
|
+
@body.__send__(*args, &block)
|
27
22
|
end
|
28
23
|
|
29
24
|
def close
|
@@ -42,8 +37,8 @@ module Mnemosyne
|
|
42
37
|
@closed
|
43
38
|
end
|
44
39
|
|
45
|
-
def each(*args)
|
46
|
-
@body.each(*args, &
|
40
|
+
def each(*args, &block)
|
41
|
+
@body.each(*args, &block)
|
47
42
|
rescue StandardError, LoadError, SyntaxError => e
|
48
43
|
@trace.attach_error(e)
|
49
44
|
raise
|
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.11.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: 2020-
|
11
|
+
date: 2020-12-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -72,7 +72,6 @@ files:
|
|
72
72
|
- LICENSE
|
73
73
|
- README.md
|
74
74
|
- Rakefile
|
75
|
-
- gemfiles/rails_42.gemfile
|
76
75
|
- gemfiles/rails_50.gemfile
|
77
76
|
- gemfiles/rails_51.gemfile
|
78
77
|
- gemfiles/rails_52.gemfile
|
@@ -138,7 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
138
137
|
- !ruby/object:Gem::Version
|
139
138
|
version: '0'
|
140
139
|
requirements: []
|
141
|
-
rubygems_version: 3.
|
140
|
+
rubygems_version: 3.2.1
|
142
141
|
signing_key:
|
143
142
|
specification_version: 4
|
144
143
|
summary: Ruby/Rails client for Mnemosyne APM
|
data/gemfiles/rails_42.gemfile
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
# This file was generated by Appraisal
|
2
|
-
|
3
|
-
source "https://rubygems.org"
|
4
|
-
|
5
|
-
gem "rake", "~> 12.0"
|
6
|
-
gem "rspec", "~> 3.6"
|
7
|
-
gem "rubocop", "~> 0.67.1"
|
8
|
-
gem "timecop", "~> 0.9.1"
|
9
|
-
|
10
|
-
group :test do
|
11
|
-
gem "faraday", nil, require: false
|
12
|
-
gem "msgr", nil, require: false
|
13
|
-
gem "restify", nil, require: false
|
14
|
-
gem "sidekiq", nil, require: false
|
15
|
-
gem "rails", "~> 4.2.0", require: false
|
16
|
-
gem "sqlite3", "~> 1.3.6", require: false
|
17
|
-
gem "webmock", require: false
|
18
|
-
end
|
19
|
-
|
20
|
-
group :development do
|
21
|
-
gem "appraisal"
|
22
|
-
gem "pry", require: false
|
23
|
-
gem "pry-byebug", require: false
|
24
|
-
end
|
25
|
-
|
26
|
-
gemspec path: "../"
|