factory_bot_rails 5.0.0 → 5.0.1
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 +4 -4
- data/LICENSE +1 -1
- data/NEWS +4 -0
- data/README.md +1 -1
- data/lib/factory_bot_rails/definition_file_paths.rb +8 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 396a0440b96b5f0ca9443ff3c8421b4408b5aaf7f4d79de72d41bbaaf53b17d2
|
|
4
|
+
data.tar.gz: de1954538587c2c92359c12de3f2b0dbbfb2efcd29f9794500a6068d2d6309ab
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f10916fc311d14c83d3856f8b00ba6cf884b8ea1609f76327af1c250793cad569a58b6ed245473aeeb20f400a1819dc9c4733cd5a2253c5d7ec8ffc65d574413
|
|
7
|
+
data.tar.gz: 97b507d7053d5efc534e5fc2c8b2a95570f71a699f1b943d36ded6dc3c6b2e901b396cdcebc8ecef34c95ad37e2991d365c7c54baa50957a95bcb90ea3810b26
|
data/LICENSE
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Copyright (c) 2008-
|
|
1
|
+
Copyright (c) 2008-2019 Joe Ferris and thoughtbot, inc.
|
|
2
2
|
|
|
3
3
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
4
|
of this software and associated documentation files (the "Software"), to deal
|
data/NEWS
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
factory_bot_rails versioning is synced with factory_bot releases. For this reason
|
|
2
2
|
there might not be any notable changes in new versions of this project.
|
|
3
3
|
|
|
4
|
+
5.0.1
|
|
5
|
+
Bugfix: Avoid watching files and directories that don't exist (to avoid a
|
|
6
|
+
file watching bug in Rails https://github.com/rails/rails/issues/32700)
|
|
7
|
+
|
|
4
8
|
5.0.0
|
|
5
9
|
Added: calling reload! in the Rails console will reload any factory definition files that have changed
|
|
6
10
|
Added: support for custom generator templates
|
data/README.md
CHANGED
|
@@ -151,7 +151,7 @@ community](https://github.com/thoughtbot/factory_bot_rails/graphs/contributors).
|
|
|
151
151
|
|
|
152
152
|
## License
|
|
153
153
|
|
|
154
|
-
factory_bot_rails is Copyright © 2008-
|
|
154
|
+
factory_bot_rails is Copyright © 2008-2019 Joe Ferris and thoughtbot. It is free
|
|
155
155
|
software, and may be redistributed under the terms specified in the
|
|
156
156
|
[LICENSE](LICENSE) file.
|
|
157
157
|
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
module FactoryBotRails
|
|
4
4
|
class DefinitionFilePaths
|
|
5
|
-
attr_reader :files, :directories
|
|
6
|
-
|
|
7
5
|
def initialize(definition_file_paths)
|
|
8
6
|
@files = []
|
|
9
7
|
@directories = {}
|
|
@@ -13,5 +11,13 @@ module FactoryBotRails
|
|
|
13
11
|
@directories[path.to_s] = [:rb]
|
|
14
12
|
end
|
|
15
13
|
end
|
|
14
|
+
|
|
15
|
+
def directories
|
|
16
|
+
@directories.select { |path| Dir.exist?(path) }
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
def files
|
|
20
|
+
@files.select { |file| File.exist?(file) }
|
|
21
|
+
end
|
|
16
22
|
end
|
|
17
23
|
end
|
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.
|
|
4
|
+
version: 5.0.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-02-
|
|
11
|
+
date: 2019-02-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: factory_bot
|