unique_validation_inspector 0.1.2 → 0.1.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 70390b627c73e153474d0d57590b2de6bb6533c5
4
- data.tar.gz: 9a713a2d4f67259868c2465bb6c32488628b9957
3
+ metadata.gz: 46a8e208afca114d0cf07b514a54fb91bc0f9d02
4
+ data.tar.gz: b34defca8e956fd5a338cc38c8bd5684243e5f30
5
5
  SHA512:
6
- metadata.gz: e3601013eae1cf087178032e82837e5dcefb2066e8577d22a201104af0447878e79f574717d63236a76a0cbb8e3d893c361079590ab6dc88684242c738049fa2
7
- data.tar.gz: 5a23901019f4460ca90a680cc88c8afdd70833dca76687c8dd781c9b1879a007200bb084668b5977af8333a909154ead886d5667fd710290d95455af3db0b233
6
+ metadata.gz: ed84da62e136620b773e90f2658beb41b697d6cd899030d86d282a41b3dd58e3f516f3e1540b901281f947604122a194de4715cc72270c46189476c10400c392
7
+ data.tar.gz: a8c57932bc049e372ed622320c90c5fdd02f1a4c870eb56cede6513c394fadbf85bb965501de5d7da12f49c525c9f1def18e0c7bceff85f21d3c66b9375993a3
data/CHANGELOG.md ADDED
@@ -0,0 +1,17 @@
1
+ ## 0.1.3 (August 23, 2017)
2
+
3
+ #### Fixes
4
+
5
+ * No models are loaded on some apps (https://github.com/soulfly/unique_validation_inspector/pull/2)
6
+
7
+ ## 0.1.2 (August 14, 2017)
8
+
9
+ #### Fixes
10
+
11
+ * Task fails with abstract model with no table on db (https://github.com/soulfly/unique_validation_inspector/issues/1)
12
+
13
+ ## 0.1.1 (August 11, 2017)
14
+
15
+ #### Features
16
+
17
+ * Initial version
data/CONTRIBUTING.md ADDED
@@ -0,0 +1 @@
1
+ Fork, patch, then send me a pull request.
@@ -1,6 +1,7 @@
1
1
  desc 'Finds unique validations in models that do not have DB indexes.'
2
2
  task :inspect_unique_validations => :environment do
3
3
  inspector = UniqueValidationInspector::Inspector.new Rails.application
4
+ inspector.load_everything!
4
5
 
5
6
  defined_unique_validations = inspector.defined_unique_validations
6
7
 
@@ -12,6 +12,11 @@ module UniqueValidationInspector
12
12
 
13
13
  def initialize(app)
14
14
  @app = app
15
+
16
+ end
17
+
18
+ def load_everything!
19
+ @app.eager_load!
15
20
  end
16
21
 
17
22
  def defined_unique_validations
@@ -1,3 +1,3 @@
1
1
  module UniqueValidationInspector
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unique_validation_inspector
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Khomenko
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-08-14 00:00:00.000000000 Z
11
+ date: 2017-08-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -90,6 +90,8 @@ extra_rdoc_files: []
90
90
  files:
91
91
  - ".gitignore"
92
92
  - ".travis.yml"
93
+ - CHANGELOG.md
94
+ - CONTRIBUTING.md
93
95
  - Gemfile
94
96
  - LICENSE
95
97
  - README.md