mysql_casual_explain 1.0.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +14 -0
- data/.github/workflows/test.yml +50 -0
- data/.gitignore +4 -0
- data/.rubocop.yml +3 -48
- data/Appraisals +16 -4
- data/Dockerfile +2 -8
- data/Gemfile +5 -1
- data/README.md +3 -1
- data/docker-compose.yml +1 -2
- data/gemfiles/.bundle/config +2 -0
- data/gemfiles/ar61.gemfile +13 -0
- data/gemfiles/ar70.gemfile +13 -0
- data/gemfiles/ar71.gemfile +13 -0
- data/gemfiles/ar72.gemfile +13 -0
- data/gemfiles/ar80.gemfile +13 -0
- data/lib/mysql_casual_explain/pretty_printer.rb +4 -8
- data/lib/mysql_casual_explain/version.rb +1 -1
- data/mysql_casual_explain.gemspec +3 -8
- metadata +19 -98
- data/.travis.yml +0 -22
- data/Gemfile.lock +0 -84
- data/gemfiles/ar52.gemfile.lock +0 -85
- data/gemfiles/ar60.gemfile.lock +0 -85
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: be1a3fb35a806ac0b6f0cad418e3c3515288df182f7f9d706e856b59a1676dff
|
4
|
+
data.tar.gz: 68f9271656819c729762d6c0928db48de75af1934c5169826b29f0b48f36510d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 90a8724846c019e87a81654a13e792fc02fb72a872c735caa0379dc5a2dde2124054d774a56c08b2bc2be5c52be51b3577e7e9559e2cff962985f040057eccba
|
7
|
+
data.tar.gz: f5494a4999318586c9e7409384cfe8158efa5a019b481d2d5748269258d7c583e0c3eec1a8c9bb698bc6982d5e6f8f14134c999d1428c37cf846ecdb8f2bb4cf
|
@@ -0,0 +1,50 @@
|
|
1
|
+
name: test
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches:
|
6
|
+
- master
|
7
|
+
pull_request:
|
8
|
+
|
9
|
+
concurrency:
|
10
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
11
|
+
cancel-in-progress: true
|
12
|
+
|
13
|
+
jobs:
|
14
|
+
build:
|
15
|
+
runs-on: ubuntu-latest
|
16
|
+
services:
|
17
|
+
mysql:
|
18
|
+
image: budougumi0617/mysql-sakila:8.0
|
19
|
+
ports:
|
20
|
+
- 3306:3306
|
21
|
+
env:
|
22
|
+
MYSQL_ALLOW_EMPTY_PASSWORD: "1"
|
23
|
+
options: --health-cmd "mysqladmin ping -h localhost" --health-interval 1s --health-timeout 3s --health-retries 60
|
24
|
+
strategy:
|
25
|
+
fail-fast: false
|
26
|
+
matrix:
|
27
|
+
ruby:
|
28
|
+
- 3.1
|
29
|
+
- 3.2
|
30
|
+
- 3.3
|
31
|
+
gemfile:
|
32
|
+
- gemfiles/ar61.gemfile
|
33
|
+
- gemfiles/ar70.gemfile
|
34
|
+
- gemfiles/ar71.gemfile
|
35
|
+
- gemfiles/ar72.gemfile
|
36
|
+
- gemfiles/ar80.gemfile
|
37
|
+
exclude:
|
38
|
+
- ruby: 3.1
|
39
|
+
gemfile: gemfiles/ar80.gemfile
|
40
|
+
env:
|
41
|
+
DATABASE_URL: mysql2://root@127.0.0.1/sakila
|
42
|
+
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
|
43
|
+
steps:
|
44
|
+
- uses: actions/checkout@v4
|
45
|
+
- uses: ruby/setup-ruby@v1
|
46
|
+
with:
|
47
|
+
ruby-version: ${{ matrix.ruby }}
|
48
|
+
bundler-cache: true
|
49
|
+
- name: Run tests
|
50
|
+
run: bundle exec rake
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
@@ -1,8 +1,10 @@
|
|
1
1
|
AllCops:
|
2
2
|
Exclude:
|
3
3
|
- "gemfiles/**/*"
|
4
|
+
- "vendor/**/*"
|
4
5
|
- "test.rb"
|
5
|
-
TargetRubyVersion:
|
6
|
+
TargetRubyVersion: 3.1
|
7
|
+
NewCops: enable
|
6
8
|
Style/Documentation:
|
7
9
|
Enabled: false
|
8
10
|
Style/TrailingCommaInArrayLiteral:
|
@@ -19,50 +21,3 @@ Metrics/BlockLength:
|
|
19
21
|
Enabled: false
|
20
22
|
Layout/LineLength:
|
21
23
|
Enabled: false
|
22
|
-
|
23
|
-
Layout/EmptyLinesAroundAttributeAccessor:
|
24
|
-
Enabled: true
|
25
|
-
Layout/SpaceAroundMethodCallOperator:
|
26
|
-
Enabled: true
|
27
|
-
Lint/DeprecatedOpenSSLConstant:
|
28
|
-
Enabled: true
|
29
|
-
Lint/DuplicateElsifCondition:
|
30
|
-
Enabled: true
|
31
|
-
Lint/MixedRegexpCaptureTypes:
|
32
|
-
Enabled: true
|
33
|
-
Lint/RaiseException:
|
34
|
-
Enabled: true
|
35
|
-
Lint/StructNewOverride:
|
36
|
-
Enabled: true
|
37
|
-
Style/AccessorGrouping:
|
38
|
-
Enabled: true
|
39
|
-
Style/ArrayCoercion:
|
40
|
-
Enabled: true
|
41
|
-
Style/BisectedAttrAccessor:
|
42
|
-
Enabled: true
|
43
|
-
Style/CaseLikeIf:
|
44
|
-
Enabled: true
|
45
|
-
Style/ExponentialNotation:
|
46
|
-
Enabled: true
|
47
|
-
Style/HashAsLastArrayItem:
|
48
|
-
Enabled: true
|
49
|
-
Style/HashEachMethods:
|
50
|
-
Enabled: true
|
51
|
-
Style/HashLikeCase:
|
52
|
-
Enabled: true
|
53
|
-
Style/HashTransformKeys:
|
54
|
-
Enabled: true
|
55
|
-
Style/HashTransformValues:
|
56
|
-
Enabled: true
|
57
|
-
Style/RedundantAssignment:
|
58
|
-
Enabled: true
|
59
|
-
Style/RedundantFetchBlock:
|
60
|
-
Enabled: true
|
61
|
-
Style/RedundantFileExtensionInRequire:
|
62
|
-
Enabled: true
|
63
|
-
Style/RedundantRegexpCharacterClass:
|
64
|
-
Enabled: true
|
65
|
-
Style/RedundantRegexpEscape:
|
66
|
-
Enabled: true
|
67
|
-
Style/SlicingWithRange:
|
68
|
-
Enabled: true
|
data/Appraisals
CHANGED
@@ -1,9 +1,21 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
appraise '
|
4
|
-
gem 'activerecord', '~>
|
3
|
+
appraise 'ar61' do
|
4
|
+
gem 'activerecord', '~> 6.1'
|
5
5
|
end
|
6
6
|
|
7
|
-
appraise '
|
8
|
-
gem 'activerecord', '~>
|
7
|
+
appraise 'ar70' do
|
8
|
+
gem 'activerecord', '~> 7.0'
|
9
|
+
end
|
10
|
+
|
11
|
+
appraise 'ar71' do
|
12
|
+
gem 'activerecord', '~> 7.1'
|
13
|
+
end
|
14
|
+
|
15
|
+
appraise 'ar72' do
|
16
|
+
gem 'activerecord', '~> 7.2'
|
17
|
+
end
|
18
|
+
|
19
|
+
appraise 'ar80' do
|
20
|
+
gem 'activerecord', '~> 8.0'
|
9
21
|
end
|
data/Dockerfile
CHANGED
@@ -1,14 +1,8 @@
|
|
1
|
-
FROM
|
2
|
-
|
3
|
-
RUN apt-get update && \
|
4
|
-
apt-get install -y \
|
5
|
-
mysql-client \
|
6
|
-
libmysqlclient-dev \
|
7
|
-
rubygems \
|
8
|
-
curl
|
1
|
+
FROM ruby:3.3
|
9
2
|
|
10
3
|
COPY ./ /mnt/
|
11
4
|
WORKDIR /mnt
|
5
|
+
RUN git config --global --add safe.directory /mnt
|
12
6
|
RUN gem update bundler -f && \
|
13
7
|
bundle install && \
|
14
8
|
bundle exec appraisal install
|
data/Gemfile
CHANGED
@@ -5,5 +5,9 @@ source 'https://rubygems.org'
|
|
5
5
|
# Specify your gem's dependencies in mysql_casual_explain.gemspec
|
6
6
|
gemspec
|
7
7
|
|
8
|
-
gem '
|
8
|
+
gem 'appraisal'
|
9
|
+
gem 'mysql2'
|
9
10
|
gem 'rspec', '~> 3.0'
|
11
|
+
gem 'rubocop', '>= 1.68'
|
12
|
+
gem 'rubocop-rake'
|
13
|
+
gem 'rubocop-rspec'
|
data/README.md
CHANGED
@@ -4,6 +4,9 @@ Highlight problematic MySQL explain results.
|
|
4
4
|
|
5
5
|
Inspired by [MySQLCasualLog.pm](https://gist.github.com/kamipo/839e8a5b6d12bddba539).
|
6
6
|
|
7
|
+
[![Gem Version](https://badge.fury.io/rb/mysql_casual_explain.svg)](https://badge.fury.io/rb/mysql_casual_explain)
|
8
|
+
[![test](https://github.com/winebarrel/mysql_casual_explain/actions/workflows/test.yml/badge.svg)](https://github.com/winebarrel/mysql_casual_explain/actions/workflows/test.yml)
|
9
|
+
|
7
10
|
## Installation
|
8
11
|
|
9
12
|
Add this line to your application's Gemfile:
|
@@ -33,7 +36,6 @@ ActiveRecord::Base.establish_connection(
|
|
33
36
|
database: 'employees'
|
34
37
|
)
|
35
38
|
|
36
|
-
|
37
39
|
class Employee < ActiveRecord::Base; end
|
38
40
|
|
39
41
|
puts Employee.all.explain
|
data/docker-compose.yml
CHANGED
@@ -0,0 +1,13 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
gem "appraisal"
|
6
|
+
gem "mysql2"
|
7
|
+
gem "rspec", "~> 3.0"
|
8
|
+
gem "rubocop", ">= 1.68"
|
9
|
+
gem "rubocop-rake"
|
10
|
+
gem "rubocop-rspec"
|
11
|
+
gem "activerecord", "~> 6.1"
|
12
|
+
|
13
|
+
gemspec path: "../"
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
gem "appraisal"
|
6
|
+
gem "mysql2"
|
7
|
+
gem "rspec", "~> 3.0"
|
8
|
+
gem "rubocop", ">= 1.68"
|
9
|
+
gem "rubocop-rake"
|
10
|
+
gem "rubocop-rspec"
|
11
|
+
gem "activerecord", "~> 7.0"
|
12
|
+
|
13
|
+
gemspec path: "../"
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
gem "appraisal"
|
6
|
+
gem "mysql2"
|
7
|
+
gem "rspec", "~> 3.0"
|
8
|
+
gem "rubocop", ">= 1.68"
|
9
|
+
gem "rubocop-rake"
|
10
|
+
gem "rubocop-rspec"
|
11
|
+
gem "activerecord", "~> 7.1"
|
12
|
+
|
13
|
+
gemspec path: "../"
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
gem "appraisal"
|
6
|
+
gem "mysql2"
|
7
|
+
gem "rspec", "~> 3.0"
|
8
|
+
gem "rubocop", ">= 1.68"
|
9
|
+
gem "rubocop-rake"
|
10
|
+
gem "rubocop-rspec"
|
11
|
+
gem "activerecord", "~> 7.2"
|
12
|
+
|
13
|
+
gemspec path: "../"
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
gem "appraisal"
|
6
|
+
gem "mysql2"
|
7
|
+
gem "rspec", "~> 3.0"
|
8
|
+
gem "rubocop", ">= 1.68"
|
9
|
+
gem "rubocop-rake"
|
10
|
+
gem "rubocop-rspec"
|
11
|
+
gem "activerecord", "~> 8.0"
|
12
|
+
|
13
|
+
gemspec path: "../"
|
@@ -2,10 +2,6 @@
|
|
2
2
|
|
3
3
|
module MysqlCasualExplain
|
4
4
|
module PrettyPrinter
|
5
|
-
BOLD = ActiveSupport::LogSubscriber::BOLD
|
6
|
-
RED = ActiveSupport::LogSubscriber::RED
|
7
|
-
CLEAR = ActiveSupport::LogSubscriber::CLEAR
|
8
|
-
|
9
5
|
def pp(result, elapsed)
|
10
6
|
widths = compute_column_widths(result)
|
11
7
|
separator = build_separator(widths)
|
@@ -23,7 +19,7 @@ module MysqlCasualExplain
|
|
23
19
|
pp << separator
|
24
20
|
pp << build_footer(result.rows.length, elapsed)
|
25
21
|
|
26
|
-
pp.join("\n")
|
22
|
+
"#{pp.join("\n")}\n"
|
27
23
|
end
|
28
24
|
|
29
25
|
private
|
@@ -40,15 +36,15 @@ module MysqlCasualExplain
|
|
40
36
|
|
41
37
|
new_items = []
|
42
38
|
new_widths = []
|
43
|
-
extra_len =
|
39
|
+
extra_len = ActiveSupport::LogSubscriber.new.send(:color, '', :red, bold: true).length
|
44
40
|
|
45
41
|
item_by_column.each_with_index do |(column, item), i|
|
46
42
|
item = 'NULL' if item.nil?
|
47
43
|
warnings = warnings_by_column.fetch(column, [])
|
48
44
|
|
49
45
|
if warnings.any? { |w| w.call(item) }
|
50
|
-
new_items <<
|
51
|
-
new_widths << widths[i] + extra_len
|
46
|
+
new_items << ActiveSupport::LogSubscriber.new.send(:color, item, :red, bold: true)
|
47
|
+
new_widths << (widths[i] + extra_len)
|
52
48
|
else
|
53
49
|
new_items << item
|
54
50
|
new_widths << widths[i]
|
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
|
|
12
12
|
spec.description = 'Highlight problematic MySQL explain results.'
|
13
13
|
spec.homepage = 'https://github.com/winebarrel/mysql_casual_explain'
|
14
14
|
spec.license = 'MIT'
|
15
|
-
spec.required_ruby_version = Gem::Requirement.new('>=
|
15
|
+
spec.required_ruby_version = Gem::Requirement.new('>= 3.1.0')
|
16
16
|
|
17
17
|
# Specify which files should be added to the gem when it is released.
|
18
18
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
@@ -23,11 +23,6 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
24
24
|
spec.require_paths = ['lib']
|
25
25
|
|
26
|
-
spec.add_dependency 'activerecord'
|
27
|
-
spec.
|
28
|
-
spec.add_development_dependency 'bundler'
|
29
|
-
spec.add_development_dependency 'mysql2'
|
30
|
-
spec.add_development_dependency 'rake'
|
31
|
-
spec.add_development_dependency 'rspec'
|
32
|
-
spec.add_development_dependency 'rubocop'
|
26
|
+
spec.add_dependency 'activerecord', '>= 6.1'
|
27
|
+
spec.metadata['rubygems_mfa_required'] = 'true'
|
33
28
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mysql_casual_explain
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- winebarrel
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -16,98 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '6.1'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: appraisal
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
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
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: mysql2
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - ">="
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - ">="
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: rake
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - ">="
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - ">="
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: rspec
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - ">="
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - ">="
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: rubocop
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - ">="
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '0'
|
104
|
-
type: :development
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - ">="
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '0'
|
26
|
+
version: '6.1'
|
111
27
|
description: Highlight problematic MySQL explain results.
|
112
28
|
email:
|
113
29
|
- sugawara@winebarrel.jp
|
@@ -115,22 +31,26 @@ executables: []
|
|
115
31
|
extensions: []
|
116
32
|
extra_rdoc_files: []
|
117
33
|
files:
|
34
|
+
- ".github/dependabot.yml"
|
35
|
+
- ".github/workflows/test.yml"
|
118
36
|
- ".gitignore"
|
119
37
|
- ".rspec"
|
120
38
|
- ".rubocop.yml"
|
121
|
-
- ".travis.yml"
|
122
39
|
- Appraisals
|
123
40
|
- Dockerfile
|
124
41
|
- Gemfile
|
125
|
-
- Gemfile.lock
|
126
42
|
- LICENSE.txt
|
127
43
|
- README.md
|
128
44
|
- Rakefile
|
129
45
|
- docker-compose.yml
|
46
|
+
- gemfiles/.bundle/config
|
130
47
|
- gemfiles/ar52.gemfile
|
131
|
-
- gemfiles/ar52.gemfile.lock
|
132
48
|
- gemfiles/ar60.gemfile
|
133
|
-
- gemfiles/
|
49
|
+
- gemfiles/ar61.gemfile
|
50
|
+
- gemfiles/ar70.gemfile
|
51
|
+
- gemfiles/ar71.gemfile
|
52
|
+
- gemfiles/ar72.gemfile
|
53
|
+
- gemfiles/ar80.gemfile
|
134
54
|
- lib/mysql_casual_explain.rb
|
135
55
|
- lib/mysql_casual_explain/config.rb
|
136
56
|
- lib/mysql_casual_explain/pretty_printer.rb
|
@@ -139,8 +59,9 @@ files:
|
|
139
59
|
homepage: https://github.com/winebarrel/mysql_casual_explain
|
140
60
|
licenses:
|
141
61
|
- MIT
|
142
|
-
metadata:
|
143
|
-
|
62
|
+
metadata:
|
63
|
+
rubygems_mfa_required: 'true'
|
64
|
+
post_install_message:
|
144
65
|
rdoc_options: []
|
145
66
|
require_paths:
|
146
67
|
- lib
|
@@ -148,15 +69,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
148
69
|
requirements:
|
149
70
|
- - ">="
|
150
71
|
- !ruby/object:Gem::Version
|
151
|
-
version:
|
72
|
+
version: 3.1.0
|
152
73
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
153
74
|
requirements:
|
154
75
|
- - ">="
|
155
76
|
- !ruby/object:Gem::Version
|
156
77
|
version: '0'
|
157
78
|
requirements: []
|
158
|
-
rubygems_version: 3.
|
159
|
-
signing_key:
|
79
|
+
rubygems_version: 3.5.20
|
80
|
+
signing_key:
|
160
81
|
specification_version: 4
|
161
82
|
summary: Highlight problematic MySQL explain results.
|
162
83
|
test_files: []
|
data/.travis.yml
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
---
|
2
|
-
language: ruby
|
3
|
-
cache: bundler
|
4
|
-
rvm:
|
5
|
-
- 2.5.8
|
6
|
-
- 2.6.6
|
7
|
-
- 2.7.1
|
8
|
-
gemfile:
|
9
|
-
- gemfiles/ar52.gemfile
|
10
|
-
- gemfiles/ar60.gemfile
|
11
|
-
services:
|
12
|
-
- mysql
|
13
|
-
env:
|
14
|
-
- DATABASE_URL=mysql2://travis@localhost/sakila
|
15
|
-
before_install:
|
16
|
-
- gem install bundler -v 2.1.2
|
17
|
-
- curl -sSfL https://downloads.mysql.com/docs/sakila-db.tar.gz -o - | tar zxf -
|
18
|
-
- cd sakila-db
|
19
|
-
- mysql < sakila-schema.sql
|
20
|
-
- mysql < sakila-data.sql
|
21
|
-
script:
|
22
|
-
- bundle exec rake
|
data/Gemfile.lock
DELETED
@@ -1,84 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
mysql_casual_explain (1.0.0)
|
5
|
-
activerecord
|
6
|
-
|
7
|
-
GEM
|
8
|
-
remote: https://rubygems.org/
|
9
|
-
specs:
|
10
|
-
activemodel (6.0.3.2)
|
11
|
-
activesupport (= 6.0.3.2)
|
12
|
-
activerecord (6.0.3.2)
|
13
|
-
activemodel (= 6.0.3.2)
|
14
|
-
activesupport (= 6.0.3.2)
|
15
|
-
activesupport (6.0.3.2)
|
16
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
17
|
-
i18n (>= 0.7, < 2)
|
18
|
-
minitest (~> 5.1)
|
19
|
-
tzinfo (~> 1.1)
|
20
|
-
zeitwerk (~> 2.2, >= 2.2.2)
|
21
|
-
appraisal (2.3.0)
|
22
|
-
bundler
|
23
|
-
rake
|
24
|
-
thor (>= 0.14.0)
|
25
|
-
ast (2.4.1)
|
26
|
-
concurrent-ruby (1.1.6)
|
27
|
-
diff-lcs (1.4.4)
|
28
|
-
i18n (1.8.4)
|
29
|
-
concurrent-ruby (~> 1.0)
|
30
|
-
minitest (5.14.1)
|
31
|
-
mysql2 (0.5.3)
|
32
|
-
parallel (1.19.2)
|
33
|
-
parser (2.7.1.4)
|
34
|
-
ast (~> 2.4.1)
|
35
|
-
rainbow (3.0.0)
|
36
|
-
rake (12.3.3)
|
37
|
-
regexp_parser (1.7.1)
|
38
|
-
rexml (3.2.4)
|
39
|
-
rspec (3.9.0)
|
40
|
-
rspec-core (~> 3.9.0)
|
41
|
-
rspec-expectations (~> 3.9.0)
|
42
|
-
rspec-mocks (~> 3.9.0)
|
43
|
-
rspec-core (3.9.2)
|
44
|
-
rspec-support (~> 3.9.3)
|
45
|
-
rspec-expectations (3.9.2)
|
46
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
47
|
-
rspec-support (~> 3.9.0)
|
48
|
-
rspec-mocks (3.9.1)
|
49
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
50
|
-
rspec-support (~> 3.9.0)
|
51
|
-
rspec-support (3.9.3)
|
52
|
-
rubocop (0.88.0)
|
53
|
-
parallel (~> 1.10)
|
54
|
-
parser (>= 2.7.1.1)
|
55
|
-
rainbow (>= 2.2.2, < 4.0)
|
56
|
-
regexp_parser (>= 1.7)
|
57
|
-
rexml
|
58
|
-
rubocop-ast (>= 0.1.0, < 1.0)
|
59
|
-
ruby-progressbar (~> 1.7)
|
60
|
-
unicode-display_width (>= 1.4.0, < 2.0)
|
61
|
-
rubocop-ast (0.1.0)
|
62
|
-
parser (>= 2.7.0.1)
|
63
|
-
ruby-progressbar (1.10.1)
|
64
|
-
thor (1.0.1)
|
65
|
-
thread_safe (0.3.6)
|
66
|
-
tzinfo (1.2.7)
|
67
|
-
thread_safe (~> 0.1)
|
68
|
-
unicode-display_width (1.7.0)
|
69
|
-
zeitwerk (2.4.0)
|
70
|
-
|
71
|
-
PLATFORMS
|
72
|
-
ruby
|
73
|
-
|
74
|
-
DEPENDENCIES
|
75
|
-
appraisal
|
76
|
-
bundler
|
77
|
-
mysql2
|
78
|
-
mysql_casual_explain!
|
79
|
-
rake (~> 12.0)
|
80
|
-
rspec (~> 3.0)
|
81
|
-
rubocop
|
82
|
-
|
83
|
-
BUNDLED WITH
|
84
|
-
2.1.4
|
data/gemfiles/ar52.gemfile.lock
DELETED
@@ -1,85 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: ..
|
3
|
-
specs:
|
4
|
-
mysql_casual_explain (0.1.0)
|
5
|
-
activerecord
|
6
|
-
|
7
|
-
GEM
|
8
|
-
remote: https://rubygems.org/
|
9
|
-
specs:
|
10
|
-
activemodel (5.2.4.3)
|
11
|
-
activesupport (= 5.2.4.3)
|
12
|
-
activerecord (5.2.4.3)
|
13
|
-
activemodel (= 5.2.4.3)
|
14
|
-
activesupport (= 5.2.4.3)
|
15
|
-
arel (>= 9.0)
|
16
|
-
activesupport (5.2.4.3)
|
17
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
18
|
-
i18n (>= 0.7, < 2)
|
19
|
-
minitest (~> 5.1)
|
20
|
-
tzinfo (~> 1.1)
|
21
|
-
appraisal (2.3.0)
|
22
|
-
bundler
|
23
|
-
rake
|
24
|
-
thor (>= 0.14.0)
|
25
|
-
arel (9.0.0)
|
26
|
-
ast (2.4.1)
|
27
|
-
concurrent-ruby (1.1.6)
|
28
|
-
diff-lcs (1.4.4)
|
29
|
-
i18n (1.8.4)
|
30
|
-
concurrent-ruby (~> 1.0)
|
31
|
-
minitest (5.14.1)
|
32
|
-
mysql2 (0.5.3)
|
33
|
-
parallel (1.19.2)
|
34
|
-
parser (2.7.1.4)
|
35
|
-
ast (~> 2.4.1)
|
36
|
-
rainbow (3.0.0)
|
37
|
-
rake (12.3.3)
|
38
|
-
regexp_parser (1.7.1)
|
39
|
-
rexml (3.2.4)
|
40
|
-
rspec (3.9.0)
|
41
|
-
rspec-core (~> 3.9.0)
|
42
|
-
rspec-expectations (~> 3.9.0)
|
43
|
-
rspec-mocks (~> 3.9.0)
|
44
|
-
rspec-core (3.9.2)
|
45
|
-
rspec-support (~> 3.9.3)
|
46
|
-
rspec-expectations (3.9.2)
|
47
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
48
|
-
rspec-support (~> 3.9.0)
|
49
|
-
rspec-mocks (3.9.1)
|
50
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
51
|
-
rspec-support (~> 3.9.0)
|
52
|
-
rspec-support (3.9.3)
|
53
|
-
rubocop (0.88.0)
|
54
|
-
parallel (~> 1.10)
|
55
|
-
parser (>= 2.7.1.1)
|
56
|
-
rainbow (>= 2.2.2, < 4.0)
|
57
|
-
regexp_parser (>= 1.7)
|
58
|
-
rexml
|
59
|
-
rubocop-ast (>= 0.1.0, < 1.0)
|
60
|
-
ruby-progressbar (~> 1.7)
|
61
|
-
unicode-display_width (>= 1.4.0, < 2.0)
|
62
|
-
rubocop-ast (0.1.0)
|
63
|
-
parser (>= 2.7.0.1)
|
64
|
-
ruby-progressbar (1.10.1)
|
65
|
-
thor (1.0.1)
|
66
|
-
thread_safe (0.3.6)
|
67
|
-
tzinfo (1.2.7)
|
68
|
-
thread_safe (~> 0.1)
|
69
|
-
unicode-display_width (1.7.0)
|
70
|
-
|
71
|
-
PLATFORMS
|
72
|
-
ruby
|
73
|
-
|
74
|
-
DEPENDENCIES
|
75
|
-
activerecord (~> 5.2.1)
|
76
|
-
appraisal
|
77
|
-
bundler
|
78
|
-
mysql2
|
79
|
-
mysql_casual_explain!
|
80
|
-
rake (~> 12.0)
|
81
|
-
rspec (~> 3.0)
|
82
|
-
rubocop
|
83
|
-
|
84
|
-
BUNDLED WITH
|
85
|
-
2.1.4
|
data/gemfiles/ar60.gemfile.lock
DELETED
@@ -1,85 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: ..
|
3
|
-
specs:
|
4
|
-
mysql_casual_explain (0.1.0)
|
5
|
-
activerecord
|
6
|
-
|
7
|
-
GEM
|
8
|
-
remote: https://rubygems.org/
|
9
|
-
specs:
|
10
|
-
activemodel (6.0.3.2)
|
11
|
-
activesupport (= 6.0.3.2)
|
12
|
-
activerecord (6.0.3.2)
|
13
|
-
activemodel (= 6.0.3.2)
|
14
|
-
activesupport (= 6.0.3.2)
|
15
|
-
activesupport (6.0.3.2)
|
16
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
17
|
-
i18n (>= 0.7, < 2)
|
18
|
-
minitest (~> 5.1)
|
19
|
-
tzinfo (~> 1.1)
|
20
|
-
zeitwerk (~> 2.2, >= 2.2.2)
|
21
|
-
appraisal (2.3.0)
|
22
|
-
bundler
|
23
|
-
rake
|
24
|
-
thor (>= 0.14.0)
|
25
|
-
ast (2.4.1)
|
26
|
-
concurrent-ruby (1.1.6)
|
27
|
-
diff-lcs (1.4.4)
|
28
|
-
i18n (1.8.4)
|
29
|
-
concurrent-ruby (~> 1.0)
|
30
|
-
minitest (5.14.1)
|
31
|
-
mysql2 (0.5.3)
|
32
|
-
parallel (1.19.2)
|
33
|
-
parser (2.7.1.4)
|
34
|
-
ast (~> 2.4.1)
|
35
|
-
rainbow (3.0.0)
|
36
|
-
rake (12.3.3)
|
37
|
-
regexp_parser (1.7.1)
|
38
|
-
rexml (3.2.4)
|
39
|
-
rspec (3.9.0)
|
40
|
-
rspec-core (~> 3.9.0)
|
41
|
-
rspec-expectations (~> 3.9.0)
|
42
|
-
rspec-mocks (~> 3.9.0)
|
43
|
-
rspec-core (3.9.2)
|
44
|
-
rspec-support (~> 3.9.3)
|
45
|
-
rspec-expectations (3.9.2)
|
46
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
47
|
-
rspec-support (~> 3.9.0)
|
48
|
-
rspec-mocks (3.9.1)
|
49
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
50
|
-
rspec-support (~> 3.9.0)
|
51
|
-
rspec-support (3.9.3)
|
52
|
-
rubocop (0.88.0)
|
53
|
-
parallel (~> 1.10)
|
54
|
-
parser (>= 2.7.1.1)
|
55
|
-
rainbow (>= 2.2.2, < 4.0)
|
56
|
-
regexp_parser (>= 1.7)
|
57
|
-
rexml
|
58
|
-
rubocop-ast (>= 0.1.0, < 1.0)
|
59
|
-
ruby-progressbar (~> 1.7)
|
60
|
-
unicode-display_width (>= 1.4.0, < 2.0)
|
61
|
-
rubocop-ast (0.1.0)
|
62
|
-
parser (>= 2.7.0.1)
|
63
|
-
ruby-progressbar (1.10.1)
|
64
|
-
thor (1.0.1)
|
65
|
-
thread_safe (0.3.6)
|
66
|
-
tzinfo (1.2.7)
|
67
|
-
thread_safe (~> 0.1)
|
68
|
-
unicode-display_width (1.7.0)
|
69
|
-
zeitwerk (2.4.0)
|
70
|
-
|
71
|
-
PLATFORMS
|
72
|
-
ruby
|
73
|
-
|
74
|
-
DEPENDENCIES
|
75
|
-
activerecord (~> 6.0.3)
|
76
|
-
appraisal
|
77
|
-
bundler
|
78
|
-
mysql2
|
79
|
-
mysql_casual_explain!
|
80
|
-
rake (~> 12.0)
|
81
|
-
rspec (~> 3.0)
|
82
|
-
rubocop
|
83
|
-
|
84
|
-
BUNDLED WITH
|
85
|
-
2.1.4
|