nullalign 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/README.md +1 -0
- data/lib/nullalign/models.rb +2 -1
- data/lib/nullalign/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 181f989e273863647bef87a1c009fb6c0df17d42
|
4
|
+
data.tar.gz: 7ef4accaa85308841482c4f631576047962f2a24
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 932bdc9c75137594e03affb529ce7c7dfda65a8b8313ed64fd1830c731e50d1067a1a74a6eeb431ed9485bac0f915fcdbde4675b9c88d7d3b75f812783c2c876
|
7
|
+
data.tar.gz: 7682dfd76165eb0fbfc911bca589509d6250d6b4a904efd08b6914a157bbbf24f4901e70d56daa4a22c74120fa00a71c1b4a656082fecb77dc4c916d860ad526
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -56,6 +56,7 @@ like 'nonullalign' if people think that would be useful. Just let me know.
|
|
56
56
|
## Contributors
|
57
57
|
|
58
58
|
* [Tom Copeland](https://thomasleecopeland.com) - author
|
59
|
+
* [Denny Mueller](https://github.com/dennym) - fix for ActiveStorage compatibility issue
|
59
60
|
* [Woongcheol Yang](https://github.com/woongy) - support for conditional validations
|
60
61
|
* [Paweł Dąbrowski](https://twitter.com/pdabrowski_k1) - Rake task suggestion
|
61
62
|
|
data/lib/nullalign/models.rb
CHANGED
@@ -3,6 +3,7 @@ require 'active_record'
|
|
3
3
|
module Nullalign
|
4
4
|
class Models
|
5
5
|
MODEL_DIRECTORY_REGEXP = /models/
|
6
|
+
IGNORE_DIRECTORY_REGEXP = /activestorage-\S*\/app\/models/
|
6
7
|
|
7
8
|
attr_reader :load_path
|
8
9
|
|
@@ -11,7 +12,7 @@ module Nullalign
|
|
11
12
|
end
|
12
13
|
|
13
14
|
def dirs
|
14
|
-
load_path.select { |lp| MODEL_DIRECTORY_REGEXP =~ lp.to_s }
|
15
|
+
load_path.select { |lp| MODEL_DIRECTORY_REGEXP =~ lp.to_s unless IGNORE_DIRECTORY_REGEXP =~ lp.to_s}
|
15
16
|
end
|
16
17
|
|
17
18
|
def preload_all
|
data/lib/nullalign/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nullalign
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Copeland
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|