mnemosyne-ruby 1.12.0 → 1.12.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/lint.yml +12 -14
- data/.github/workflows/{build.yml → test.yml} +38 -28
- data/Appraisals +45 -8
- data/CHANGELOG.md +6 -1
- data/Gemfile +9 -10
- data/gemfiles/faraday_09.gemfile +28 -0
- data/gemfiles/faraday_10.gemfile +28 -0
- data/gemfiles/rails_50.gemfile +8 -8
- data/gemfiles/rails_51.gemfile +8 -8
- data/gemfiles/rails_52.gemfile +8 -8
- data/gemfiles/rails_60.gemfile +8 -8
- data/gemfiles/rails_61.gemfile +28 -0
- data/gemfiles/redis_40.gemfile +28 -0
- data/gemfiles/sidekiq_50.gemfile +28 -0
- data/gemfiles/sidekiq_60.gemfile +28 -0
- data/lib/mnemosyne/clock.rb +1 -1
- data/lib/mnemosyne/probes/redis/command.rb +49 -5
- data/lib/mnemosyne/version.rb +2 -2
- data/mnemosyne-ruby.gemspec +5 -1
- metadata +12 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb369932a8e227ce09b8b81c54742d03b7a1c699bd73edc02557723b85e5b97e
|
4
|
+
data.tar.gz: 419342c6956721af9a0b7577df4cc52aae25ac054b8235f81c3dfa07a4f1d197
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27df876e1705c20593a1aa424ac1e5eb86511f82f4aa092adeed6616f185aabd9f33942f9d7b35479516d223c20efcc4d47c27f60e9de37cba410050d97a3abf
|
7
|
+
data.tar.gz: 97c48433208e74ac9ad36657d0fd632d6588c9e20dc0a942ceac2e58f72f3d904047395527b550f175ed32ab965ddd1978223bcea9c33a2176ddd5d8b31277f7
|
data/.github/workflows/lint.yml
CHANGED
@@ -1,25 +1,23 @@
|
|
1
1
|
name: Lint
|
2
|
-
on:
|
2
|
+
on:
|
3
|
+
- pull_request
|
4
|
+
- push
|
5
|
+
|
3
6
|
jobs:
|
4
7
|
rubocop:
|
5
8
|
name: rubocop
|
6
|
-
runs-on: ubuntu-
|
9
|
+
runs-on: ubuntu-20.04
|
7
10
|
|
8
11
|
steps:
|
9
12
|
- uses: actions/checkout@master
|
10
|
-
- uses:
|
11
|
-
|
12
|
-
|
13
|
-
|
13
|
+
- uses: ruby/setup-ruby@v1
|
14
|
+
env:
|
15
|
+
BUNDLE_JOBS: 4
|
16
|
+
BUNDLE_RETRY: 3
|
17
|
+
BUNDLE_WITHOUT: development,test
|
14
18
|
with:
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
- name: Run bundle install
|
19
|
-
run: |
|
20
|
-
bundle config path "$(pwd)/vendor/bundle"
|
21
|
-
bundle config without development,test
|
22
|
-
bundle install --jobs=4 --retry=3
|
19
|
+
ruby-version: 3.0
|
20
|
+
bundler-cache: true
|
23
21
|
|
24
22
|
- name: Run rubocop
|
25
23
|
run: bundle exec rubocop --parallel --color
|
@@ -1,17 +1,21 @@
|
|
1
|
-
name:
|
1
|
+
name: Test
|
2
2
|
on:
|
3
|
-
push
|
4
|
-
|
3
|
+
- push
|
4
|
+
- pull_request
|
5
5
|
|
6
6
|
jobs:
|
7
7
|
test:
|
8
8
|
name: Ruby ${{ matrix.ruby }} / ${{ matrix.suite }}
|
9
|
-
runs-on: ubuntu-
|
9
|
+
runs-on: ubuntu-20.04
|
10
10
|
|
11
11
|
strategy:
|
12
12
|
fail-fast: false
|
13
13
|
matrix:
|
14
|
-
ruby:
|
14
|
+
ruby:
|
15
|
+
- "3.0"
|
16
|
+
- "2.7"
|
17
|
+
- "2.6"
|
18
|
+
- "2.5"
|
15
19
|
suite:
|
16
20
|
- core
|
17
21
|
- faraday-0.9
|
@@ -22,6 +26,7 @@ jobs:
|
|
22
26
|
- rails-5.1
|
23
27
|
- rails-5.2
|
24
28
|
- rails-6.0
|
29
|
+
- rails-6.1
|
25
30
|
- redis-4.0
|
26
31
|
- restify
|
27
32
|
- sidekiq-5
|
@@ -31,38 +36,50 @@ jobs:
|
|
31
36
|
spec: --tag ~probe
|
32
37
|
- suite: faraday-0.9
|
33
38
|
spec: --tag probe:faraday
|
34
|
-
|
39
|
+
gemfile: gemfiles/faraday_09.gemfile
|
35
40
|
- suite: faraday-1.0
|
36
41
|
spec: --tag probe:faraday
|
37
|
-
|
42
|
+
gemfile: gemfiles/faraday_10.gemfile
|
38
43
|
- suite: msgr
|
39
44
|
spec: --tag probe:msgr
|
40
45
|
- suite: rack
|
41
46
|
spec: --tag probe:rack
|
42
47
|
- suite: rails-5.0
|
43
48
|
spec: --tag probe:rails --tag ~probe
|
44
|
-
|
49
|
+
gemfile: gemfiles/rails_50.gemfile
|
45
50
|
- suite: rails-5.1
|
46
51
|
spec: --tag probe:rails --tag ~probe
|
47
|
-
|
52
|
+
gemfile: gemfiles/rails_51.gemfile
|
48
53
|
- suite: rails-5.2
|
49
54
|
spec: --tag probe:rails --tag ~probe
|
50
|
-
|
55
|
+
gemfile: gemfiles/rails_52.gemfile
|
51
56
|
- suite: rails-6.0
|
52
57
|
spec: --tag probe:rails --tag ~probe
|
53
|
-
|
58
|
+
gemfile: gemfiles/rails_60.gemfile
|
59
|
+
- suite: rails-6.1
|
60
|
+
spec: --tag probe:rails --tag ~probe
|
61
|
+
gemfile: gemfiles/rails_61.gemfile
|
54
62
|
- suite: redis-4.0
|
55
63
|
spec: --tag probe:redis
|
56
|
-
|
64
|
+
gemfile: gemfiles/redis_40.gemfile
|
57
65
|
- suite: restify
|
58
66
|
spec: --tag probe:restify
|
59
67
|
- suite: sidekiq-5
|
60
68
|
spec: --tag probe:sidekiq
|
61
|
-
|
69
|
+
gemfile: gemfiles/sidekiq_50.gemfile
|
62
70
|
- suite: sidekiq-6
|
63
71
|
spec: --tag probe:sidekiq
|
64
|
-
|
72
|
+
gemfile: gemfiles/sidekiq_60.gemfile
|
73
|
+
exclude:
|
74
|
+
- suite: rails-5.0
|
75
|
+
ruby: 3.0
|
76
|
+
- suite: rails-5.1
|
77
|
+
ruby: 3.0
|
78
|
+
- suite: rails-5.2
|
79
|
+
ruby: 3.0
|
65
80
|
|
81
|
+
env:
|
82
|
+
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
|
66
83
|
|
67
84
|
services:
|
68
85
|
rabbitmq:
|
@@ -72,27 +89,20 @@ jobs:
|
|
72
89
|
|
73
90
|
steps:
|
74
91
|
- uses: actions/checkout@master
|
75
|
-
|
76
|
-
|
92
|
+
- uses: ruby/setup-ruby@v1
|
93
|
+
env:
|
94
|
+
BUNDLE_JOBS: 4
|
95
|
+
BUNDLE_RETRY: 3
|
96
|
+
BUNDLE_WITHOUT: development,test
|
77
97
|
with:
|
78
98
|
ruby-version: ${{ matrix.ruby }}
|
79
|
-
|
80
|
-
- uses: actions/cache@v2
|
81
|
-
with:
|
82
|
-
path: vendor
|
83
|
-
key: v1-ruby-${{ matrix.ruby }}-suite-${{ matrix.suite }}
|
99
|
+
bundler-cache: true
|
84
100
|
|
85
101
|
- name: Install dependencies
|
86
102
|
run: |
|
87
|
-
set -x
|
88
103
|
sudo apt install -y redis-server
|
89
|
-
gem install bundler --version '1.17.3'
|
90
|
-
bundle config path "$(pwd)/vendor/bundle"
|
91
|
-
bundle config without development
|
92
|
-
${{ matrix.env }} bundle update --jobs=$(nproc) --retry=3
|
93
104
|
|
94
105
|
- name: Run rspec
|
95
106
|
env:
|
96
107
|
AMQP_SERVER: amqp://localhost:${{ job.services.rabbitmq.ports[5672] }}
|
97
|
-
run:
|
98
|
-
${{ matrix.env }} bundle exec rspec --color ${{ matrix.spec }}
|
108
|
+
run: bundle exec rspec --color ${{ matrix.spec }}
|
data/Appraisals
CHANGED
@@ -1,29 +1,66 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
appraise 'faraday-09' do
|
4
|
+
group :test do
|
5
|
+
gem 'faraday', '~> 0.9'
|
6
|
+
end
|
7
|
+
end
|
8
|
+
|
9
|
+
appraise 'faraday-10' do
|
10
|
+
group :test do
|
11
|
+
gem 'faraday', '~> 1.0'
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
appraise 'rails-61' do
|
16
|
+
group :test do
|
17
|
+
gem 'rails', '~> 6.1.0'
|
18
|
+
gem 'sqlite3', '~> 1.4'
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
3
22
|
appraise 'rails-60' do
|
4
23
|
group :test do
|
5
|
-
gem 'rails', '~> 6.0.0'
|
6
|
-
gem 'sqlite3', '~> 1.4'
|
24
|
+
gem 'rails', '~> 6.0.0'
|
25
|
+
gem 'sqlite3', '~> 1.4'
|
7
26
|
end
|
8
27
|
end
|
9
28
|
|
10
29
|
appraise 'rails-52' do
|
11
30
|
group :test do
|
12
|
-
gem 'rails', '~> 5.2.0'
|
13
|
-
gem 'sqlite3', '~> 1.4'
|
31
|
+
gem 'rails', '~> 5.2.0'
|
32
|
+
gem 'sqlite3', '~> 1.4'
|
14
33
|
end
|
15
34
|
end
|
16
35
|
|
17
36
|
appraise 'rails-51' do
|
18
37
|
group :test do
|
19
|
-
gem 'rails', '~> 5.1.0'
|
20
|
-
gem 'sqlite3', '~> 1.4'
|
38
|
+
gem 'rails', '~> 5.1.0'
|
39
|
+
gem 'sqlite3', '~> 1.4'
|
21
40
|
end
|
22
41
|
end
|
23
42
|
|
24
43
|
appraise 'rails-50' do
|
25
44
|
group :test do
|
26
|
-
gem 'rails', '~> 5.0.0'
|
27
|
-
gem 'sqlite3', '~> 1.3.6'
|
45
|
+
gem 'rails', '~> 5.0.0'
|
46
|
+
gem 'sqlite3', '~> 1.3.6'
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
appraise 'redis-40' do
|
51
|
+
group :test do
|
52
|
+
gem 'redis', '~> 4.0'
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
appraise 'sidekiq-50' do
|
57
|
+
group :test do
|
58
|
+
gem 'sidekiq', '~> 5.0'
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
appraise 'sidekiq-60' do
|
63
|
+
group :test do
|
64
|
+
gem 'sidekiq', '~> 6.0'
|
28
65
|
end
|
29
66
|
end
|
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.12.1] - 2022-03-21
|
9
|
+
### Added
|
10
|
+
- More commands whitelisted in Redis span metadata (#44)
|
11
|
+
|
8
12
|
## [1.12.0] - 2021-08-24
|
9
13
|
### Added
|
10
14
|
- Support for `redis` gem (#34)
|
@@ -111,7 +115,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
111
115
|
### Added
|
112
116
|
- Add platform identifier
|
113
117
|
|
114
|
-
[Unreleased]: https://github.com/mnemosyne-mon/mnemosyne-ruby/compare/v1.12.
|
118
|
+
[Unreleased]: https://github.com/mnemosyne-mon/mnemosyne-ruby/compare/v1.12.1...HEAD
|
119
|
+
[1.12.0]: https://github.com/mnemosyne-mon/mnemosyne-ruby/compare/v1.12.0...v1.12.1
|
115
120
|
[1.12.0]: https://github.com/mnemosyne-mon/mnemosyne-ruby/compare/v1.10.0...v1.12.0
|
116
121
|
[1.11.0]: https://github.com/mnemosyne-mon/mnemosyne-ruby/compare/v1.10.0...v1.11.0
|
117
122
|
[1.10.0]: https://github.com/mnemosyne-mon/mnemosyne-ruby/compare/v1.9.0...v1.10.0
|
data/Gemfile
CHANGED
@@ -7,19 +7,18 @@ gemspec
|
|
7
7
|
|
8
8
|
gem 'rake', '~> 13.0'
|
9
9
|
gem 'rspec', '~> 3.6'
|
10
|
-
gem 'rubocop', '~> 1.
|
10
|
+
gem 'rubocop', '~> 1.26.0'
|
11
11
|
gem 'timecop', '~> 0.9.1'
|
12
12
|
|
13
13
|
group :test do
|
14
|
-
gem 'faraday'
|
15
|
-
gem 'msgr'
|
16
|
-
gem '
|
17
|
-
gem '
|
18
|
-
gem '
|
19
|
-
|
20
|
-
gem '
|
21
|
-
gem '
|
22
|
-
gem 'webmock', require: false
|
14
|
+
gem 'faraday'
|
15
|
+
gem 'msgr'
|
16
|
+
gem 'rails'
|
17
|
+
gem 'redis'
|
18
|
+
gem 'restify'
|
19
|
+
gem 'sidekiq'
|
20
|
+
gem 'sqlite3'
|
21
|
+
gem 'webmock'
|
23
22
|
end
|
24
23
|
|
25
24
|
group :development do
|
@@ -0,0 +1,28 @@
|
|
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.19.0"
|
8
|
+
gem "timecop", "~> 0.9.1"
|
9
|
+
|
10
|
+
group :test do
|
11
|
+
gem "faraday", "~> 0.9"
|
12
|
+
gem "msgr"
|
13
|
+
gem "rails"
|
14
|
+
gem "redis"
|
15
|
+
gem "restify"
|
16
|
+
gem "sidekiq"
|
17
|
+
gem "sqlite3"
|
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: "../"
|
@@ -0,0 +1,28 @@
|
|
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.19.0"
|
8
|
+
gem "timecop", "~> 0.9.1"
|
9
|
+
|
10
|
+
group :test do
|
11
|
+
gem "faraday", "~> 1.0"
|
12
|
+
gem "msgr"
|
13
|
+
gem "rails"
|
14
|
+
gem "redis"
|
15
|
+
gem "restify"
|
16
|
+
gem "sidekiq"
|
17
|
+
gem "sqlite3"
|
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: "../"
|
data/gemfiles/rails_50.gemfile
CHANGED
@@ -8,14 +8,14 @@ gem "rubocop", "~> 1.19.0"
|
|
8
8
|
gem "timecop", "~> 0.9.1"
|
9
9
|
|
10
10
|
group :test do
|
11
|
-
gem "faraday"
|
12
|
-
gem "msgr"
|
13
|
-
gem "
|
14
|
-
gem "
|
15
|
-
gem "
|
16
|
-
gem "
|
17
|
-
gem "sqlite3", "~> 1.3.6"
|
18
|
-
gem "webmock"
|
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
19
|
end
|
20
20
|
|
21
21
|
group :development do
|
data/gemfiles/rails_51.gemfile
CHANGED
@@ -8,14 +8,14 @@ gem "rubocop", "~> 1.19.0"
|
|
8
8
|
gem "timecop", "~> 0.9.1"
|
9
9
|
|
10
10
|
group :test do
|
11
|
-
gem "faraday"
|
12
|
-
gem "msgr"
|
13
|
-
gem "
|
14
|
-
gem "
|
15
|
-
gem "
|
16
|
-
gem "
|
17
|
-
gem "sqlite3", "~> 1.4"
|
18
|
-
gem "webmock"
|
11
|
+
gem "faraday"
|
12
|
+
gem "msgr"
|
13
|
+
gem "rails", "~> 5.1.0"
|
14
|
+
gem "redis"
|
15
|
+
gem "restify"
|
16
|
+
gem "sidekiq"
|
17
|
+
gem "sqlite3", "~> 1.4"
|
18
|
+
gem "webmock"
|
19
19
|
end
|
20
20
|
|
21
21
|
group :development do
|
data/gemfiles/rails_52.gemfile
CHANGED
@@ -8,14 +8,14 @@ gem "rubocop", "~> 1.19.0"
|
|
8
8
|
gem "timecop", "~> 0.9.1"
|
9
9
|
|
10
10
|
group :test do
|
11
|
-
gem "faraday"
|
12
|
-
gem "msgr"
|
13
|
-
gem "
|
14
|
-
gem "
|
15
|
-
gem "
|
16
|
-
gem "
|
17
|
-
gem "sqlite3", "~> 1.4"
|
18
|
-
gem "webmock"
|
11
|
+
gem "faraday"
|
12
|
+
gem "msgr"
|
13
|
+
gem "rails", "~> 5.2.0"
|
14
|
+
gem "redis"
|
15
|
+
gem "restify"
|
16
|
+
gem "sidekiq"
|
17
|
+
gem "sqlite3", "~> 1.4"
|
18
|
+
gem "webmock"
|
19
19
|
end
|
20
20
|
|
21
21
|
group :development do
|
data/gemfiles/rails_60.gemfile
CHANGED
@@ -8,14 +8,14 @@ gem "rubocop", "~> 1.19.0"
|
|
8
8
|
gem "timecop", "~> 0.9.1"
|
9
9
|
|
10
10
|
group :test do
|
11
|
-
gem "faraday"
|
12
|
-
gem "msgr"
|
13
|
-
gem "
|
14
|
-
gem "
|
15
|
-
gem "
|
16
|
-
gem "
|
17
|
-
gem "sqlite3", "~> 1.4"
|
18
|
-
gem "webmock"
|
11
|
+
gem "faraday"
|
12
|
+
gem "msgr"
|
13
|
+
gem "rails", "~> 6.0.0"
|
14
|
+
gem "redis"
|
15
|
+
gem "restify"
|
16
|
+
gem "sidekiq"
|
17
|
+
gem "sqlite3", "~> 1.4"
|
18
|
+
gem "webmock"
|
19
19
|
end
|
20
20
|
|
21
21
|
group :development do
|
@@ -0,0 +1,28 @@
|
|
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.19.0"
|
8
|
+
gem "timecop", "~> 0.9.1"
|
9
|
+
|
10
|
+
group :test do
|
11
|
+
gem "faraday"
|
12
|
+
gem "msgr"
|
13
|
+
gem "rails", "~> 6.1.0"
|
14
|
+
gem "redis"
|
15
|
+
gem "restify"
|
16
|
+
gem "sidekiq"
|
17
|
+
gem "sqlite3", "~> 1.4"
|
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: "../"
|
@@ -0,0 +1,28 @@
|
|
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.19.0"
|
8
|
+
gem "timecop", "~> 0.9.1"
|
9
|
+
|
10
|
+
group :test do
|
11
|
+
gem "faraday"
|
12
|
+
gem "msgr"
|
13
|
+
gem "rails"
|
14
|
+
gem "redis", "~> 4.0"
|
15
|
+
gem "restify"
|
16
|
+
gem "sidekiq"
|
17
|
+
gem "sqlite3"
|
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: "../"
|
@@ -0,0 +1,28 @@
|
|
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.19.0"
|
8
|
+
gem "timecop", "~> 0.9.1"
|
9
|
+
|
10
|
+
group :test do
|
11
|
+
gem "faraday"
|
12
|
+
gem "msgr"
|
13
|
+
gem "rails"
|
14
|
+
gem "redis"
|
15
|
+
gem "restify"
|
16
|
+
gem "sidekiq", "~> 5.0"
|
17
|
+
gem "sqlite3"
|
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: "../"
|
@@ -0,0 +1,28 @@
|
|
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.19.0"
|
8
|
+
gem "timecop", "~> 0.9.1"
|
9
|
+
|
10
|
+
group :test do
|
11
|
+
gem "faraday"
|
12
|
+
gem "msgr"
|
13
|
+
gem "rails"
|
14
|
+
gem "redis"
|
15
|
+
gem "restify"
|
16
|
+
gem "sidekiq", "~> 6.0"
|
17
|
+
gem "sqlite3"
|
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: "../"
|
data/lib/mnemosyne/clock.rb
CHANGED
@@ -60,9 +60,46 @@ module Mnemosyne
|
|
60
60
|
# that should be included verbatim in the metadata. Arguments not
|
61
61
|
# listed here will be replaced by a "?" character.
|
62
62
|
#
|
63
|
+
# The value can be a list of safe argument indices, or "*" (all).
|
64
|
+
#
|
63
65
|
KNOWN_ARGUMENTS = {
|
64
|
-
'
|
65
|
-
'
|
66
|
+
'BLPOP' => '*',
|
67
|
+
'BRPOP' => '*',
|
68
|
+
'EVALSHA' => [0, 1],
|
69
|
+
'EXISTS' => '*',
|
70
|
+
'EXPIRE' => '*',
|
71
|
+
'GET' => '*',
|
72
|
+
'HGET' => '*',
|
73
|
+
'HGETALL' => '*',
|
74
|
+
'HMGET' => '*',
|
75
|
+
'HMSET' => [0, 1],
|
76
|
+
'HSCAN' => '*',
|
77
|
+
'INCRBY' => '*',
|
78
|
+
'LLEN' => '*',
|
79
|
+
'LPUSH' => [0],
|
80
|
+
'LRANGE' => '*',
|
81
|
+
'LREM' => [0, 1],
|
82
|
+
'MGET' => '*',
|
83
|
+
'MSET' => [0],
|
84
|
+
'RPUSH' => [0],
|
85
|
+
'RPOP' => '*',
|
86
|
+
'SADD' => [0],
|
87
|
+
'SCARD' => '*',
|
88
|
+
'SCAN' => '*',
|
89
|
+
'SCRIPT LOAD' => [],
|
90
|
+
'SET' => [0],
|
91
|
+
'SREM' => [0],
|
92
|
+
'SSCAN' => '*',
|
93
|
+
'UNLINK' => '*',
|
94
|
+
'ZADD' => [0],
|
95
|
+
'ZCARD' => '*',
|
96
|
+
'ZINCRBY' => [0, 1],
|
97
|
+
'ZRANGE' => '*',
|
98
|
+
'ZRANGEBYSCORE' => '*',
|
99
|
+
'ZREM' => [0],
|
100
|
+
'ZREMRANGEBYSCORE' => '*',
|
101
|
+
'ZREVRANGE' => '*',
|
102
|
+
'ZSCAN' => '*'
|
66
103
|
}.freeze
|
67
104
|
|
68
105
|
def parse_name_and_args(command)
|
@@ -72,9 +109,16 @@ module Mnemosyne
|
|
72
109
|
name = command.delete_at(0).to_s.upcase
|
73
110
|
|
74
111
|
allowed = KNOWN_ARGUMENTS[name] || []
|
75
|
-
args =
|
76
|
-
|
77
|
-
|
112
|
+
args = case allowed
|
113
|
+
when '*' # All arguments considered safe
|
114
|
+
command
|
115
|
+
when Array # A list of allowed argument indices
|
116
|
+
command.each_with_index.map do |arg, index|
|
117
|
+
allowed.include?(index) ? arg : '?'
|
118
|
+
end
|
119
|
+
else # Unknown command - assume nothing is safe
|
120
|
+
Array.new(command.length, '?')
|
121
|
+
end.join(' ')
|
78
122
|
|
79
123
|
[name, args]
|
80
124
|
end
|
data/lib/mnemosyne/version.rb
CHANGED
data/mnemosyne-ruby.gemspec
CHANGED
@@ -14,7 +14,11 @@ Gem::Specification.new do |spec|
|
|
14
14
|
spec.homepage = 'http://github.com/jgraichen/mnemosyne-ruby'
|
15
15
|
spec.license = 'MIT'
|
16
16
|
|
17
|
-
spec.
|
17
|
+
spec.metadata = {
|
18
|
+
'rubygems_mfa_required' => 'true'
|
19
|
+
}
|
20
|
+
|
21
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
18
22
|
f.match(%r{^(test|spec|features)/})
|
19
23
|
end
|
20
24
|
|
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.12.
|
4
|
+
version: 1.12.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Graichen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-03-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -60,8 +60,8 @@ extensions: []
|
|
60
60
|
extra_rdoc_files: []
|
61
61
|
files:
|
62
62
|
- ".editorconfig"
|
63
|
-
- ".github/workflows/build.yml"
|
64
63
|
- ".github/workflows/lint.yml"
|
64
|
+
- ".github/workflows/test.yml"
|
65
65
|
- ".gitignore"
|
66
66
|
- ".rspec"
|
67
67
|
- ".rubocop.yml"
|
@@ -71,10 +71,16 @@ files:
|
|
71
71
|
- LICENSE
|
72
72
|
- README.md
|
73
73
|
- Rakefile
|
74
|
+
- gemfiles/faraday_09.gemfile
|
75
|
+
- gemfiles/faraday_10.gemfile
|
74
76
|
- gemfiles/rails_50.gemfile
|
75
77
|
- gemfiles/rails_51.gemfile
|
76
78
|
- gemfiles/rails_52.gemfile
|
77
79
|
- gemfiles/rails_60.gemfile
|
80
|
+
- gemfiles/rails_61.gemfile
|
81
|
+
- gemfiles/redis_40.gemfile
|
82
|
+
- gemfiles/sidekiq_50.gemfile
|
83
|
+
- gemfiles/sidekiq_60.gemfile
|
78
84
|
- lib/mnemosyne-ruby.rb
|
79
85
|
- lib/mnemosyne.rb
|
80
86
|
- lib/mnemosyne/client.rb
|
@@ -122,7 +128,8 @@ files:
|
|
122
128
|
homepage: http://github.com/jgraichen/mnemosyne-ruby
|
123
129
|
licenses:
|
124
130
|
- MIT
|
125
|
-
metadata:
|
131
|
+
metadata:
|
132
|
+
rubygems_mfa_required: 'true'
|
126
133
|
post_install_message:
|
127
134
|
rdoc_options: []
|
128
135
|
require_paths:
|
@@ -138,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
138
145
|
- !ruby/object:Gem::Version
|
139
146
|
version: '0'
|
140
147
|
requirements: []
|
141
|
-
rubygems_version: 3.
|
148
|
+
rubygems_version: 3.1.6
|
142
149
|
signing_key:
|
143
150
|
specification_version: 4
|
144
151
|
summary: Ruby/Rails client for Mnemosyne APM
|