rails_sql_prettifier 7.0.5 → 7.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/FUNDING.yml +1 -0
- data/.github/workflows/ci.yml +27 -2
- data/.github/workflows/rubocop.yml +1 -1
- data/.rubocop.yml +97 -0
- data/CHANGELOG.md +5 -0
- data/Dockerfile_3_1 +20 -0
- data/Gemfile +3 -1
- data/Rakefile +3 -1
- data/bin/console +1 -0
- data/docker-compose.yml +9 -0
- data/lib/generators/niceql/install_generator.rb +4 -2
- data/lib/generators/templates/niceql_initializer.rb +2 -0
- data/lib/rails_sql_prettifier/abstract_adapter_log_prettifier.rb +4 -3
- data/lib/rails_sql_prettifier/ar_extensions.rb +5 -6
- data/lib/rails_sql_prettifier/nice_ql_config_ext.rb +10 -7
- data/lib/rails_sql_prettifier/niceql_error.rb +2 -1
- data/lib/rails_sql_prettifier/postgres_adapter_nice_ql.rb +1 -1
- data/lib/rails_sql_prettifier/protected_env.rb +4 -2
- data/lib/rails_sql_prettifier/version.rb +3 -1
- data/lib/rails_sql_prettifier.rb +6 -4
- data/rails_sql_prettifier.gemspec +18 -17
- metadata +38 -38
- data/lib/benchmark/cat.rb +0 -34
- data/lib/benchmark/gsub.rb +0 -34
- data/lib/benchmark/txt +0 -748
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d88331480d01f22711f05510cce90fd841478b96e4d6b87be2b668e9270eb4de
|
4
|
+
data.tar.gz: 95c8cf45f0aff20292ba9585125173f7631dfc6e4ac802f26912666637ea9c8f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a11b93c213572042479c7fbd6df4d8569b99e1d35d45dd04918b2935b993c34fd1f8ecc7b63b1b1ae742814fa4960f7286c7a0e275753b85026d1126c7e16d2
|
7
|
+
data.tar.gz: a846f1d875df5629781fb952f41df40c3e8f98a1eb6c3a42cbb1757f9b3a4c77de738d13ec99049a887d789492db7437ea738de456785405ff493fe859653a97
|
data/.github/FUNDING.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
buy_me_a_coffee: alekseyl
|
data/.github/workflows/ci.yml
CHANGED
@@ -4,7 +4,6 @@ on: [push, pull_request]
|
|
4
4
|
|
5
5
|
jobs:
|
6
6
|
test:
|
7
|
-
|
8
7
|
runs-on: ubuntu-latest
|
9
8
|
|
10
9
|
strategy:
|
@@ -12,6 +11,30 @@ jobs:
|
|
12
11
|
matrix:
|
13
12
|
ruby: ["2.7", "3.0", "3.1", "3.2", "3.3"]
|
14
13
|
|
14
|
+
# Service containers to run with `container-job`
|
15
|
+
services:
|
16
|
+
# Label used to access the service container
|
17
|
+
# more about postgres image can be read here: https://hub.docker.com/_/postgres
|
18
|
+
# more about using pg image in CI: https://docs.github.com/en/actions/use-cases-and-examples/using-containerized-services/creating-postgresql-service-containers
|
19
|
+
postgres:
|
20
|
+
# Docker Hub image
|
21
|
+
image: postgres
|
22
|
+
# Provide the password for postgres
|
23
|
+
env:
|
24
|
+
POSTGRES_PASSWORD: postgres
|
25
|
+
POSTGRES_DB: niceql-test
|
26
|
+
POSTGRES_USER: postgres
|
27
|
+
# this options should be kept, otherwise pg container will not be waited
|
28
|
+
options: >-
|
29
|
+
--health-cmd pg_isready
|
30
|
+
--health-interval 10s
|
31
|
+
--health-timeout 5s
|
32
|
+
--health-retries 5
|
33
|
+
--network-alias postgres
|
34
|
+
ports:
|
35
|
+
# Maps tcp port 5432 on service container to the host
|
36
|
+
- 5432:5432
|
37
|
+
|
15
38
|
steps:
|
16
39
|
- uses: actions/checkout@v3
|
17
40
|
- name: Set up Ruby
|
@@ -20,4 +43,6 @@ jobs:
|
|
20
43
|
bundler-cache: true # 'bundle install' and cache gems
|
21
44
|
ruby-version: ${{ matrix.ruby }}
|
22
45
|
- name: Run tests
|
23
|
-
run:
|
46
|
+
run: bundle exec rake test
|
47
|
+
env:
|
48
|
+
POSTGRES_HOST: localhost
|
data/.rubocop.yml
ADDED
@@ -0,0 +1,97 @@
|
|
1
|
+
inherit_gem:
|
2
|
+
rubocop-shopify: rubocop.yml
|
3
|
+
|
4
|
+
AllCops:
|
5
|
+
Exclude:
|
6
|
+
- "./lib/templates/active_record/model/model.rb"
|
7
|
+
- "./lib/modules/flea.rb"
|
8
|
+
|
9
|
+
Style/SingleLineMethods:
|
10
|
+
Description: 'Avoid single-line methods.'
|
11
|
+
StyleGuide: '#no-single-line-methods'
|
12
|
+
Enabled: false
|
13
|
+
VersionAdded: '0.9'
|
14
|
+
VersionChanged: '1.8'
|
15
|
+
AllowIfMethodIsEmpty: true
|
16
|
+
|
17
|
+
Style/AsciiComments:
|
18
|
+
Description: 'Use only ascii symbols in comments.'
|
19
|
+
StyleGuide: '#english-comments'
|
20
|
+
Enabled: false
|
21
|
+
VersionAdded: '0.9'
|
22
|
+
VersionChanged: '1.21'
|
23
|
+
AllowedChars:
|
24
|
+
- ©
|
25
|
+
|
26
|
+
Layout/LineLength:
|
27
|
+
Description: 'Checks that line length does not exceed the configured limit.'
|
28
|
+
StyleGuide: '#max-line-length'
|
29
|
+
Enabled: true
|
30
|
+
VersionAdded: '0.25'
|
31
|
+
VersionChanged: '1.4'
|
32
|
+
Max: 120
|
33
|
+
# To make it possible to copy or click on URIs in the code, we allow lines
|
34
|
+
# containing a URI to be longer than Max.
|
35
|
+
AllowHeredoc: true
|
36
|
+
AllowURI: true
|
37
|
+
URISchemes:
|
38
|
+
- http
|
39
|
+
- https
|
40
|
+
# The IgnoreCopDirectives option causes the LineLength rule to ignore cop
|
41
|
+
# directives like '# rubocop: enable ...' when calculating a line's length.
|
42
|
+
IgnoreCopDirectives: true
|
43
|
+
# The AllowedPatterns option is a list of !ruby/regexp and/or string
|
44
|
+
# elements. Strings will be converted to Regexp objects. A line that matches
|
45
|
+
# any regular expression listed in this option will be ignored by LineLength.
|
46
|
+
AllowedPatterns: []
|
47
|
+
IgnoredPatterns: [] # deprecated
|
48
|
+
Exclude:
|
49
|
+
- "./test/**/**/*"
|
50
|
+
|
51
|
+
Metrics/ClassLength:
|
52
|
+
Description: 'Avoid classes longer than 100 lines of code.'
|
53
|
+
Enabled: false
|
54
|
+
VersionAdded: '0.25'
|
55
|
+
VersionChanged: '0.87'
|
56
|
+
CountComments: false # count full line comments?
|
57
|
+
Max: 100
|
58
|
+
CountAsOne: []
|
59
|
+
|
60
|
+
Lint/MissingCopEnableDirective:
|
61
|
+
Description: 'Checks for a `# rubocop:enable` after `# rubocop:disable`.'
|
62
|
+
Enabled: true
|
63
|
+
VersionAdded: '0.52'
|
64
|
+
# Maximum number of consecutive lines the cop can be disabled for.
|
65
|
+
# 0 allows only single-line disables
|
66
|
+
# 1 would mean the maximum allowed is the following:
|
67
|
+
# # rubocop:disable SomeCop
|
68
|
+
# a = 1
|
69
|
+
# # rubocop:enable SomeCop
|
70
|
+
# .inf for any size
|
71
|
+
MaximumRangeSize: .inf
|
72
|
+
|
73
|
+
Style/MethodCallWithArgsParentheses:
|
74
|
+
Enabled: true
|
75
|
+
IgnoredMethods:
|
76
|
+
- require
|
77
|
+
- require_relative
|
78
|
+
- require_dependency
|
79
|
+
- yield
|
80
|
+
- raise
|
81
|
+
- puts
|
82
|
+
Exclude:
|
83
|
+
- "/**/Gemfile"
|
84
|
+
- "./db/**/*"
|
85
|
+
|
86
|
+
Layout/EmptyLinesAroundBlockBody:
|
87
|
+
# its more documentation than code, so it should be readable and
|
88
|
+
# there are huge amount of multiline description, looks nasty without spaces
|
89
|
+
Exclude:
|
90
|
+
- "./app_doc/**/*"
|
91
|
+
|
92
|
+
Style/ClassAndModuleChildren:
|
93
|
+
Enabled: false
|
94
|
+
|
95
|
+
Lint/UnderscorePrefixedVariableName:
|
96
|
+
Exclude:
|
97
|
+
- "./test/**/**/*"
|
data/CHANGELOG.md
CHANGED
data/Dockerfile_3_1
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
FROM ruby:3.1-bullseye
|
2
|
+
|
3
|
+
WORKDIR /app
|
4
|
+
RUN apt-get update && apt-get -y install lsb-release
|
5
|
+
#
|
6
|
+
RUN wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - && \
|
7
|
+
sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' && \
|
8
|
+
apt-get update && apt-get -y install postgresql postgresql-client-14
|
9
|
+
|
10
|
+
RUN sh -c 'echo "local all all trust" > /etc/postgresql/$(ls /etc/postgresql)/main/pg_hba.conf' && \
|
11
|
+
service postgresql start && \
|
12
|
+
psql -U postgres -c 'CREATE DATABASE "niceql-test"'
|
13
|
+
|
14
|
+
RUN gem install bundler
|
15
|
+
|
16
|
+
COPY lib/rails_sql_prettifier/version.rb /app/lib/rails_sql_prettifier/version.rb
|
17
|
+
COPY rails_sql_prettifier.gemspec /app/
|
18
|
+
COPY Gemfil* /app/
|
19
|
+
#
|
20
|
+
RUN bundle install
|
data/Gemfile
CHANGED
data/Rakefile
CHANGED
data/bin/console
CHANGED
data/docker-compose.yml
CHANGED
@@ -16,3 +16,12 @@ services:
|
|
16
16
|
command: /bin/bash -c 'service postgresql start && rake test'
|
17
17
|
volumes:
|
18
18
|
- '.:/app'
|
19
|
+
|
20
|
+
test_3_1:
|
21
|
+
build:
|
22
|
+
context: .
|
23
|
+
dockerfile: Dockerfile_3_1
|
24
|
+
image: niceql_3_1
|
25
|
+
command: /bin/bash -c 'service postgresql start && rake test'
|
26
|
+
volumes:
|
27
|
+
- '.:/app'
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Niceql
|
2
4
|
module Generators
|
3
5
|
class InstallGenerator < Rails::Generators::Base
|
@@ -5,10 +7,10 @@ module Niceql
|
|
5
7
|
desc "Creates Niceql initializer for your application"
|
6
8
|
|
7
9
|
def copy_initializer
|
8
|
-
template
|
10
|
+
template("niceql_initializer.rb", "config/initializers/niceql.rb")
|
9
11
|
|
10
12
|
puts "Install complete!"
|
11
13
|
end
|
12
14
|
end
|
13
15
|
end
|
14
|
-
end
|
16
|
+
end
|
@@ -3,12 +3,13 @@
|
|
3
3
|
module RailsSQLPrettifier
|
4
4
|
module AbstractAdapterLogPrettifier
|
5
5
|
private
|
6
|
-
|
6
|
+
|
7
|
+
def log(sql, *args, **kwargs, &block)
|
7
8
|
# \n need to be placed because AR log will start with action description + time info.
|
8
9
|
# rescue sql - just to be sure Prettifier wouldn't break production
|
9
10
|
formatted_sql = "\n" + Niceql::Prettifier.prettify_sql(sql) rescue sql
|
10
11
|
|
11
|
-
super(
|
12
|
+
super(formatted_sql, *args, **kwargs, &block)
|
12
13
|
end
|
13
14
|
end
|
14
|
-
end
|
15
|
+
end
|
@@ -1,12 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
module RailsSQLPrettifier
|
4
|
-
|
5
4
|
module ArExtentions
|
6
5
|
def exec_niceql(reraise = false)
|
7
|
-
connection.execute(
|
8
|
-
rescue => e
|
9
|
-
puts Niceql::Prettifier.prettify_pg_err(
|
6
|
+
connection.execute(to_niceql)
|
7
|
+
rescue StandardError => e
|
8
|
+
puts Niceql::Prettifier.prettify_pg_err(e.message, to_niceql)
|
10
9
|
raise if reraise
|
11
10
|
end
|
12
11
|
|
@@ -14,8 +13,8 @@ module RailsSQLPrettifier
|
|
14
13
|
Niceql::Prettifier.prettify_sql(to_sql, false)
|
15
14
|
end
|
16
15
|
|
17
|
-
def niceql(
|
18
|
-
puts Niceql::Prettifier.prettify_sql(
|
16
|
+
def niceql(colorize = true)
|
17
|
+
puts Niceql::Prettifier.prettify_sql(to_sql, colorize)
|
19
18
|
end
|
20
19
|
end
|
21
20
|
end
|
@@ -6,15 +6,15 @@ module RailsSQLPrettifier
|
|
6
6
|
|
7
7
|
included do
|
8
8
|
attr_accessor :pg_adapter_with_nicesql,
|
9
|
-
|
10
|
-
|
9
|
+
:prettify_active_record_log_output,
|
10
|
+
:prettify_pg_errors
|
11
11
|
|
12
12
|
# we need to use a prepend otherwise it's not preceding Niceql.configure in a lookup chain
|
13
13
|
Niceql.singleton_class.prepend(Configure)
|
14
14
|
end
|
15
15
|
|
16
16
|
def ar_using_pg_adapter?
|
17
|
-
ActiveRecord::Base.connection_db_config.adapter ==
|
17
|
+
ActiveRecord::Base.connection_db_config.adapter == "postgresql"
|
18
18
|
end
|
19
19
|
|
20
20
|
def initialize
|
@@ -29,16 +29,19 @@ module RailsSQLPrettifier
|
|
29
29
|
super
|
30
30
|
|
31
31
|
if config.pg_adapter_with_nicesql &&
|
32
|
-
|
32
|
+
defined?(::ActiveRecord::ConnectionAdapters::PostgreSQLAdapter) && !protected_env?
|
33
33
|
|
34
34
|
::ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.include(PostgresAdapterNiceQL)
|
35
35
|
end
|
36
36
|
|
37
|
-
|
37
|
+
if config.prettify_active_record_log_output
|
38
|
+
::ActiveRecord::ConnectionAdapters::AbstractAdapter.prepend(AbstractAdapterLogPrettifier)
|
39
|
+
end
|
38
40
|
|
39
|
-
|
41
|
+
if config.prettify_pg_errors && config.ar_using_pg_adapter?
|
42
|
+
::ActiveRecord::StatementInvalid.include(NiceqlError)
|
43
|
+
end
|
40
44
|
end
|
41
45
|
end
|
42
46
|
end
|
43
|
-
|
44
47
|
end
|
@@ -1,10 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
+
|
2
3
|
module RailsSQLPrettifier
|
3
4
|
module NiceqlError
|
4
5
|
def to_s
|
5
6
|
# older rails version do not provide sql as a standalone query, instead they
|
6
7
|
# deliver joined message, and try(:sql) will set prettify_err with nil in that case
|
7
|
-
Niceql.config.prettify_pg_errors ? Niceql::Prettifier.prettify_err(super, try(:sql)
|
8
|
+
Niceql.config.prettify_pg_errors ? Niceql::Prettifier.prettify_err(super, try(:sql)) : super
|
8
9
|
end
|
9
10
|
end
|
10
11
|
end
|
@@ -4,7 +4,7 @@ module RailsSQLPrettifier
|
|
4
4
|
module PostgresAdapterNiceQL
|
5
5
|
def exec_query(sql, *args, **kwargs, &block)
|
6
6
|
# replacing sql with prettified sql, that's all
|
7
|
-
super(
|
7
|
+
super(Niceql::Prettifier.prettify_sql(sql, false), *args, **kwargs, &block)
|
8
8
|
end
|
9
9
|
end
|
10
10
|
end
|
@@ -1,10 +1,12 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
module RailsSQLPrettifier
|
4
|
-
|
5
4
|
module ProtectedEnv
|
6
5
|
def protected_env?
|
7
|
-
ActiveRecord::Base.connection.migration_context
|
6
|
+
migration_context = ActiveRecord::Base.connection.try(:migration_context) ||
|
7
|
+
ActiveRecord::Base.connection.try(:pool)&.migration_context # rails 7.2+
|
8
|
+
|
9
|
+
migration_context&.protected_environment? ||
|
8
10
|
defined?(Rails) && !(Rails.env.test? || Rails.env.development?)
|
9
11
|
end
|
10
12
|
end
|
data/lib/rails_sql_prettifier.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require "rails_sql_prettifier/version"
|
2
4
|
require "rails_sql_prettifier/abstract_adapter_log_prettifier"
|
3
5
|
require "rails_sql_prettifier/ar_extensions"
|
@@ -6,13 +8,13 @@ require "rails_sql_prettifier/nice_ql_config_ext"
|
|
6
8
|
require "rails_sql_prettifier/postgres_adapter_nice_ql"
|
7
9
|
require "rails_sql_prettifier/protected_env"
|
8
10
|
|
9
|
-
require
|
11
|
+
require "active_record"
|
10
12
|
require "niceql"
|
11
13
|
|
12
14
|
module RailsSQLPrettifier
|
13
|
-
::ActiveRecord::Relation.include
|
14
|
-
::Arel::TreeManager.include
|
15
|
-
::Arel::Nodes::Node.include
|
15
|
+
::ActiveRecord::Relation.include(ArExtentions)
|
16
|
+
::Arel::TreeManager.include(ArExtentions)
|
17
|
+
::Arel::Nodes::Node.include(ArExtentions)
|
16
18
|
|
17
19
|
Niceql::NiceQLConfig.include(NiceQLConfigExt)
|
18
20
|
Niceql.extend(ProtectedEnv)
|
@@ -1,5 +1,6 @@
|
|
1
|
-
#
|
2
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
lib = File.expand_path("lib", __dir__)
|
3
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
5
|
require "rails_sql_prettifier/version"
|
5
6
|
|
@@ -9,8 +10,8 @@ Gem::Specification.new do |spec|
|
|
9
10
|
spec.authors = ["alekseyl"]
|
10
11
|
spec.email = ["leshchuk@gmail.com"]
|
11
12
|
|
12
|
-
spec.summary =
|
13
|
-
spec.description =
|
13
|
+
spec.summary = "This is an ActiveRecord integration for the SQL prettifier gem niceql. "
|
14
|
+
spec.description = "This is an ActiveRecord integration for the SQL prettifier gem niceql. "
|
14
15
|
spec.homepage = "https://github.com/alekseyl/rails_sql_prettifier"
|
15
16
|
spec.license = "MIT"
|
16
17
|
|
@@ -23,7 +24,7 @@ Gem::Specification.new do |spec|
|
|
23
24
|
"public gem pushes."
|
24
25
|
end
|
25
26
|
|
26
|
-
spec.files
|
27
|
+
spec.files = %x(git ls-files -z).split("\x0").reject do |f|
|
27
28
|
f.match(%r{^(test|spec|features)/})
|
28
29
|
end
|
29
30
|
spec.bindir = "exe"
|
@@ -31,19 +32,19 @@ Gem::Specification.new do |spec|
|
|
31
32
|
spec.require_paths = ["lib"]
|
32
33
|
|
33
34
|
# for rails 7 you cannot use ruby below 2.7
|
34
|
-
spec.required_ruby_version =
|
35
|
-
spec.add_dependency "
|
36
|
-
spec.add_dependency
|
35
|
+
spec.required_ruby_version = ">= 2.7"
|
36
|
+
spec.add_dependency("activerecord", ">= 7", "< 8")
|
37
|
+
spec.add_dependency("niceql", "~> 0.6")
|
37
38
|
|
38
|
-
spec.add_development_dependency
|
39
|
-
spec.add_development_dependency
|
40
|
-
spec.add_development_dependency
|
39
|
+
spec.add_development_dependency("bundler", ">= 1")
|
40
|
+
spec.add_development_dependency("minitest", "~> 5.0")
|
41
|
+
spec.add_development_dependency("rake", ">= 12.3.3")
|
41
42
|
|
42
|
-
spec.add_development_dependency
|
43
|
-
spec.add_development_dependency
|
44
|
-
spec.add_development_dependency
|
45
|
-
spec.add_development_dependency
|
46
|
-
spec.add_development_dependency
|
43
|
+
spec.add_development_dependency("awesome_print")
|
44
|
+
spec.add_development_dependency("differ", "~> 0.1")
|
45
|
+
spec.add_development_dependency("pg", "~> 1")
|
46
|
+
spec.add_development_dependency("pry-byebug", "~> 3.9")
|
47
|
+
spec.add_development_dependency("rubocop-shopify")
|
47
48
|
|
48
|
-
spec.add_development_dependency
|
49
|
+
spec.add_development_dependency("stubberry", "~> 0.2")
|
49
50
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_sql_prettifier
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.0.
|
4
|
+
version: 7.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- alekseyl
|
@@ -10,20 +10,6 @@ bindir: exe
|
|
10
10
|
cert_chain: []
|
11
11
|
date: 2025-02-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: niceql
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '0.6'
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '0.6'
|
27
13
|
- !ruby/object:Gem::Dependency
|
28
14
|
name: activerecord
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|
@@ -45,33 +31,33 @@ dependencies:
|
|
45
31
|
- !ruby/object:Gem::Version
|
46
32
|
version: '8'
|
47
33
|
- !ruby/object:Gem::Dependency
|
48
|
-
name:
|
34
|
+
name: niceql
|
49
35
|
requirement: !ruby/object:Gem::Requirement
|
50
36
|
requirements:
|
51
|
-
- - "
|
37
|
+
- - "~>"
|
52
38
|
- !ruby/object:Gem::Version
|
53
|
-
version: '
|
54
|
-
type: :
|
39
|
+
version: '0.6'
|
40
|
+
type: :runtime
|
55
41
|
prerelease: false
|
56
42
|
version_requirements: !ruby/object:Gem::Requirement
|
57
43
|
requirements:
|
58
|
-
- - "
|
44
|
+
- - "~>"
|
59
45
|
- !ruby/object:Gem::Version
|
60
|
-
version: '
|
46
|
+
version: '0.6'
|
61
47
|
- !ruby/object:Gem::Dependency
|
62
|
-
name:
|
48
|
+
name: bundler
|
63
49
|
requirement: !ruby/object:Gem::Requirement
|
64
50
|
requirements:
|
65
51
|
- - ">="
|
66
52
|
- !ruby/object:Gem::Version
|
67
|
-
version:
|
53
|
+
version: '1'
|
68
54
|
type: :development
|
69
55
|
prerelease: false
|
70
56
|
version_requirements: !ruby/object:Gem::Requirement
|
71
57
|
requirements:
|
72
58
|
- - ">="
|
73
59
|
- !ruby/object:Gem::Version
|
74
|
-
version:
|
60
|
+
version: '1'
|
75
61
|
- !ruby/object:Gem::Dependency
|
76
62
|
name: minitest
|
77
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,6 +72,20 @@ dependencies:
|
|
86
72
|
- - "~>"
|
87
73
|
- !ruby/object:Gem::Version
|
88
74
|
version: '5.0'
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: rake
|
77
|
+
requirement: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - ">="
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: 12.3.3
|
82
|
+
type: :development
|
83
|
+
prerelease: false
|
84
|
+
version_requirements: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - ">="
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: 12.3.3
|
89
89
|
- !ruby/object:Gem::Dependency
|
90
90
|
name: awesome_print
|
91
91
|
requirement: !ruby/object:Gem::Requirement
|
@@ -115,47 +115,47 @@ dependencies:
|
|
115
115
|
- !ruby/object:Gem::Version
|
116
116
|
version: '0.1'
|
117
117
|
- !ruby/object:Gem::Dependency
|
118
|
-
name:
|
118
|
+
name: pg
|
119
119
|
requirement: !ruby/object:Gem::Requirement
|
120
120
|
requirements:
|
121
121
|
- - "~>"
|
122
122
|
- !ruby/object:Gem::Version
|
123
|
-
version: '
|
123
|
+
version: '1'
|
124
124
|
type: :development
|
125
125
|
prerelease: false
|
126
126
|
version_requirements: !ruby/object:Gem::Requirement
|
127
127
|
requirements:
|
128
128
|
- - "~>"
|
129
129
|
- !ruby/object:Gem::Version
|
130
|
-
version: '
|
130
|
+
version: '1'
|
131
131
|
- !ruby/object:Gem::Dependency
|
132
|
-
name:
|
132
|
+
name: pry-byebug
|
133
133
|
requirement: !ruby/object:Gem::Requirement
|
134
134
|
requirements:
|
135
135
|
- - "~>"
|
136
136
|
- !ruby/object:Gem::Version
|
137
|
-
version: '
|
137
|
+
version: '3.9'
|
138
138
|
type: :development
|
139
139
|
prerelease: false
|
140
140
|
version_requirements: !ruby/object:Gem::Requirement
|
141
141
|
requirements:
|
142
142
|
- - "~>"
|
143
143
|
- !ruby/object:Gem::Version
|
144
|
-
version: '
|
144
|
+
version: '3.9'
|
145
145
|
- !ruby/object:Gem::Dependency
|
146
|
-
name:
|
146
|
+
name: rubocop-shopify
|
147
147
|
requirement: !ruby/object:Gem::Requirement
|
148
148
|
requirements:
|
149
|
-
- - "
|
149
|
+
- - ">="
|
150
150
|
- !ruby/object:Gem::Version
|
151
|
-
version: '
|
151
|
+
version: '0'
|
152
152
|
type: :development
|
153
153
|
prerelease: false
|
154
154
|
version_requirements: !ruby/object:Gem::Requirement
|
155
155
|
requirements:
|
156
|
-
- - "
|
156
|
+
- - ">="
|
157
157
|
- !ruby/object:Gem::Version
|
158
|
-
version: '
|
158
|
+
version: '0'
|
159
159
|
- !ruby/object:Gem::Dependency
|
160
160
|
name: stubberry
|
161
161
|
requirement: !ruby/object:Gem::Requirement
|
@@ -177,15 +177,18 @@ executables: []
|
|
177
177
|
extensions: []
|
178
178
|
extra_rdoc_files: []
|
179
179
|
files:
|
180
|
+
- ".github/FUNDING.yml"
|
180
181
|
- ".github/dependabot.yml"
|
181
182
|
- ".github/workflows/ci.yml"
|
182
183
|
- ".github/workflows/rubocop.yml"
|
183
184
|
- ".gitignore"
|
185
|
+
- ".rubocop.yml"
|
184
186
|
- ".ruby-gemset"
|
185
187
|
- ".ruby-version"
|
186
188
|
- CHANGELOG.md
|
187
189
|
- Dockerfile
|
188
190
|
- Dockerfile_30
|
191
|
+
- Dockerfile_3_1
|
189
192
|
- Gemfile
|
190
193
|
- LICENSE.txt
|
191
194
|
- README.md
|
@@ -195,9 +198,6 @@ files:
|
|
195
198
|
- docker-compose.yml
|
196
199
|
- err_now.png
|
197
200
|
- err_was.png
|
198
|
-
- lib/benchmark/cat.rb
|
199
|
-
- lib/benchmark/gsub.rb
|
200
|
-
- lib/benchmark/txt
|
201
201
|
- lib/generators/niceql/install_generator.rb
|
202
202
|
- lib/generators/templates/niceql_initializer.rb
|
203
203
|
- lib/rails_sql_prettifier.rb
|