Skip to content
Newer
Older
100644 270 lines (231 sloc) 11.2 KB
460d5f5 @joshuaclayton Bump version to 4.5.0
joshuaclayton authored
1 4.5.0 (October 17, 2014)
2 Improve FactoryGirl.lint by including exception and message in output
3 Allow selective linting
4 Use more explicit #public_send when doing attribute assignment
5 Improve documentation around FactoryGirl.lint and initialize_with
6 Deprecate #ignore in favor of #transient
7
ea03790 @joshuaclayton Bump version to 4.4.0
joshuaclayton authored
8 4.4.0 (February 10, 2014)
9 Add FactoryGirl.lint
10 Fix memory leak in duplicate traits
11 Update documentation
12
cc9db9a @joshuaclayton Add NEWS entry for 4.3.0 release
joshuaclayton authored
13 4.3.0 (November 3, 2013)
14 Start testing against Rails 4.0 and Ruby 2.0.0
15 Stop testing against Rails 3.0 and Ruby 1.9.2
16 Add *_pair methods to only build two objects
17 Raise if a method is defined with a FactoryGirl block (factory or trait)
18 Allow use of Symbol#to_proc in callbacks
19 Add global callbacks
20 Improve GETTING_STARTED and README
21
21ba127 @joshuaclayton Bump version to 4.2.0
joshuaclayton authored
22 4.2.0 (January 18, 2013)
23 Improve documentation
24 Allow *_list syntax methods to accept a block
25 Update gem dependencies
26 Allow setting id for objects created with `build_stubbed`
27 Fix Stub strategy to mimic ActiveRecord regarding `created_at`
28 Evaluate sequences within the context of an Evaluator
29 Fix Mocha deprecation warning
30 Fix some warnings when running RUBYOPT=-w rake
31 Convert test suite to RSpec's "expect" syntax
32
e3e9ce6 @joshuaclayton Bump version to 4.1.0
joshuaclayton authored
33 4.1.0 (September 11, 2012)
34 Allow multiple callbacks to bind to the same block
35 Fix documentation surrounding the stub strategy
36
ed7c86c @joshuaclayton Bump version to 4.0.0
joshuaclayton authored
37 4.0.0 (August 3, 2012)
38 Remove deprecated cucumber_steps
39 Remove deprecated alternate syntaxes
40 Deprecate duplicate_attribute_assignment_from_initialize_with, which is now unused
41 as attributes assigned within initialize_with are not subsequently assigned
42
8d2f517 @joshuaclayton Bump version to 3.6.1
joshuaclayton authored
43 3.6.1 (August 2, 2012)
44 Update README to include info about running with JRuby
45 Update dependencies on RSpec and tiny versions of Rails in Appraisal
46 Improve flexibility of using traits with associations and add documentation
47 Stub update_column to raise to mirror ActiveRecord's change from update_attribute
48
a7fff84 @joshuaclayton Bump version to 3.6.0
joshuaclayton authored
49 3.6.0 (July 27, 2012)
50 Code/spec cleanup
51 Allow factories with traits to be used in associations
52 Refactor Factory to use DefinitionHierarchy to handle managing callbacks,
53 custom constructor, and custom to_create
54 Add memoization to speed up factories providing attribute overrides
55 Add initial support of JRuby when running in 1.9 mode
56 Improve docs on what happens when including FactoryGirl::Syntax::Methods
57
71435ee @joshuaclayton Bump version to 3.5.0
joshuaclayton authored
58 3.5.0 (June 22, 2012)
59 Allow created_at to be set when using build_stubbed
60 Deprecate FactoryGirl step definitions
61
f97ed2d @joshuaclayton Fix date in NEWS
joshuaclayton authored
62 3.4.2 (June 19, 2012)
13fcdaf @joshuaclayton Bump version to 3.4.2
joshuaclayton authored
63 Fix bug in traits with callbacks called implicitly in factories whose
64 callbacks trigger multiple times
65
1b37231 @joshuaclayton Bump version to 3.4.1
joshuaclayton authored
66 3.4.1 (June 18, 2012)
67 Fix traits so they can be nested and referred to from other traits
68
c7c5cbd @joshuaclayton Bump version to 3.4.0
joshuaclayton authored
69 3.4.0 (June 11, 2012)
70 Sequences support Enumerators
71 Optionally disable duplicate assignment of attributes in initialize_with
72 Make hash of public attributes available in initialize_with
73 Support referring to a factory based on class name
74
d0e56fe @joshuaclayton Bump version to 3.3.0
joshuaclayton authored
75 3.3.0 (May 13, 2012)
76 Allow to_create, skip_create, and initialize_with to be defined globally
77 Allow to_create, skip_create, and initialize_with to be defined within traits
78 Fix deprecation messages for alternate syntaxes (make, generate, etc.)
79 Improve library documentation
80 Deprecate after_build, after_create, before_create, after_stub in favor of new callbacks
81 Introduce new callback syntax: after(:build) {}, after(:custom) {}, or callback(:different) {}
82 This allows for declaring any callback, usable with custom strategies
83 Add attributes_for_list and build_stubbed_list with the StrategySyntaxMethodRegistrar
84 Allow use of syntax methods (build, create, generate, etc) implicitly in callbacks
85 Internal refactoring of a handful of components
86
a30fac4 @joshuaclayton Bump version to 3.2.0
joshuaclayton authored
87 3.2.0 (April 24, 2012)
88 Use AS::Notifications for pub/sub to track running factories
89 Call new within initialize_with implicitly on the build class
90 Skip to_create with skip_create
91 Allow registration of custom strategies
92 Deprecate alternate syntaxes
93 Implicitly call factory_girl's syntax methods from dynamic attributes
94
f1d3018 @joshuaclayton Bump version to 3.1.0
joshuaclayton authored
95 3.1.0 (April 6, 2012)
96 Sequences support aliases, which reference the same block
97 Update documentation
98 Add before_create callback
99 Support use of #attribute_names method to determine available attributes for steps
100 Use ActiveSupport::Deprecation for all deprecations
101
dde2054 @joshuaclayton Bump version to 3.0.0
joshuaclayton authored
102 3.0.0 (March 23, 2012)
103 Deprecate the vintage syntax
104 Remove Rails 2.x support
105 Remove Ruby 1.8 support
106 Remove deprecated features, including default_strategy, factory_name,
107 :method for defining default strategy, ignore on individual attributes, and
108 interacting with Factory the way you would FactoryGirl
109
b7f3789 @joshuaclayton Bump version to 2.6.4
joshuaclayton authored
110 2.6.4 (March 16, 2012)
111 Do not ignore names of transient attributes
112 Ensure attributes set on instance are calculated uniquely
113
6b2605c @joshuaclayton Bump version to 2.6.3
joshuaclayton authored
114 2.6.3 (March 9, 2012)
115 Fix issue with traits not being present the first time a factory is accessed
ebb8beb @georgemillo typo fix [ci skip]
georgemillo authored
116 Update available Cucumber step definitions to not require a trailing colon
6b2605c @joshuaclayton Bump version to 2.6.3
joshuaclayton authored
117 when building a table of attributes to instantiate records with
118
6a8887f @joshuaclayton Update changelog
joshuaclayton authored
119 2.6.2 (March 9, 2012)
120 Allow factories to use all their ancestors' traits
121 Ignore bin dir generated by bundler
122 Namespace ::Factory as top-level to fix vintage syntax issue with
123 Ruby 1.9.2-p3p18
124
125 2.6.1 (March 2, 2012)
126 Use FactoryGirl.reload in specs
127 Clean up running named factories with a particular strategy with
128 FactoryGirl::FactoryRunner
129
2d19c46 @joshuaclayton Bump version to 2.6.0
joshuaclayton authored
130 2.6.0 (February 17, 2012)
131 Improve documentation of has_many associations in the GETTING_STARTED
132 document
133 Deprecate :method in favor of :strategy when overriding an association's
134 build strategy
135
dd6d05c @joshuaclayton Bump version to 2.5.2
joshuaclayton authored
136 2.5.2 (February 10, 2012)
137 Fix step definitions to use associations defined in parent factories
138 Add inline trait support to (build|create)_list
139 Update ActiveSupport dependency to >= 2.3.9, which introduced
140 class_attribute
141
13c58d2 @joshuaclayton Bump version to 2.5.1
joshuaclayton authored
142 2.5.1 (February 3, 2012)
143 Fix attribute evaluation when the attribute isn't defined in the factory but
144 is a private method on Object
145 Update rubygems on Travis before running tests
146 Fix spec name
147 Update GETTING_STARTED with correct usage of build_stubbed
148 Update README with more info on initialize_with
149 Honor :parent on factory over block nesting
150
6282742 @joshuaclayton Bump version to 2.5.0
joshuaclayton authored
151 2.5.0 (January 20, 2012)
152 Revert 'Deprecate build_stubbed and attributes_for'
153 Implement initialize_with to allow overriding object instantiation
154 Ensure FG runs against Rails 3.2.0
155
845578c @joshuaclayton Bump to 2.4.2
joshuaclayton authored
156 2.4.2 (January 18, 2012)
157 Fix inline traits' interaction with defaults on the factory
158
330f91b @joshuaclayton Bump version to 2.4.1
joshuaclayton authored
159 2.4.1 (January 17, 2012)
160 Deprecate build_stubbed and attributes_for
161 Fix inline traits
162
69957ea @joshuaclayton Bump version to 2.4.0
joshuaclayton authored
163 2.4.0 (January 13, 2012)
40fc48d @sikachu Fix FactoryGirl naming convention
sikachu authored
164 Refactor internals of FactoryGirl to use anonymous class on which attributes
69957ea @joshuaclayton Bump version to 2.4.0
joshuaclayton authored
165 get defined
166 Explicitly require Ruby 1.8.7 or higher in gemspec
167 Fix documentation
168 Add Gemnasium status to documentation
169 Supplying a Class to a factory that overrides to_s no longer results in
170 getting the wrong Class constructed
40fc48d @sikachu Fix FactoryGirl naming convention
sikachu authored
171 Be more agnostic about ORMs when using columns in FactoryGirl step
69957ea @joshuaclayton Bump version to 2.4.0
joshuaclayton authored
172 definitions
173 Test against Active Record 3.2.0.rc2
174 Update GETTING_STARTED to use Ruby syntax highlighting
175
17eacf0 @joshuaclayton Bump version to 2.3.2
joshuaclayton authored
176 2.3.2 (November 26, 2011)
177 Move logic of where instance.save! is set to Definition
178 Fix method name from aliases_for? to alias_for?
179 Refactor internal attribute handling to use an anonymous class instead of
180 faking Ruby's variable resolution. This allows for more sane usage of
181 attributes without having to manage sorting priority because attributes
182 can turn themselves into procs, which are used with define_method on a
183 class so attributes work correctly all the time.
184
e15ae8d @joshuaclayton Bump version to 2.3.1
joshuaclayton authored
185 2.3.1 (November 23, 2011)
186 Remove internally-used associate method from all the FactoryGirl::Proxy subclasses
187 Move around requiring of files
188 Consolidate errors into factory_girl.rb
189 Refactor AttributeList to deal with priority only when iterating over
190 attributes
191 Refactor internals of some of the Proxy subclasses
192 Ensure callbacks on traits are executed in the correct order
193
85d4735 @joshuaclayton Bump version to 2.3.0
joshuaclayton authored
194 2.3.0 (November 18, 2011)
195 Registries are named, resulting in better messages when factories, traits,
196 or sequences cannot be found
197 Fix incorrect tests
198 Internals refactoring introducing FactoryGirl::NullFactory,
199 FactoryGirl::Definition, and FactoryGirl::DeclarationList
200 Use ActiveSupport for Hash#except and its delegation capabilities
201 Fix usage of callbacks when added via implicit traits
202 Use Bundler tasks and clean up dependencies
203 Fix failing spec for big letters in factory name passed as symbol
204 Add ability for traits to be added dynamically when creating an instance via
205 build, create, build_stubbed, or attributes_for
206
41f73b5 @joshuaclayton Bump version to 2.2.0
joshuaclayton authored
207 2.2.0 (October 14, 2011)
208 Clean up RSpec suite to not use 'should'
209 Use create_list in step definitions
210 Syntax methods that deal with ORM interaction (attributes_for, build, build_stubbed,
211 and create) now accept a block that yields the result. This results in a
212 more convenient way to interact with the result than using Object.tap.
213 Standardize deprecation warnings
214 Update transient attribute syntax to use blocks instead of calling ignore on
215 each attribute declaration
216 Parents can be defined after children because factories are evaluated when
217 they're used; this means breaking up factories across multiple files will
218 behave as expected
219 Large internal refactoring, including changing access modifiers for a
220 handful of methods for a more clearly defined API
221
9c95a22 @joshuaclayton Changelog 2.1.1 to 2.1.2
joshuaclayton authored
222 2.1.2 (September 23, 2011)
223 Bugfix: Vintage syntax fixed after bug introduced in 2.1.1
224 Introduce dependency on activesupport to remove code from Factory class
225
226 2.1.1 (September 23, 2011) (yanked)
88cf88e @janxious 2.1.0 -> 2.1.1 changelog
janxious authored
227 Bugfix: Parent object callbacks are run before child object callbacks
228 Declarations: allow overriding/modification of individual traits in child factories
229 Callbacks refactored to not be attributes
230 Updating documentation for formatting and clarity (incl. new specificity for cucumber)
231
306e51b @janxious Update changelog with v2.1.0 changes (from 2.0.5)
janxious authored
232 2.1.0 (September 02, 2011)
233 Bugfix: created_at now defined for stubbed models
234 Gemspec updated for use with Rails 3.1
235 Factories can now be modified post-definition (useful for overriding defaults from gems/plugins)
236 All factories can now be reloaded with Factory.reload
237 Add :method => build to factory associations to prevent saving of associated objects
238 Factories defined in {Rails.root}/factories are now loaded by default
239 Various documentation updates
240
408d9b0 @jferris Updated the Changelog
jferris authored
241 1.1.4 (November 28, 2008)
242 Factory.build now uses Factory.create for associations of the built object
243 Factory definitions are now detected in subdirectories, such as
244 factories/person_factory.rb (thanks to Josh Nichols)
245 Factory definitions are now loaded after the environment in a Rails project
246 (fixes some issues with dependencies being loaded too early) (thanks to
247 Josh Nichols)
248 Factory names ending in 's' no longer cause problems (thanks to Alex Sharp
249 and Josh Owens)
8dc5a17 Remove whitespace [Gun.io WhitespaceBot]
Gun.io Whitespace Robot authored
250
c88fc36 @jferris Updated the Gem version to 1.1.3
jferris authored
251 1.1.3 (September 12, 2008)
252 Automatically pull in definitions from factories.rb, test/factories.rb, or
253 spec/factories.rb
3732413 @jferris Updated to version 1.1.2
jferris authored
254 1.1.2 (July 30, 2008)
255 Improved error handling for invalid and undefined factories/attributes
256 Improved handling of strings vs symbols vs classes
257 Added a prettier syntax for handling associations
258 Updated documentation and fixed compatibility with Rails 2.1
259
df6d2a0 @jferris Added a Changelog
jferris authored
260 1.1.1 (June 23, 2008)
261 The attribute "name" no longer requires using #add_attribute
262
1ad3a63 Make date consistent with later convention (i.e. September 02, 2011)
craiglittle authored
263 1.1.0 (June 03, 2008)
df6d2a0 @jferris Added a Changelog
jferris authored
264 Added support for dependent attributes
265 Fixed the attributes_for build strategy to not build associations
266 Added support for sequences
267
64b59ad @ayrton fixed typo
ayrton authored
268 1.0.0 (May 31, 2008)
df6d2a0 @jferris Added a Changelog
jferris authored
269 First version
Something went wrong with that request. Please try again.