factory_bot-awesome_linter 1.0.3 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/factory_bot-awesome_linter/version.rb +1 -1
- data/lib/factory_bot-awesome_linter.rb +4 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b4a2f5d05d6d9ca4043893d5c91205e859ba510a16a79437e20d7346a5f80d75
|
4
|
+
data.tar.gz: 477c1487d7b700b374b27e3e0943e27664ffd5892ebdcdbcb07e7d67bd34ed3c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc8fb4c26f797fcaef3820e45df7cb255432941feec7ccd6ca40b239a322e7b8a48eacf7ccbf3b329c94eec9be69a822336af0aaa0db56e4f7dd0ce1078164e9
|
7
|
+
data.tar.gz: 94b4841a8604386094d5927c06f3dc5c2db6541fbd020bbf87d929f953d54d860eb930ce44f556edd121991bd9a184da53d23decebef6482a5527d725c9f4a82
|
@@ -122,7 +122,10 @@ module FactoryBot
|
|
122
122
|
DatabaseCleaner.cleaning(&block)
|
123
123
|
elsif defined?(ActiveRecord)
|
124
124
|
@activerecord_connection ||= ActiveRecord::Base.connection
|
125
|
-
@activerecord_connection.transaction
|
125
|
+
@activerecord_connection.transaction do
|
126
|
+
yield
|
127
|
+
raise ActiveRecord::Rollback
|
128
|
+
end
|
126
129
|
else
|
127
130
|
raise "No cleaning strategie available, you may require or include database-cleaner in your Gemfile"
|
128
131
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: factory_bot-awesome_linter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Savater Sebastien
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: factory_bot
|
@@ -66,7 +66,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
66
66
|
- !ruby/object:Gem::Version
|
67
67
|
version: '0'
|
68
68
|
requirements: []
|
69
|
-
rubygems_version: 3.
|
69
|
+
rubygems_version: 3.3.7
|
70
70
|
signing_key:
|
71
71
|
specification_version: 4
|
72
72
|
summary: Enhanced linter for FactoryBot
|