factory_bot_rails 5.0.2 → 5.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/NEWS.md +3 -0
  3. data/README.md +7 -2
  4. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 466f6be061fddf98fe45e930a1f8e5a189a017b109c3223968bb4e2ddd43edeb
4
- data.tar.gz: 1ab1fe5aadad14df70e8c4bc6b7619c42c35e7605f0f1d494cba0d092ce45a4c
3
+ metadata.gz: 51ea85a9365b7f82f29d2629ab19de461bf65870075542abdbc4cc1ce501f16b
4
+ data.tar.gz: 70eeaceae875965139eeaf4be38714f0ddf4e2221a9c446bf7a9b1efd098b37b
5
5
  SHA512:
6
- metadata.gz: 9f9517a84f92413be3fe76ecd80397324d47abd850e1fa436c0d2f51b4b93e439d7dfc7c31880ada5b8389d2286162ef35b3f3d945d52ebf15166a58989b7f17
7
- data.tar.gz: 7920fc8e7b62542f25c028ec64f2b9091c5128c38f2a7b596c182fd8a162d578872562f4cb1bed96e3c33989e4d5f3a1b737fc5de94eca06f3d6db030535f665
6
+ metadata.gz: d6a1dd1eaf56d3f0ef00c1b844d91433c3210f8d18bb0b978ee7e8c5de002817e6675256431ba8fa29164d504e374c40db65e82167907a51df984efc7b9e7b36
7
+ data.tar.gz: 41cdc0b7ff621c1955c1bbe426416ea2268068251b12532e05d3334dc9c00532fd48daa77b4fe9848aa640fe7b0de7a254eb215c2c2b34f697ef57b8613b4ddc
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.0 (September 24, 2019)
7
+ * Changed: factory_bot dependency to ~> 5.1.0
8
+
6
9
  ## 5.0.2 (April 14, 2019)
7
10
  * Bugfix: Reload factory\_bot whenever the application changes to avoid holding
8
11
  onto stale object references
data/README.md CHANGED
@@ -66,9 +66,14 @@ This will cause factory\_bot\_rails to automatically load factories in
66
66
  It is possible to use this setting to share factories from a gem:
67
67
 
68
68
  ```rb
69
+ begin
70
+ require 'factory_bot_rails'
71
+ rescue LoadError
72
+ end
73
+
69
74
  class MyEngine < ::Rails::Engine
70
- config.factory_bot.definition_file_paths =
71
- File.expand_path('../factories', __FILE__) if defined?(FactoryBotRails)
75
+ config.factory_bot.definition_file_paths +=
76
+ [File.expand_path('../factories', __FILE__)] if defined?(FactoryBotRails)
72
77
  end
73
78
  ```
74
79
 
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.0.2
4
+ version: 5.1.0
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-04-14 00:00:00.000000000 Z
11
+ date: 2019-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: factory_bot
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 5.0.2
19
+ version: 5.1.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 5.0.2
26
+ version: 5.1.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: railties
29
29
  requirement: !ruby/object:Gem::Requirement