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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 17f82c4e4c142b73d48809cef5385301eb7ea6b16529ee641e73e5de0b510174
4
- data.tar.gz: 648d20ada0da1abc3bdc97b50c8cb8404b8562783ce3b5ab7104ff8f3eed4f05
3
+ metadata.gz: d7cbb07a0783ba8831ddeaebf6fb8d236864e129029f393705fe1bbfda46a0d5
4
+ data.tar.gz: 68ed54d30e62256f1f48914fc3d070ac3e4e40d6e6dc85ed5c3c8faf9cc91805
5
5
  SHA512:
6
- metadata.gz: 85514f69ce540e76fd712cc473c03c320d94feac91b3c72c61cf96e0864ff0491b7c7097fb00342e793f38c1b2df311a0d5719e67cbb288399a5c362c38749dc
7
- data.tar.gz: 82a16c024c931c74f8560ac4037eeca06a691a2bf86eacd0a824cfbadbe3aceb8444bd102cddbef9de17e31a48320094667e1aa81e2eabd832e24ac6a7f23d42
6
+ metadata.gz: 2686708a19094cbb2b128f57f1d930906536881f44f2801189412630c06748acb73e0c4ef422d24d971736da734d061aab8aba791b9371ecff150cf7b0a1a91f
7
+ data.tar.gz: b52b118f9e9667baf733471f3e1744381e81cdfe4f6016514e5cb119303518aa1231843de9e77f7f7b956717a72eaf9b4aa600d842b91c8319306610ad2e28bd
data/.rubocop.yml CHANGED
@@ -16,7 +16,10 @@ Style/HashTransformValues:
16
16
  Enabled: true
17
17
 
18
18
  Style/HashEachMethods:
19
- Enabled: true
19
+ Enabled: true
20
+
21
+ Metrics/ClassLength:
22
+ Max: 120
20
23
 
21
24
  Metrics/MethodLength:
22
25
  Max: 15
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.5.beta'
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module QueryPolice
4
- VERSION = "0.1.5.beta"
4
+ VERSION = "0.1.6.beta"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: query_police
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5.beta
4
+ version: 0.1.6.beta
5
5
  platform: ruby
6
6
  authors:
7
7
  - strikeraryu