factory_bot 1.0.1.alpha → 4.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/GETTING_STARTED.md +1 -1
- data/Gemfile.lock +1 -1
- data/NEWS +17 -14
- data/README.md +0 -4
- data/factory_girl.gemspec +1 -2
- data/gemfiles/3.2.gemfile +1 -1
- data/gemfiles/3.2.gemfile.lock +2 -2
- data/gemfiles/4.0.gemfile +1 -1
- data/gemfiles/4.0.gemfile.lock +2 -2
- data/gemfiles/4.1.gemfile +1 -1
- data/gemfiles/4.1.gemfile.lock +2 -2
- data/gemfiles/4.2.gemfile +1 -1
- data/gemfiles/4.2.gemfile.lock +2 -2
- data/gemfiles/5.0.gemfile +1 -1
- data/gemfiles/5.0.gemfile.lock +2 -2
- data/lib/factory_bot/version.rb +1 -1
- metadata +4 -5
- data/lib/factory_girl/version.rb +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f2253c250720fea7a3b49e3fccd702bd2d4c4736
|
4
|
+
data.tar.gz: 694a315ee68ea6be620d2960ae81068d80d87d5d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: acfe7847988ac40c9be0b2d5a720b7c1662ba175e61b7a85a03bf90ef285b005033d3b7b58275c4c966e35e55fa10c01dcd0c5bbe64023b87779e4d6963cb547
|
7
|
+
data.tar.gz: 8f3df1535faa8c7ecc8c1702974da66108cab86ac8dccd388381c1a71374ff9f00fd0891ba63fe14d36d16115c5b746e15505fd3bac5031b6ce8371a705295c9
|
data/.gitignore
CHANGED
data/GETTING_STARTED.md
CHANGED
data/Gemfile.lock
CHANGED
data/NEWS
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
4.8.2 (October 20, 2017)
|
2
|
+
Rename factory_girl to factory_bot
|
3
|
+
|
1
4
|
4.8.1 (September 28, 2017)
|
2
5
|
Explicitly define `#destroyed?` within the `Stub` strategy to return `nil` instead of raising
|
3
6
|
Update various dependencies
|
@@ -20,14 +23,14 @@
|
|
20
23
|
4.6.0 (skipped)
|
21
24
|
|
22
25
|
4.5.0 (October 17, 2014)
|
23
|
-
Improve
|
26
|
+
Improve FactoryGirl.lint by including exception and message in output
|
24
27
|
Allow selective linting
|
25
28
|
Use more explicit #public_send when doing attribute assignment
|
26
|
-
Improve documentation around
|
29
|
+
Improve documentation around FactoryGirl.lint and initialize_with
|
27
30
|
Deprecate #ignore in favor of #transient
|
28
31
|
|
29
32
|
4.4.0 (February 10, 2014)
|
30
|
-
Add
|
33
|
+
Add FactoryGirl.lint
|
31
34
|
Fix memory leak in duplicate traits
|
32
35
|
Update documentation
|
33
36
|
|
@@ -35,7 +38,7 @@
|
|
35
38
|
Start testing against Rails 4.0 and Ruby 2.0.0
|
36
39
|
Stop testing against Rails 3.0 and Ruby 1.9.2
|
37
40
|
Add *_pair methods to only build two objects
|
38
|
-
Raise if a method is defined with a
|
41
|
+
Raise if a method is defined with a FactoryGirl block (factory or trait)
|
39
42
|
Allow use of Symbol#to_proc in callbacks
|
40
43
|
Add global callbacks
|
41
44
|
Improve GETTING_STARTED and README
|
@@ -74,11 +77,11 @@
|
|
74
77
|
custom constructor, and custom to_create
|
75
78
|
Add memoization to speed up factories providing attribute overrides
|
76
79
|
Add initial support of JRuby when running in 1.9 mode
|
77
|
-
Improve docs on what happens when including
|
80
|
+
Improve docs on what happens when including FactoryGirl::Syntax::Methods
|
78
81
|
|
79
82
|
3.5.0 (June 22, 2012)
|
80
83
|
Allow created_at to be set when using build_stubbed
|
81
|
-
Deprecate
|
84
|
+
Deprecate FactoryGirl step definitions
|
82
85
|
|
83
86
|
3.4.2 (June 19, 2012)
|
84
87
|
Fix bug in traits with callbacks called implicitly in factories whose
|
@@ -126,7 +129,7 @@
|
|
126
129
|
Remove Ruby 1.8 support
|
127
130
|
Remove deprecated features, including default_strategy, factory_name,
|
128
131
|
:method for defining default strategy, ignore on individual attributes, and
|
129
|
-
interacting with Factory the way you would
|
132
|
+
interacting with Factory the way you would FactoryGirl
|
130
133
|
|
131
134
|
2.6.4 (March 16, 2012)
|
132
135
|
Do not ignore names of transient attributes
|
@@ -144,9 +147,9 @@
|
|
144
147
|
Ruby 1.9.2-p3p18
|
145
148
|
|
146
149
|
2.6.1 (March 2, 2012)
|
147
|
-
Use
|
150
|
+
Use FactoryGirl.reload in specs
|
148
151
|
Clean up running named factories with a particular strategy with
|
149
|
-
|
152
|
+
FactoryGirl::FactoryRunner
|
150
153
|
|
151
154
|
2.6.0 (February 17, 2012)
|
152
155
|
Improve documentation of has_many associations in the GETTING_STARTED
|
@@ -182,14 +185,14 @@
|
|
182
185
|
Fix inline traits
|
183
186
|
|
184
187
|
2.4.0 (January 13, 2012)
|
185
|
-
Refactor internals of
|
188
|
+
Refactor internals of FactoryGirl to use anonymous class on which attributes
|
186
189
|
get defined
|
187
190
|
Explicitly require Ruby 1.8.7 or higher in gemspec
|
188
191
|
Fix documentation
|
189
192
|
Add Gemnasium status to documentation
|
190
193
|
Supplying a Class to a factory that overrides to_s no longer results in
|
191
194
|
getting the wrong Class constructed
|
192
|
-
Be more agnostic about ORMs when using columns in
|
195
|
+
Be more agnostic about ORMs when using columns in FactoryGirl step
|
193
196
|
definitions
|
194
197
|
Test against Active Record 3.2.0.rc2
|
195
198
|
Update GETTING_STARTED to use Ruby syntax highlighting
|
@@ -204,7 +207,7 @@
|
|
204
207
|
class so attributes work correctly all the time.
|
205
208
|
|
206
209
|
2.3.1 (November 23, 2011)
|
207
|
-
Remove internally-used associate method from all the
|
210
|
+
Remove internally-used associate method from all the FactoryGirl::Proxy subclasses
|
208
211
|
Move around requiring of files
|
209
212
|
Consolidate errors into factory_bot.rb
|
210
213
|
Refactor AttributeList to deal with priority only when iterating over
|
@@ -216,8 +219,8 @@
|
|
216
219
|
Registries are named, resulting in better messages when factories, traits,
|
217
220
|
or sequences cannot be found
|
218
221
|
Fix incorrect tests
|
219
|
-
Internals refactoring introducing
|
220
|
-
|
222
|
+
Internals refactoring introducing FactoryGirl::NullFactory,
|
223
|
+
FactoryGirl::Definition, and FactoryGirl::DeclarationList
|
221
224
|
Use ActiveSupport for Hash#except and its delegation capabilities
|
222
225
|
Fix usage of callbacks when added via implicit traits
|
223
226
|
Use Bundler tasks and clean up dependencies
|
data/README.md
CHANGED
@@ -82,11 +82,7 @@ community](https://github.com/thoughtbot/factory_bot/graphs/contributors).
|
|
82
82
|
License
|
83
83
|
-------
|
84
84
|
|
85
|
-
<<<<<<< HEAD
|
86
|
-
factory_girl is Copyright © 2008-2017 Joe Ferris and thoughtbot. It is free
|
87
|
-
=======
|
88
85
|
factory_bot is Copyright © 2008-2016 Joe Ferris and thoughtbot. It is free
|
89
|
-
>>>>>>> Replace 'girl' with 'bot' everywhere
|
90
86
|
software, and may be redistributed under the terms specified in the
|
91
87
|
[LICENSE](/LICENSE) file.
|
92
88
|
|
data/factory_girl.gemspec
CHANGED
@@ -1,9 +1,8 @@
|
|
1
1
|
$LOAD_PATH << File.expand_path("../lib", __FILE__)
|
2
|
-
require 'factory_girl/version'
|
3
2
|
|
4
3
|
Gem::Specification.new do |s|
|
5
4
|
s.name = %q{factory_girl}
|
6
|
-
s.version =
|
5
|
+
s.version = "4.8.2".freeze
|
7
6
|
s.summary = %q{factory_girl provides a framework and DSL for defining and
|
8
7
|
using model instance factories.}
|
9
8
|
s.description = %q{factory_girl provides a framework and DSL for defining and
|
data/gemfiles/3.2.gemfile
CHANGED
data/gemfiles/3.2.gemfile.lock
CHANGED
@@ -18,7 +18,7 @@ GIT
|
|
18
18
|
PATH
|
19
19
|
remote: ../
|
20
20
|
specs:
|
21
|
-
|
21
|
+
factory_bot (4.8.2)
|
22
22
|
activesupport (>= 3.0.0)
|
23
23
|
|
24
24
|
GEM
|
@@ -92,7 +92,7 @@ DEPENDENCIES
|
|
92
92
|
appraisal (~> 2.1.0)
|
93
93
|
aruba
|
94
94
|
cucumber (~> 1.3.15)
|
95
|
-
|
95
|
+
factory_bot!
|
96
96
|
jdbc-sqlite3
|
97
97
|
rspec (~> 3.0)
|
98
98
|
rspec-its (~> 1.0)
|
data/gemfiles/4.0.gemfile
CHANGED
data/gemfiles/4.0.gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ../
|
3
3
|
specs:
|
4
|
-
|
4
|
+
factory_bot (4.8.2)
|
5
5
|
activesupport (>= 3.0.0)
|
6
6
|
|
7
7
|
GEM
|
@@ -92,7 +92,7 @@ DEPENDENCIES
|
|
92
92
|
appraisal (~> 2.1.0)
|
93
93
|
aruba
|
94
94
|
cucumber (~> 1.3.15)
|
95
|
-
|
95
|
+
factory_bot!
|
96
96
|
jdbc-sqlite3
|
97
97
|
rspec (~> 3.0)
|
98
98
|
rspec-its (~> 1.0)
|
data/gemfiles/4.1.gemfile
CHANGED
data/gemfiles/4.1.gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ../
|
3
3
|
specs:
|
4
|
-
|
4
|
+
factory_bot (4.8.2)
|
5
5
|
activesupport (>= 3.0.0)
|
6
6
|
|
7
7
|
GEM
|
@@ -91,7 +91,7 @@ DEPENDENCIES
|
|
91
91
|
appraisal (~> 2.1.0)
|
92
92
|
aruba
|
93
93
|
cucumber (~> 1.3.15)
|
94
|
-
|
94
|
+
factory_bot!
|
95
95
|
jdbc-sqlite3
|
96
96
|
rspec (~> 3.0)
|
97
97
|
rspec-its (~> 1.0)
|
data/gemfiles/4.2.gemfile
CHANGED
data/gemfiles/4.2.gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ../
|
3
3
|
specs:
|
4
|
-
|
4
|
+
factory_bot (4.8.2)
|
5
5
|
activesupport (>= 3.0.0)
|
6
6
|
|
7
7
|
GEM
|
@@ -91,7 +91,7 @@ DEPENDENCIES
|
|
91
91
|
appraisal (~> 2.1.0)
|
92
92
|
aruba
|
93
93
|
cucumber (~> 1.3.15)
|
94
|
-
|
94
|
+
factory_bot!
|
95
95
|
jdbc-sqlite3
|
96
96
|
rspec (~> 3.0)
|
97
97
|
rspec-its (~> 1.0)
|
data/gemfiles/5.0.gemfile
CHANGED
data/gemfiles/5.0.gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ../
|
3
3
|
specs:
|
4
|
-
|
4
|
+
factory_bot (4.8.2)
|
5
5
|
activesupport (>= 3.0.0)
|
6
6
|
|
7
7
|
GEM
|
@@ -90,7 +90,7 @@ DEPENDENCIES
|
|
90
90
|
appraisal (~> 2.1.0)
|
91
91
|
aruba
|
92
92
|
cucumber (~> 1.3.15)
|
93
|
-
|
93
|
+
factory_bot!
|
94
94
|
jdbc-sqlite3
|
95
95
|
rspec (~> 3.0)
|
96
96
|
rspec-its (~> 1.0)
|
data/lib/factory_bot/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: factory_bot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh Clayton
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-10-
|
12
|
+
date: 2017-10-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -245,7 +245,6 @@ files:
|
|
245
245
|
- lib/factory_bot/trait.rb
|
246
246
|
- lib/factory_bot/version.rb
|
247
247
|
- lib/factory_girl.rb
|
248
|
-
- lib/factory_girl/version.rb
|
249
248
|
homepage: https://github.com/thoughtbot/factory_bot
|
250
249
|
licenses:
|
251
250
|
- MIT
|
@@ -261,9 +260,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
261
260
|
version: 1.9.2
|
262
261
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
263
262
|
requirements:
|
264
|
-
- - "
|
263
|
+
- - ">="
|
265
264
|
- !ruby/object:Gem::Version
|
266
|
-
version:
|
265
|
+
version: '0'
|
267
266
|
requirements: []
|
268
267
|
rubyforge_project:
|
269
268
|
rubygems_version: 2.6.11
|
data/lib/factory_girl/version.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
VERSION = '4.8.1'.freeze
|