factory_bot_rails 5.2.0 → 6.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CONTRIBUTING.md +1 -1
- data/LICENSE +1 -1
- data/NEWS.md +76 -3
- data/README.md +13 -10
- data/lib/factory_bot_rails/factory_validator.rb +23 -0
- data/lib/factory_bot_rails/generators/non_rspec_generator.rb +1 -1
- data/lib/factory_bot_rails/generators/null_generator.rb +1 -1
- data/lib/factory_bot_rails/generators/rspec_generator.rb +1 -1
- data/lib/factory_bot_rails/railtie.rb +6 -6
- data/lib/factory_bot_rails/reloader.rb +4 -9
- data/lib/generators/factory_bot/model/model_generator.rb +8 -8
- data/lib/generators/factory_bot.rb +7 -3
- data/lib/rails/projections.json +26 -0
- metadata +44 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 70ac3e65ecb946bde74a107d453206896d96a0bdd02d52f6e9d99cc4b11ace65
|
4
|
+
data.tar.gz: c5478bf4191651ac02e944af9d118f2243b10fd508073b0911c9b165ad6afd1e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ff19ee6c07babb79676b2ecea45b5abc8dcc6af75042409a3a4e373e9db91787b0f0506d626700303414fc9b2e50f355c2757e1ec9289fccdcf14b6239f30e8
|
7
|
+
data.tar.gz: d1a7e2c0c2966eff606e58addc63fe1dba533934fcb45ff1c7399ce5afd5604f1efab1d755e133bcd54f6b12850c76df88108b74df0da19917864e0c94ad8b92
|
data/CONTRIBUTING.md
CHANGED
@@ -35,5 +35,5 @@ Some things that will increase the chance that your pull request is accepted:
|
|
35
35
|
* Follow our [style guide][style].
|
36
36
|
* Write a [good commit message][commit].
|
37
37
|
|
38
|
-
[style]: https://github.com/thoughtbot/guides/tree/
|
38
|
+
[style]: https://github.com/thoughtbot/guides/tree/main/general
|
39
39
|
[commit]: http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
|
data/LICENSE
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
Copyright (c) 2008-
|
1
|
+
Copyright (c) 2008-2020 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.md
CHANGED
@@ -1,27 +1,90 @@
|
|
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
4
|
# NEWS
|
5
5
|
|
6
|
+
## 6.4.3 (December 29, 2023)
|
7
|
+
|
8
|
+
* Changed: allow sequence definitions for ActiveRecord primary keys (Mike
|
9
|
+
Burns).
|
10
|
+
* Changed: Support Ruby 3.0+, Rails 6.1+ (Mike Burns)
|
11
|
+
* Documentation improvements (obregonia1).
|
12
|
+
* Internal: GitHub Actions improvements (Lorenzo Zabot, ydah).
|
13
|
+
* Internal: RubyGems points to changelog (Tilo Sloboda).
|
14
|
+
* Internal: Bump standard, rake, activerecord, appraisal, rspec-rails (Mike
|
15
|
+
Burns).
|
16
|
+
|
17
|
+
## 6.4.2 (November 23, 2023)
|
18
|
+
* Fixed: Fix Rails 7.1.2 + monkey-patched ActiveRecord compatibility (Adif
|
19
|
+
Sgaid, Benoit Tigeot)
|
20
|
+
* Internal: Test against Rails 7.1 (y-yagi)
|
21
|
+
* Internal: Fix links to old files after renaming the main branch to `main`
|
22
|
+
(y-yagi)
|
23
|
+
|
24
|
+
## 6.4.0 (November 17, 2023)
|
25
|
+
|
26
|
+
* Releasing this for consistency with the factory\_bot dependency.
|
27
|
+
|
28
|
+
## 6.3.0 (November 17, 2023)
|
29
|
+
|
30
|
+
* Changed: reject sequence definitions for ActiveRecord primary keys (Sean
|
31
|
+
Doyle).
|
32
|
+
* Changed: factory\_bot dependency to ~> 6.4 (Mike Burns).
|
33
|
+
* Changed: upgrade dependencies (Daniel Colson).
|
34
|
+
* Add: `projections.json` for Rails.vim (Caleb Hearth).
|
35
|
+
* Docs: fix broken link (Edu Depetris).
|
36
|
+
* Docs: mention Rails generator in docs (Edu Depetris).
|
37
|
+
* Docs: fix typo (Yudai Takada).
|
38
|
+
* Internal: skip Spring version 2.1.1 due to a bug in that release (Christina
|
39
|
+
Entcheva, Daniel Colson).
|
40
|
+
* Internal: test against Rails 6.1 (Antonis Berkakis).
|
41
|
+
* Internal: test against Ruby 3 (Daniel Colson).
|
42
|
+
* Internal: fewer warnings in Cucumber tests (Daniel Colson).
|
43
|
+
* Internal: use GitHub Actions for CI (Mathieu Jobin).
|
44
|
+
* Internal: a whole bunch of cleanup (Daniel Colson).
|
45
|
+
* Internal: fix CI due to a Bundler output change (Mike Burns).
|
46
|
+
|
47
|
+
## 6.2.0 (May 7, 2021)
|
48
|
+
|
49
|
+
* Changed: factory\_bot dependency to ~> 6.2.0
|
50
|
+
|
51
|
+
## 6.1.0 (July 8, 2020)
|
52
|
+
|
53
|
+
* Changed: factory\_bot dependency to ~> 6.1.0
|
54
|
+
|
55
|
+
## 6.0.0 (June 18, 2020)
|
56
|
+
|
57
|
+
* Fixed: generate a plural factory name when the --force-plural flag is provided
|
58
|
+
* Changed: factory\_bot dependency to ~> 6.0.0
|
59
|
+
* Removed: `"factory_bot.register_reloader"` initializer, now registering the
|
60
|
+
reloader after application initialization
|
61
|
+
* Removed: support for EOL versions of Ruby (2.3, 2.4) and Rails (4.2)
|
62
|
+
|
6
63
|
## 5.2.0 (April 26, 2020)
|
7
|
-
|
64
|
+
|
65
|
+
* Changed: factory\_bot dependency to ~> 5.2.0
|
8
66
|
|
9
67
|
## 5.1.1 (September 24, 2019)
|
68
|
+
|
10
69
|
* Fixed: Ensure definitions do not load before I18n is initialized
|
11
70
|
|
12
71
|
## 5.1.0 (September 24, 2019)
|
13
|
-
|
72
|
+
|
73
|
+
* Changed: factory\_bot dependency to ~> 5.1.0
|
14
74
|
|
15
75
|
## 5.0.2 (April 14, 2019)
|
76
|
+
|
16
77
|
* Bugfix: Reload factory\_bot whenever the application changes to avoid holding
|
17
78
|
onto stale object references
|
18
79
|
* Bugfix: Avoid watching project root when no factory definitions exist
|
19
80
|
|
20
81
|
## 5.0.1 (February 9, 2019)
|
82
|
+
|
21
83
|
* Bugfix: Avoid watching files and directories that don't exist (to avoid a
|
22
84
|
file watching bug in Rails https://github.com/rails/rails/issues/32700)
|
23
85
|
|
24
86
|
## 5.0.0 (February 1, 2019)
|
87
|
+
|
25
88
|
* Added: calling reload! in the Rails console will reload any factory definition files that have changed
|
26
89
|
* Added: support for custom generator templates
|
27
90
|
* Added: `definition_file_paths` configuration option, making it easier to place factories in custom locations
|
@@ -30,35 +93,45 @@ there might not be any notable changes in new versions of this project.
|
|
30
93
|
* Removed: support for EOL version of Ruby and Rails
|
31
94
|
|
32
95
|
## 4.11.1 (September 7, 2018)
|
96
|
+
|
33
97
|
* Update generator to use dynamic attributes instead of deprecated static attributes
|
34
98
|
|
35
99
|
## 4.11.0 (August 16, 2018)
|
100
|
+
|
36
101
|
* No notable changes
|
37
102
|
|
38
103
|
## 4.10.0 (May 25, 2018)
|
104
|
+
|
39
105
|
* No notable changes
|
40
106
|
|
41
107
|
## 4.8.2 (October 20, 2017)
|
108
|
+
|
42
109
|
* Rename factory\_girl\_rails to factory\_bot\_rails
|
43
110
|
|
44
111
|
## 4.7.0 (April 1, 2016)
|
112
|
+
|
45
113
|
* No notable changes
|
46
114
|
|
47
115
|
## 4.6.0 (February 1, 2016)
|
116
|
+
|
48
117
|
* No notable changes
|
49
118
|
|
50
119
|
## 4.5.0 (October 17, 2014)
|
120
|
+
|
51
121
|
* Improved README
|
52
122
|
|
53
123
|
## 4.4.1 (February 26, 2014)
|
124
|
+
|
54
125
|
* Support Spring
|
55
126
|
|
56
127
|
## 4.2.1 (February 8, 2013)
|
128
|
+
|
57
129
|
* Fix bug when configuring FG and RSpec fixture directory
|
58
130
|
* Remove debugging
|
59
131
|
* Require factory\_girl\_rails explicitly in generator
|
60
132
|
|
61
133
|
## 4.2.0 (January 25, 2013)
|
134
|
+
|
62
135
|
* Add appraisal and get test suite working reliably with turn gem
|
63
136
|
* Support MiniTest
|
64
137
|
* Allow a custom directory for factories to be specified
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# factory_bot_rails [![
|
1
|
+
# factory_bot_rails [![Code Climate][grade-image]][grade] [![Gem Version][version-image]][version]
|
2
2
|
|
3
3
|
[factory_bot][fb] is a fixtures replacement with a straightforward definition
|
4
4
|
syntax, support for multiple build strategies (saved instances, unsaved
|
@@ -15,7 +15,7 @@ Check out the [guide](https://github.com/thoughtbot/factory_bot/blob/4-9-0-stabl
|
|
15
15
|
factory\_bot\_rails provides Rails integration for [factory_bot][fb].
|
16
16
|
|
17
17
|
Supported Rails versions are listed in [`Appraisals`](Appraisals). Supported
|
18
|
-
Ruby versions are listed in [`.
|
18
|
+
Ruby versions are listed in [`.github/workflows/build.yml`](.github/workflows/build.yml).
|
19
19
|
|
20
20
|
## Download
|
21
21
|
|
@@ -36,7 +36,7 @@ end
|
|
36
36
|
```
|
37
37
|
|
38
38
|
You may want to configure your test suite to include factory\_bot methods; see
|
39
|
-
[configuration](https://github.com/thoughtbot/factory_bot/blob/
|
39
|
+
[configuration](https://github.com/thoughtbot/factory_bot/blob/main/GETTING_STARTED.md#configure-your-test-suite).
|
40
40
|
|
41
41
|
### Automatic Factory Definition Loading
|
42
42
|
|
@@ -144,25 +144,30 @@ Note that factory\_bot\_rails will only use this custom template if you are
|
|
144
144
|
generating each factory in a separate file; it will have no effect if you are
|
145
145
|
generating all of your factories in `test/factories.rb` or `spec/factories.rb`.
|
146
146
|
|
147
|
-
|
147
|
+
Factory\_bot\_rails will add a custom generator:
|
148
|
+
|
149
|
+
```shell
|
150
|
+
rails generate factory_bot:model NAME [field:type field:type] [options]
|
151
|
+
```
|
152
|
+
|
153
|
+
[default factory template]: https://github.com/thoughtbot/factory_bot_rails/tree/main/lib/generators/factory_bot/model/templates/factories.erb
|
148
154
|
|
149
155
|
## Contributing
|
150
156
|
|
151
157
|
Please see [CONTRIBUTING.md](CONTRIBUTING.md).
|
152
158
|
|
153
|
-
factory_bot_rails was originally written by Joe Ferris and is
|
154
|
-
Clayton. Many improvements and bugfixes were contributed by the [open source
|
159
|
+
factory_bot_rails was originally written by Joe Ferris and is maintained by thoughtbot. Many improvements and bugfixes were contributed by the [open source
|
155
160
|
community](https://github.com/thoughtbot/factory_bot_rails/graphs/contributors).
|
156
161
|
|
157
162
|
## License
|
158
163
|
|
159
|
-
factory_bot_rails is Copyright © 2008-
|
164
|
+
factory_bot_rails is Copyright © 2008-2020 Joe Ferris and thoughtbot. It is free
|
160
165
|
software, and may be redistributed under the terms specified in the
|
161
166
|
[LICENSE](LICENSE) file.
|
162
167
|
|
163
168
|
## About thoughtbot
|
164
169
|
|
165
|
-
![thoughtbot](https://thoughtbot.com/
|
170
|
+
![thoughtbot](https://thoughtbot.com/brand_assets/93:44.svg)
|
166
171
|
|
167
172
|
factory_bot_rails is maintained and funded by thoughtbot, inc.
|
168
173
|
The names and logos for thoughtbot are trademarks of thoughtbot, inc.
|
@@ -172,8 +177,6 @@ See [our other projects][community].
|
|
172
177
|
We are [available for hire][hire].
|
173
178
|
|
174
179
|
[fb]: https://github.com/thoughtbot/factory_bot
|
175
|
-
[ci]: http://travis-ci.org/thoughtbot/factory_bot_rails?branch=master
|
176
|
-
[ci-image]: https://secure.travis-ci.org/thoughtbot/factory_bot_rails.svg
|
177
180
|
[grade]: https://codeclimate.com/github/thoughtbot/factory_bot_rails
|
178
181
|
[grade-image]: https://codeclimate.com/github/thoughtbot/factory_bot_rails.svg
|
179
182
|
[community]: https://thoughtbot.com/community?utm_source=github
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module FactoryBotRails
|
2
|
+
class FactoryValidator
|
3
|
+
def initialize(validators = [])
|
4
|
+
@validators = Array(validators)
|
5
|
+
end
|
6
|
+
|
7
|
+
def add_validator(validator)
|
8
|
+
@validators << validator
|
9
|
+
end
|
10
|
+
|
11
|
+
def run
|
12
|
+
ActiveSupport::Notifications.subscribe("factory_bot.compile_factory", &validate_compiled_factory)
|
13
|
+
end
|
14
|
+
|
15
|
+
private
|
16
|
+
|
17
|
+
def validate_compiled_factory
|
18
|
+
proc do |event|
|
19
|
+
@validators.each { |validator| validator.validate!(event.payload) }
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -3,12 +3,14 @@
|
|
3
3
|
require "factory_bot"
|
4
4
|
require "factory_bot_rails/generator"
|
5
5
|
require "factory_bot_rails/reloader"
|
6
|
+
require "factory_bot_rails/factory_validator"
|
6
7
|
require "rails"
|
7
8
|
|
8
9
|
module FactoryBotRails
|
9
10
|
class Railtie < Rails::Railtie
|
10
11
|
config.factory_bot = ActiveSupport::OrderedOptions.new
|
11
12
|
config.factory_bot.definition_file_paths = FactoryBot.definition_file_paths
|
13
|
+
config.factory_bot.validator = FactoryBotRails::FactoryValidator.new
|
12
14
|
|
13
15
|
initializer "factory_bot.set_fixture_replacement" do
|
14
16
|
Generator.new(config).run
|
@@ -18,12 +20,10 @@ module FactoryBotRails
|
|
18
20
|
FactoryBot.definition_file_paths = definition_file_paths
|
19
21
|
end
|
20
22
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
config.after_initialize do
|
26
|
-
FactoryBot.reload
|
23
|
+
config.after_initialize do |app|
|
24
|
+
FactoryBot.find_definitions
|
25
|
+
Reloader.new(app).run
|
26
|
+
app.config.factory_bot.validator.run
|
27
27
|
end
|
28
28
|
|
29
29
|
private
|
@@ -4,9 +4,8 @@ require "factory_bot_rails/definition_file_paths"
|
|
4
4
|
|
5
5
|
module FactoryBotRails
|
6
6
|
class Reloader
|
7
|
-
def initialize(app
|
7
|
+
def initialize(app)
|
8
8
|
@app = app
|
9
|
-
@config = config
|
10
9
|
@paths = DefinitionFilePaths.new(FactoryBot.definition_file_paths)
|
11
10
|
end
|
12
11
|
|
@@ -18,7 +17,7 @@ module FactoryBotRails
|
|
18
17
|
|
19
18
|
private
|
20
19
|
|
21
|
-
attr_reader :app
|
20
|
+
attr_reader :app
|
22
21
|
|
23
22
|
def build_reloader
|
24
23
|
reloader_class.new(@paths.files, @paths.directories) do
|
@@ -31,12 +30,8 @@ module FactoryBotRails
|
|
31
30
|
end
|
32
31
|
|
33
32
|
def register_reloader(reloader)
|
34
|
-
|
35
|
-
|
36
|
-
config.to_prepare do
|
37
|
-
if closed_over_app.initialized?
|
38
|
-
reloader.execute
|
39
|
-
end
|
33
|
+
app.reloader.to_prepare do
|
34
|
+
reloader.execute
|
40
35
|
end
|
41
36
|
|
42
37
|
app.reloaders << reloader
|
@@ -8,21 +8,21 @@ module FactoryBot
|
|
8
8
|
:attributes,
|
9
9
|
type: :array,
|
10
10
|
default: [],
|
11
|
-
banner: "field:type field:type"
|
11
|
+
banner: "field:type field:type"
|
12
12
|
)
|
13
13
|
|
14
14
|
class_option(
|
15
15
|
:dir,
|
16
16
|
type: :string,
|
17
17
|
default: "test/factories",
|
18
|
-
desc: "The directory or file root where factories belong"
|
18
|
+
desc: "The directory or file root where factories belong"
|
19
19
|
)
|
20
20
|
|
21
21
|
class_option(
|
22
22
|
:suffix,
|
23
23
|
type: :string,
|
24
24
|
default: nil,
|
25
|
-
desc: "Suffix to add factory file"
|
25
|
+
desc: "Suffix to add factory file"
|
26
26
|
)
|
27
27
|
|
28
28
|
def create_fixture_file
|
@@ -43,7 +43,7 @@ module FactoryBot
|
|
43
43
|
insert_into_file(
|
44
44
|
factories_file,
|
45
45
|
factory_definition,
|
46
|
-
after: "FactoryBot.define do\n"
|
46
|
+
after: "FactoryBot.define do\n"
|
47
47
|
)
|
48
48
|
end
|
49
49
|
|
@@ -54,17 +54,17 @@ module FactoryBot
|
|
54
54
|
|
55
55
|
def factory_definition
|
56
56
|
<<~RUBY
|
57
|
-
factory :#{
|
58
|
-
#{factory_attributes.gsub(/^/,
|
57
|
+
factory :#{factory_name}#{explicit_class_option} do
|
58
|
+
#{factory_attributes.gsub(/^/, " ")}
|
59
59
|
end
|
60
60
|
|
61
61
|
RUBY
|
62
62
|
end
|
63
63
|
|
64
64
|
def factory_attributes
|
65
|
-
attributes.map
|
65
|
+
attributes.map { |attribute|
|
66
66
|
"#{attribute.name} { #{attribute.default.inspect} }"
|
67
|
-
|
67
|
+
}.join("\n")
|
68
68
|
end
|
69
69
|
|
70
70
|
def filename
|
@@ -2,20 +2,24 @@ require "rails/generators/named_base"
|
|
2
2
|
|
3
3
|
module FactoryBot
|
4
4
|
module Generators
|
5
|
-
class Base < Rails::Generators::NamedBase
|
5
|
+
class Base < Rails::Generators::NamedBase # :nodoc:
|
6
6
|
def self.source_root
|
7
7
|
path = File.join(
|
8
8
|
File.dirname(__FILE__),
|
9
9
|
"factory_bot",
|
10
10
|
generator_name,
|
11
|
-
"templates"
|
11
|
+
"templates"
|
12
12
|
)
|
13
13
|
|
14
14
|
File.expand_path(path)
|
15
15
|
end
|
16
16
|
|
17
|
+
def factory_name
|
18
|
+
class_name.gsub("::", "").underscore
|
19
|
+
end
|
20
|
+
|
17
21
|
def explicit_class_option
|
18
|
-
return if class_name ==
|
22
|
+
return if class_name.underscore == factory_name
|
19
23
|
|
20
24
|
", class: '#{class_name}'"
|
21
25
|
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
{
|
2
|
+
"spec/factories/*.rb": {
|
3
|
+
"alternate": "app/models/{singular}.rb",
|
4
|
+
"collection": "model",
|
5
|
+
"command": "factory",
|
6
|
+
"template": [
|
7
|
+
"FactoryBot.define do",
|
8
|
+
" factory :{singular} do",
|
9
|
+
" end",
|
10
|
+
"end"
|
11
|
+
],
|
12
|
+
"test": "spec/models/{singular}_spec.rb"
|
13
|
+
},
|
14
|
+
"test/factories/*.rb": {
|
15
|
+
"alternate": "app/models/{singular}.rb",
|
16
|
+
"collection": "model",
|
17
|
+
"command": "factory",
|
18
|
+
"template": [
|
19
|
+
"FactoryBot.define do",
|
20
|
+
" factory :{singular} do",
|
21
|
+
" end",
|
22
|
+
"end"
|
23
|
+
],
|
24
|
+
"test": "test/models/{singular}_test.rb"
|
25
|
+
}
|
26
|
+
}
|
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:
|
4
|
+
version: 6.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joe Ferris
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-12-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: factory_bot
|
@@ -16,30 +16,58 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: '6.4'
|
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:
|
26
|
+
version: '6.4'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: railties
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 5.0.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 5.0.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: sqlite3
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: activerecord
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 5.0.0
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 5.0.0
|
41
69
|
description: factory_bot_rails provides integration between factory_bot and rails
|
42
|
-
|
70
|
+
5.0 or newer
|
43
71
|
email: jferris@thoughtbot.com
|
44
72
|
executables: []
|
45
73
|
extensions: []
|
@@ -51,6 +79,7 @@ files:
|
|
51
79
|
- README.md
|
52
80
|
- lib/factory_bot_rails.rb
|
53
81
|
- lib/factory_bot_rails/definition_file_paths.rb
|
82
|
+
- lib/factory_bot_rails/factory_validator.rb
|
54
83
|
- lib/factory_bot_rails/generator.rb
|
55
84
|
- lib/factory_bot_rails/generators/non_rspec_generator.rb
|
56
85
|
- lib/factory_bot_rails/generators/null_generator.rb
|
@@ -60,11 +89,13 @@ files:
|
|
60
89
|
- lib/generators/factory_bot.rb
|
61
90
|
- lib/generators/factory_bot/model/model_generator.rb
|
62
91
|
- lib/generators/factory_bot/model/templates/factories.erb
|
92
|
+
- lib/rails/projections.json
|
63
93
|
homepage: https://github.com/thoughtbot/factory_bot_rails
|
64
94
|
licenses:
|
65
95
|
- MIT
|
66
|
-
metadata:
|
67
|
-
|
96
|
+
metadata:
|
97
|
+
changelog_uri: https://github.com/thoughtbot/factory_bot_rails/blob/main/NEWS.md
|
98
|
+
post_install_message:
|
68
99
|
rdoc_options: []
|
69
100
|
require_paths:
|
70
101
|
- lib
|
@@ -79,9 +110,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
79
110
|
- !ruby/object:Gem::Version
|
80
111
|
version: '0'
|
81
112
|
requirements: []
|
82
|
-
rubygems_version: 3.
|
83
|
-
signing_key:
|
113
|
+
rubygems_version: 3.4.10
|
114
|
+
signing_key:
|
84
115
|
specification_version: 4
|
85
|
-
summary: factory_bot_rails provides integration between factory_bot and rails
|
116
|
+
summary: factory_bot_rails provides integration between factory_bot and rails 5.0
|
86
117
|
or newer
|
87
118
|
test_files: []
|