factory_bot_rails 5.1.0 → 5.1.1

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: 51ea85a9365b7f82f29d2629ab19de461bf65870075542abdbc4cc1ce501f16b
4
- data.tar.gz: 70eeaceae875965139eeaf4be38714f0ddf4e2221a9c446bf7a9b1efd098b37b
3
+ metadata.gz: 889ea2acf3323850c9bcbaef4585aae23df7d03bf0d0442dc94a4952f5389ed1
4
+ data.tar.gz: c2302de95f5a5ce2249115b39d8aa9892fba66a7e9f7eb5e0aec0d4f5673ae58
5
5
  SHA512:
6
- metadata.gz: d6a1dd1eaf56d3f0ef00c1b844d91433c3210f8d18bb0b978ee7e8c5de002817e6675256431ba8fa29164d504e374c40db65e82167907a51df984efc7b9e7b36
7
- data.tar.gz: 41cdc0b7ff621c1955c1bbe426416ea2268068251b12532e05d3334dc9c00532fd48daa77b4fe9848aa640fe7b0de7a254eb215c2c2b34f697ef57b8613b4ddc
6
+ metadata.gz: 1c090ec3a5f2c138091e2d6c85b21ec4efa42a7966df0bb76bd26018522fdaf4ea4a83cb61a02e5f996e42db44698882115d3c84b994908e8234a12b6ca61747
7
+ data.tar.gz: d7862a20d0ef8979b46240225702ff6a4356a93b068032901aef4bad395d913ada443613b3e4d0fd5659fcd479e0fe431920cf1d103063d3bc756af19904bcae
data/NEWS.md CHANGED
@@ -3,6 +3,9 @@ there might not be any notable changes in new versions of this project.
3
3
 
4
4
  # NEWS
5
5
 
6
+ ## 5.1.1 (September 24, 2019)
7
+ * Fixed: Ensure definitions do not load before I18n is initialized
8
+
6
9
  ## 5.1.0 (September 24, 2019)
7
10
  * Changed: factory_bot dependency to ~> 5.1.0
8
11
 
@@ -31,8 +31,12 @@ module FactoryBotRails
31
31
  end
32
32
 
33
33
  def register_reloader(reloader)
34
+ closed_over_app = app
35
+
34
36
  config.to_prepare do
35
- reloader.execute
37
+ if closed_over_app.initialized?
38
+ reloader.execute
39
+ end
36
40
  end
37
41
 
38
42
  app.reloaders << reloader
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: factory_bot_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.1.0
4
+ version: 5.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joe Ferris
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-24 00:00:00.000000000 Z
11
+ date: 2019-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: factory_bot