query_police 0.1.5.beta → 0.1.6.beta
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +4 -1
- data/README.md +1 -1
- data/lib/query_police/analysis.rb +2 -0
- data/lib/query_police/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d7cbb07a0783ba8831ddeaebf6fb8d236864e129029f393705fe1bbfda46a0d5
|
4
|
+
data.tar.gz: 68ed54d30e62256f1f48914fc3d070ac3e4e40d6e6dc85ed5c3c8faf9cc91805
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2686708a19094cbb2b128f57f1d930906536881f44f2801189412630c06748acb73e0c4ef422d24d971736da734d061aab8aba791b9371ecff150cf7b0a1a91f
|
7
|
+
data.tar.gz: b52b118f9e9667baf733471f3e1744381e81cdfe4f6016514e5cb119303518aa1231843de9e77f7f7b956717a72eaf9b4aa600d842b91c8319306610ad2e28bd
|
data/.rubocop.yml
CHANGED
data/README.md
CHANGED
@@ -6,7 +6,7 @@ It is a rule-based engine with custom rules to Analyze Active-Record relations u
|
|
6
6
|
|
7
7
|
Install the gem and add it to the application's Gemfile by executing:
|
8
8
|
|
9
|
-
$ gem 'query_police', '~> 0.1.
|
9
|
+
$ gem 'query_police', '~> 0.1.6.beta'
|
10
10
|
|
11
11
|
If the bundler is not being used to manage dependencies, install the gem by executing:
|
12
12
|
|
@@ -122,6 +122,8 @@ module QueryPolice
|
|
122
122
|
final_message += pretty_analysis_for(impact, opts_) if value.present?
|
123
123
|
end
|
124
124
|
|
125
|
+
return final_message unless final_message.present?
|
126
|
+
|
125
127
|
opts.dig("skip_footer").present? ? final_message : final_message + @footer
|
126
128
|
end
|
127
129
|
|
data/lib/query_police/version.rb
CHANGED