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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 657f6a975071d2ef7bfa17fb58ea80d6faa56a94
4
- data.tar.gz: e67511b01e6a7a50d6efeecf44a7c3d882e8083d
3
+ metadata.gz: 181f989e273863647bef87a1c009fb6c0df17d42
4
+ data.tar.gz: 7ef4accaa85308841482c4f631576047962f2a24
5
5
  SHA512:
6
- metadata.gz: 298ebc2eaeea4b157d574d9858c8ba40e6c308779490cae645bce7ba93e0d97c539527621e65b0e56421f3d68789c3bb240527f067b01a24bd614b8ece9eed8c
7
- data.tar.gz: b89c85dc3acabd3f87aae7920909fc4bc1ee7ce6287f921c4e0b91b4343a943e543739253b43d9f72a1d1180dcf501c331d149d35b56cfef1b01f3898ebedded
6
+ metadata.gz: 932bdc9c75137594e03affb529ce7c7dfda65a8b8313ed64fd1830c731e50d1067a1a74a6eeb431ed9485bac0f915fcdbde4675b9c88d7d3b75f812783c2c876
7
+ data.tar.gz: 7682dfd76165eb0fbfc911bca589509d6250d6b4a904efd08b6914a157bbbf24f4901e70d56daa4a22c74120fa00a71c1b4a656082fecb77dc4c916d860ad526
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.0.4 Sep 27 2018
4
+ * Add nullalign:fix Rake task
5
+
3
6
  ## v0.0.3 Feb 14 2018
4
7
  * Add nullalign:fix Rake task
5
8
 
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
 
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Nullalign
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
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.3
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-02-15 00:00:00.000000000 Z
11
+ date: 2018-09-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord