rspec-all_records_validator 0.0.9 → 0.1.0

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
  SHA256:
3
- metadata.gz: e3ababcff1dab5b455e5e6aba00a8543a64f6c1ec8bf8473421379f643e27b43
4
- data.tar.gz: 0c541b63d4ff5594a80c569ab5e74b2c12c94294e3f03240532c9ac5efea58b2
3
+ metadata.gz: e2f7cae056e1f823338f2c399fceae7db6c44333c9643795ba058867540c00ad
4
+ data.tar.gz: 97e990301f8b232199b5cc813a094954b28b21c574f6a4af57e14d36b978b852
5
5
  SHA512:
6
- metadata.gz: 1317679c0a865737fff766a8c52bc36744ed3614a1cec199cf5fc9417cf973dcf86b2c2c1f744509b6118e496b9a438e8dd3bc04a529c64a509e28286fb72cdb
7
- data.tar.gz: 85b9e61b9ac6a8e76a4fd4d243fa7a36095ebcf096c8f7ab1fb42db0a86ce5006cb26a63a80d21f11d0982da62706ee264823c127ff055a70636f3e7aa316d79
6
+ metadata.gz: ba6811d02f7082ef00421f6a134d5c1626dd73d9294278adf6a16e7448875f912a49ad9d3193214b2f55804c427cdee7cc0a55143d01f8bd067309ff642aa9e1
7
+ data.tar.gz: 4c62c235304c8d08ae8ad538dbdb43e17fcbb6919ca9bd16806e02d3f9da3dcd366077b8dae8313a0e915f229ee738798297037fcb1b15c153b3ee744a8d6b7a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rspec-all_records_validator (0.0.9)
4
+ rspec-all_records_validator (0.1.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -168,6 +168,7 @@ GEM
168
168
 
169
169
  PLATFORMS
170
170
  x86_64-darwin-18
171
+ x86_64-darwin-19
171
172
  x86_64-linux
172
173
 
173
174
  DEPENDENCIES
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RSpec
4
4
  module AllRecordsValidator
5
- VERSION = "0.0.9"
5
+ VERSION = "0.1.0"
6
6
  end
7
7
  end
@@ -8,7 +8,7 @@ module RSpec
8
8
  target_classes = ApplicationRecord.subclasses.reject {|klass| klass.abstract_class? || ignored_models.include?(klass) || (only_has_many && klass.reflect_on_all_associations(:has_many).blank?) }
9
9
 
10
10
  target_classes.each do |klass|
11
- klass.all.each do |obj|
11
+ klass.all.find_each do |obj|
12
12
  obj.validate!
13
13
  end
14
14
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-all_records_validator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - colorbox
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-22 00:00:00.000000000 Z
11
+ date: 2022-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails