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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a9e8a2c361a45a3102bf47846a7bccbb18fc795b3689781ac2c5161565f54273
4
- data.tar.gz: 294ff80136968d18669a2f30b140e62a6b61217461e6d1f7ea8bf3d50b001e25
3
+ metadata.gz: d21523f741fef0a9443c7c93e81f220183ffd1cf19f7cdd985d69c76dee0ec51
4
+ data.tar.gz: ab0c1a21e65bf42ad5bb9eb92539421246643ec195257ca95a5024aa6217589b
5
5
  SHA512:
6
- metadata.gz: 4a27f68be6b2f522f77bd8cc161fe9c890865c119383acd64100c62d3526e323954e51868c28e275d11fb34d7e0a2a8e87e5e10b40e21cfedd81eced2bb36ca9
7
- data.tar.gz: 7a0224518fbba1af85829fc5547c1d7597bb9f5ecc7b0164dd420db89d41f3d0b2167999b05e206c552b8b6b009871a5c780e7d360c41c993567041920f61b26
6
+ metadata.gz: af9d3e285a017330119b9ced137fb3cf4c0059789359620170df6e4a26897036dda5ff787ee5d77d6e6960a77fc6b86443215d46f14def921ba7cbd737edc410
7
+ data.tar.gz: 9a36770c25abbdeb8c3ddb38a0fb4424228065fd3c58c364aa52538d0ddf5ca5ead683da36a18604ee71ff08880a9a65c461b536cddeb914d370c03655a34b73
@@ -11,14 +11,13 @@ jobs:
11
11
  strategy:
12
12
  fail-fast: false
13
13
  matrix:
14
- ruby: ['2.7', '2.6', '2.5', '2.4']
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
- architecture: 'x64'
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 ${{ matrix.bundle_args }} update --jobs=$(nproc) --retry=3
87
+ ${{ matrix.env }} bundle update --jobs=$(nproc) --retry=3
106
88
 
107
89
  - name: Run rspec
108
90
  env:
@@ -1,5 +1,5 @@
1
1
  AllCops:
2
- TargetRubyVersion: 2.3
2
+ TargetRubyVersion: 2.5
3
3
  Exclude:
4
4
  - 'vendor/**/*'
5
5
  - 'gemfiles/**/*'
data/Appraisals CHANGED
@@ -27,10 +27,3 @@ appraise 'rails-50' do
27
27
  gem 'sqlite3', '~> 1.3.6', require: false
28
28
  end
29
29
  end
30
-
31
- appraise 'rails-42' do
32
- group :test do
33
- gem 'rails', '~> 4.2.0', require: false
34
- gem 'sqlite3', '~> 1.3.6', require: false
35
- end
36
- end
@@ -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
@@ -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.67.1"
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
@@ -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.67.1"
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
@@ -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.67.1"
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
@@ -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.67.1"
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, &Proc.new)
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
@@ -3,7 +3,7 @@
3
3
  module Mnemosyne
4
4
  module VERSION
5
5
  MAJOR = 1
6
- MINOR = 10
6
+ MINOR = 11
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.10.0
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-03-05 00:00:00.000000000 Z
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.0.6
140
+ rubygems_version: 3.2.1
142
141
  signing_key:
143
142
  specification_version: 4
144
143
  summary: Ruby/Rails client for Mnemosyne APM
@@ -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: "../"