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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 210596205f2e0a7ac600f6411f8b9cced0103ef250b54cfd6e5b7be81c244e48
4
- data.tar.gz: 1493962d61cf424e5109c2536427c9402956332fde77da02ecd33493ad6708b5
3
+ metadata.gz: b4a2f5d05d6d9ca4043893d5c91205e859ba510a16a79437e20d7346a5f80d75
4
+ data.tar.gz: 477c1487d7b700b374b27e3e0943e27664ffd5892ebdcdbcb07e7d67bd34ed3c
5
5
  SHA512:
6
- metadata.gz: d3e70e0d4536ccd182509a15fee6c2a63554b9948538785d1265d58a0172f397dbfeb7e328ff6c8435c5b45e058f537f421d1c2edce26510b330d3578698a5f1
7
- data.tar.gz: 9a372223b137118bcade516be4cba46a80013dc01341a15d0a03d6488235818f3e421785e7776064a912d4af06de5e1c082d1d49cb79f77aee07a4e8f8e7b98c
6
+ metadata.gz: dc8fb4c26f797fcaef3820e45df7cb255432941feec7ccd6ca40b239a322e7b8a48eacf7ccbf3b329c94eec9be69a822336af0aaa0db56e4f7dd0ce1078164e9
7
+ data.tar.gz: 94b4841a8604386094d5927c06f3dc5c2db6541fbd020bbf87d929f953d54d860eb930ce44f556edd121991bd9a184da53d23decebef6482a5527d725c9f4a82
@@ -1,5 +1,5 @@
1
1
  module FactoryBot
2
2
  class AwesomeLinter
3
- VERSION = '1.0.3'.freeze
3
+ VERSION = '1.0.5'.freeze
4
4
  end
5
5
  end
@@ -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(&block)
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.3
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: 2021-02-22 00:00:00.000000000 Z
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.0.8
69
+ rubygems_version: 3.3.7
70
70
  signing_key:
71
71
  specification_version: 4
72
72
  summary: Enhanced linter for FactoryBot