factory_bot 4.8.2 → 5.2.0

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.
Files changed (76) hide show
  1. checksums.yaml +5 -5
  2. data/.yardopts +1 -0
  3. data/GETTING_STARTED.md +226 -129
  4. data/LICENSE +1 -1
  5. data/NAME.md +12 -5
  6. data/NEWS.md +351 -0
  7. data/README.md +35 -27
  8. data/lib/factory_bot/aliases.rb +1 -1
  9. data/lib/factory_bot/attribute/dynamic.rb +1 -0
  10. data/lib/factory_bot/attribute.rb +4 -39
  11. data/lib/factory_bot/attribute_assigner.rb +21 -6
  12. data/lib/factory_bot/attribute_list.rb +2 -1
  13. data/lib/factory_bot/callback.rb +3 -2
  14. data/lib/factory_bot/configuration.rb +16 -20
  15. data/lib/factory_bot/declaration/association.rb +14 -1
  16. data/lib/factory_bot/declaration/dynamic.rb +3 -1
  17. data/lib/factory_bot/declaration/implicit.rb +7 -2
  18. data/lib/factory_bot/declaration.rb +4 -4
  19. data/lib/factory_bot/declaration_list.rb +1 -1
  20. data/lib/factory_bot/decorator/attribute_hash.rb +1 -1
  21. data/lib/factory_bot/decorator/invocation_tracker.rb +1 -1
  22. data/lib/factory_bot/decorator.rb +5 -1
  23. data/lib/factory_bot/definition.rb +10 -7
  24. data/lib/factory_bot/definition_hierarchy.rb +1 -11
  25. data/lib/factory_bot/definition_proxy.rb +65 -41
  26. data/lib/factory_bot/errors.rb +7 -4
  27. data/lib/factory_bot/evaluation.rb +1 -1
  28. data/lib/factory_bot/evaluator.rb +5 -5
  29. data/lib/factory_bot/factory.rb +8 -8
  30. data/lib/factory_bot/factory_runner.rb +3 -3
  31. data/lib/factory_bot/find_definitions.rb +1 -1
  32. data/lib/factory_bot/internal.rb +104 -0
  33. data/lib/factory_bot/linter.rb +36 -19
  34. data/lib/factory_bot/null_factory.rb +4 -1
  35. data/lib/factory_bot/null_object.rb +2 -2
  36. data/lib/factory_bot/registry.rb +15 -6
  37. data/lib/factory_bot/reload.rb +3 -3
  38. data/lib/factory_bot/sequence.rb +9 -1
  39. data/lib/factory_bot/strategy/null.rb +2 -4
  40. data/lib/factory_bot/strategy/stub.rb +32 -36
  41. data/lib/factory_bot/strategy_calculator.rb +1 -1
  42. data/lib/factory_bot/strategy_syntax_method_registrar.rb +13 -2
  43. data/lib/factory_bot/syntax/default.rb +12 -24
  44. data/lib/factory_bot/syntax/methods.rb +32 -9
  45. data/lib/factory_bot/syntax.rb +2 -2
  46. data/lib/factory_bot/trait.rb +6 -3
  47. data/lib/factory_bot/version.rb +1 -1
  48. data/lib/factory_bot.rb +103 -134
  49. metadata +79 -64
  50. data/.autotest +0 -9
  51. data/.gitignore +0 -10
  52. data/.rspec +0 -2
  53. data/.simplecov +0 -4
  54. data/.travis.yml +0 -38
  55. data/Appraisals +0 -19
  56. data/Gemfile +0 -8
  57. data/Gemfile.lock +0 -103
  58. data/NEWS +0 -293
  59. data/Rakefile +0 -36
  60. data/cucumber.yml +0 -1
  61. data/factory_bot.gemspec +0 -36
  62. data/factory_girl.gemspec +0 -40
  63. data/gemfiles/3.2.gemfile +0 -10
  64. data/gemfiles/3.2.gemfile.lock +0 -105
  65. data/gemfiles/4.0.gemfile +0 -10
  66. data/gemfiles/4.0.gemfile.lock +0 -105
  67. data/gemfiles/4.1.gemfile +0 -10
  68. data/gemfiles/4.1.gemfile.lock +0 -104
  69. data/gemfiles/4.2.gemfile +0 -10
  70. data/gemfiles/4.2.gemfile.lock +0 -104
  71. data/gemfiles/5.0.gemfile +0 -10
  72. data/gemfiles/5.0.gemfile.lock +0 -103
  73. data/lib/factory_bot/attribute/static.rb +0 -16
  74. data/lib/factory_bot/declaration/static.rb +0 -26
  75. data/lib/factory_bot/decorator/class_key_hash.rb +0 -28
  76. data/lib/factory_girl.rb +0 -5
data/Appraisals DELETED
@@ -1,19 +0,0 @@
1
- appraise "3.2" do
2
- gem "activerecord", git: 'https://github.com/rails/rails.git', branch: '3-2-stable'
3
- end
4
-
5
- appraise '4.0' do
6
- gem 'activerecord', "~> 4.0.13"
7
- end
8
-
9
- appraise '4.1' do
10
- gem 'activerecord', "~> 4.1.14"
11
- end
12
-
13
- appraise '4.2' do
14
- gem 'activerecord', "~> 4.2.5.1"
15
- end
16
-
17
- appraise '5.0' do
18
- gem 'activerecord', "~> 5.0.0"
19
- end
data/Gemfile DELETED
@@ -1,8 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gemspec name: 'factory_bot'
4
-
5
- gem 'activerecord-jdbcsqlite3-adapter', platforms: :jruby
6
- gem 'jdbc-sqlite3', platforms: :jruby
7
-
8
- gem 'sqlite3', '~> 1.3.10', platforms: :ruby
data/Gemfile.lock DELETED
@@ -1,103 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- factory_bot (4.8.2)
5
- activesupport (>= 3.0.0)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- activemodel (5.1.4)
11
- activesupport (= 5.1.4)
12
- activerecord (5.1.4)
13
- activemodel (= 5.1.4)
14
- activesupport (= 5.1.4)
15
- arel (~> 8.0)
16
- activesupport (5.1.4)
17
- concurrent-ruby (~> 1.0, >= 1.0.2)
18
- i18n (~> 0.7)
19
- minitest (~> 5.1)
20
- tzinfo (~> 1.1)
21
- appraisal (2.1.0)
22
- bundler
23
- rake
24
- thor (>= 0.14.0)
25
- arel (8.0.0)
26
- aruba (0.14.2)
27
- childprocess (~> 0.5.6)
28
- contracts (~> 0.9)
29
- cucumber (>= 1.3.19)
30
- ffi (~> 1.9.10)
31
- rspec-expectations (>= 2.99)
32
- thor (~> 0.19)
33
- builder (3.2.3)
34
- childprocess (0.5.9)
35
- ffi (~> 1.0, >= 1.0.11)
36
- concurrent-ruby (1.0.5)
37
- contracts (0.16.0)
38
- cucumber (1.3.20)
39
- builder (>= 2.1.2)
40
- diff-lcs (>= 1.1.3)
41
- gherkin (~> 2.12)
42
- multi_json (>= 1.7.5, < 2.0)
43
- multi_test (>= 0.1.2)
44
- diff-lcs (1.3)
45
- docile (1.1.5)
46
- ffi (1.9.18)
47
- gherkin (2.12.2)
48
- multi_json (~> 1.3)
49
- i18n (0.8.6)
50
- json (2.1.0)
51
- minitest (5.10.3)
52
- multi_json (1.12.2)
53
- multi_test (0.1.2)
54
- rake (12.1.0)
55
- rspec (3.6.0)
56
- rspec-core (~> 3.6.0)
57
- rspec-expectations (~> 3.6.0)
58
- rspec-mocks (~> 3.6.0)
59
- rspec-core (3.6.0)
60
- rspec-support (~> 3.6.0)
61
- rspec-expectations (3.6.0)
62
- diff-lcs (>= 1.2.0, < 2.0)
63
- rspec-support (~> 3.6.0)
64
- rspec-its (1.2.0)
65
- rspec-core (>= 3.0.0)
66
- rspec-expectations (>= 3.0.0)
67
- rspec-mocks (3.6.0)
68
- diff-lcs (>= 1.2.0, < 2.0)
69
- rspec-support (~> 3.6.0)
70
- rspec-support (3.6.0)
71
- simplecov (0.15.1)
72
- docile (~> 1.1.0)
73
- json (>= 1.8, < 3)
74
- simplecov-html (~> 0.10.0)
75
- simplecov-html (0.10.2)
76
- sqlite3 (1.3.13)
77
- thor (0.20.0)
78
- thread_safe (0.3.6)
79
- timecop (0.9.1)
80
- tzinfo (1.2.3)
81
- thread_safe (~> 0.1)
82
- yard (0.9.9)
83
-
84
- PLATFORMS
85
- ruby
86
-
87
- DEPENDENCIES
88
- activerecord (>= 3.0.0)
89
- activerecord-jdbcsqlite3-adapter
90
- appraisal (~> 2.1.0)
91
- aruba
92
- cucumber (~> 1.3.15)
93
- factory_bot!
94
- jdbc-sqlite3
95
- rspec (~> 3.0)
96
- rspec-its (~> 1.0)
97
- simplecov
98
- sqlite3 (~> 1.3.10)
99
- timecop
100
- yard
101
-
102
- BUNDLED WITH
103
- 1.15.3
data/NEWS DELETED
@@ -1,293 +0,0 @@
1
- 4.8.2 (October 20, 2017)
2
- Rename factory_girl to factory_bot
3
-
4
- 4.8.1 (September 28, 2017)
5
- Explicitly define `#destroyed?` within the `Stub` strategy to return `nil` instead of raising
6
- Update various dependencies
7
- Update internal test suite to use RSpec's mocking/stubbing instead of mocha
8
-
9
- 4.8.0 (December 16, 2016)
10
- Improve documentation
11
- Add `FactoryGirl.generate_list` to be consistent with `build_list`/`create_list` and friends
12
- Add `FactoryGirl.use_parent_strategy` configuration to allow associations to leverage parent build strategy
13
-
14
- 4.7.0 (April 1, 2016)
15
- Improve documentation
16
- Improve instrumentation payload to include traits, overrides, and the factory itself
17
- Allow linting of traits
18
- Deprecate factory lookup by class name in preparation for 5.0
19
- Improve internal performance by using flat_map instead of map and compact
20
- Improve handling of dirty attributes after building a stubbed object
21
- Reduce warnings from redefining methods
22
-
23
- 4.6.0 (skipped)
24
-
25
- 4.5.0 (October 17, 2014)
26
- Improve FactoryGirl.lint by including exception and message in output
27
- Allow selective linting
28
- Use more explicit #public_send when doing attribute assignment
29
- Improve documentation around FactoryGirl.lint and initialize_with
30
- Deprecate #ignore in favor of #transient
31
-
32
- 4.4.0 (February 10, 2014)
33
- Add FactoryGirl.lint
34
- Fix memory leak in duplicate traits
35
- Update documentation
36
-
37
- 4.3.0 (November 3, 2013)
38
- Start testing against Rails 4.0 and Ruby 2.0.0
39
- Stop testing against Rails 3.0 and Ruby 1.9.2
40
- Add *_pair methods to only build two objects
41
- Raise if a method is defined with a FactoryGirl block (factory or trait)
42
- Allow use of Symbol#to_proc in callbacks
43
- Add global callbacks
44
- Improve GETTING_STARTED and README
45
-
46
- 4.2.0 (January 18, 2013)
47
- Improve documentation
48
- Allow *_list syntax methods to accept a block
49
- Update gem dependencies
50
- Allow setting id for objects created with `build_stubbed`
51
- Fix Stub strategy to mimic ActiveRecord regarding `created_at`
52
- Evaluate sequences within the context of an Evaluator
53
- Fix Mocha deprecation warning
54
- Fix some warnings when running RUBYOPT=-w rake
55
- Convert test suite to RSpec's "expect" syntax
56
-
57
- 4.1.0 (September 11, 2012)
58
- Allow multiple callbacks to bind to the same block
59
- Fix documentation surrounding the stub strategy
60
-
61
- 4.0.0 (August 3, 2012)
62
- Remove deprecated cucumber_steps
63
- Remove deprecated alternate syntaxes
64
- Deprecate duplicate_attribute_assignment_from_initialize_with, which is now unused
65
- as attributes assigned within initialize_with are not subsequently assigned
66
-
67
- 3.6.1 (August 2, 2012)
68
- Update README to include info about running with JRuby
69
- Update dependencies on RSpec and tiny versions of Rails in Appraisal
70
- Improve flexibility of using traits with associations and add documentation
71
- Stub update_column to raise to mirror ActiveRecord's change from update_attribute
72
-
73
- 3.6.0 (July 27, 2012)
74
- Code/spec cleanup
75
- Allow factories with traits to be used in associations
76
- Refactor Factory to use DefinitionHierarchy to handle managing callbacks,
77
- custom constructor, and custom to_create
78
- Add memoization to speed up factories providing attribute overrides
79
- Add initial support of JRuby when running in 1.9 mode
80
- Improve docs on what happens when including FactoryGirl::Syntax::Methods
81
-
82
- 3.5.0 (June 22, 2012)
83
- Allow created_at to be set when using build_stubbed
84
- Deprecate FactoryGirl step definitions
85
-
86
- 3.4.2 (June 19, 2012)
87
- Fix bug in traits with callbacks called implicitly in factories whose
88
- callbacks trigger multiple times
89
-
90
- 3.4.1 (June 18, 2012)
91
- Fix traits so they can be nested and referred to from other traits
92
-
93
- 3.4.0 (June 11, 2012)
94
- Sequences support Enumerators
95
- Optionally disable duplicate assignment of attributes in initialize_with
96
- Make hash of public attributes available in initialize_with
97
- Support referring to a factory based on class name
98
-
99
- 3.3.0 (May 13, 2012)
100
- Allow to_create, skip_create, and initialize_with to be defined globally
101
- Allow to_create, skip_create, and initialize_with to be defined within traits
102
- Fix deprecation messages for alternate syntaxes (make, generate, etc.)
103
- Improve library documentation
104
- Deprecate after_build, after_create, before_create, after_stub in favor of new callbacks
105
- Introduce new callback syntax: after(:build) {}, after(:custom) {}, or callback(:different) {}
106
- This allows for declaring any callback, usable with custom strategies
107
- Add attributes_for_list and build_stubbed_list with the StrategySyntaxMethodRegistrar
108
- Allow use of syntax methods (build, create, generate, etc) implicitly in callbacks
109
- Internal refactoring of a handful of components
110
-
111
- 3.2.0 (April 24, 2012)
112
- Use AS::Notifications for pub/sub to track running factories
113
- Call new within initialize_with implicitly on the build class
114
- Skip to_create with skip_create
115
- Allow registration of custom strategies
116
- Deprecate alternate syntaxes
117
- Implicitly call factory_bot's syntax methods from dynamic attributes
118
-
119
- 3.1.0 (April 6, 2012)
120
- Sequences support aliases, which reference the same block
121
- Update documentation
122
- Add before_create callback
123
- Support use of #attribute_names method to determine available attributes for steps
124
- Use ActiveSupport::Deprecation for all deprecations
125
-
126
- 3.0.0 (March 23, 2012)
127
- Deprecate the vintage syntax
128
- Remove Rails 2.x support
129
- Remove Ruby 1.8 support
130
- Remove deprecated features, including default_strategy, factory_name,
131
- :method for defining default strategy, ignore on individual attributes, and
132
- interacting with Factory the way you would FactoryGirl
133
-
134
- 2.6.4 (March 16, 2012)
135
- Do not ignore names of transient attributes
136
- Ensure attributes set on instance are calculated uniquely
137
-
138
- 2.6.3 (March 9, 2012)
139
- Fix issue with traits not being present the first time a factory is accessed
140
- Update available Cucumber step definitions to not require a trailing colon
141
- when building a table of attributes to instantiate records with
142
-
143
- 2.6.2 (March 9, 2012)
144
- Allow factories to use all their ancestors' traits
145
- Ignore bin dir generated by bundler
146
- Namespace ::Factory as top-level to fix vintage syntax issue with
147
- Ruby 1.9.2-p3p18
148
-
149
- 2.6.1 (March 2, 2012)
150
- Use FactoryGirl.reload in specs
151
- Clean up running named factories with a particular strategy with
152
- FactoryGirl::FactoryRunner
153
-
154
- 2.6.0 (February 17, 2012)
155
- Improve documentation of has_many associations in the GETTING_STARTED
156
- document
157
- Deprecate :method in favor of :strategy when overriding an association's
158
- build strategy
159
-
160
- 2.5.2 (February 10, 2012)
161
- Fix step definitions to use associations defined in parent factories
162
- Add inline trait support to (build|create)_list
163
- Update ActiveSupport dependency to >= 2.3.9, which introduced
164
- class_attribute
165
-
166
- 2.5.1 (February 3, 2012)
167
- Fix attribute evaluation when the attribute isn't defined in the factory but
168
- is a private method on Object
169
- Update rubygems on Travis before running tests
170
- Fix spec name
171
- Update GETTING_STARTED with correct usage of build_stubbed
172
- Update README with more info on initialize_with
173
- Honor :parent on factory over block nesting
174
-
175
- 2.5.0 (January 20, 2012)
176
- Revert 'Deprecate build_stubbed and attributes_for'
177
- Implement initialize_with to allow overriding object instantiation
178
- Ensure FG runs against Rails 3.2.0
179
-
180
- 2.4.2 (January 18, 2012)
181
- Fix inline traits' interaction with defaults on the factory
182
-
183
- 2.4.1 (January 17, 2012)
184
- Deprecate build_stubbed and attributes_for
185
- Fix inline traits
186
-
187
- 2.4.0 (January 13, 2012)
188
- Refactor internals of FactoryGirl to use anonymous class on which attributes
189
- get defined
190
- Explicitly require Ruby 1.8.7 or higher in gemspec
191
- Fix documentation
192
- Add Gemnasium status to documentation
193
- Supplying a Class to a factory that overrides to_s no longer results in
194
- getting the wrong Class constructed
195
- Be more agnostic about ORMs when using columns in FactoryGirl step
196
- definitions
197
- Test against Active Record 3.2.0.rc2
198
- Update GETTING_STARTED to use Ruby syntax highlighting
199
-
200
- 2.3.2 (November 26, 2011)
201
- Move logic of where instance.save! is set to Definition
202
- Fix method name from aliases_for? to alias_for?
203
- Refactor internal attribute handling to use an anonymous class instead of
204
- faking Ruby's variable resolution. This allows for more sane usage of
205
- attributes without having to manage sorting priority because attributes
206
- can turn themselves into procs, which are used with define_method on a
207
- class so attributes work correctly all the time.
208
-
209
- 2.3.1 (November 23, 2011)
210
- Remove internally-used associate method from all the FactoryGirl::Proxy subclasses
211
- Move around requiring of files
212
- Consolidate errors into factory_bot.rb
213
- Refactor AttributeList to deal with priority only when iterating over
214
- attributes
215
- Refactor internals of some of the Proxy subclasses
216
- Ensure callbacks on traits are executed in the correct order
217
-
218
- 2.3.0 (November 18, 2011)
219
- Registries are named, resulting in better messages when factories, traits,
220
- or sequences cannot be found
221
- Fix incorrect tests
222
- Internals refactoring introducing FactoryGirl::NullFactory,
223
- FactoryGirl::Definition, and FactoryGirl::DeclarationList
224
- Use ActiveSupport for Hash#except and its delegation capabilities
225
- Fix usage of callbacks when added via implicit traits
226
- Use Bundler tasks and clean up dependencies
227
- Fix failing spec for big letters in factory name passed as symbol
228
- Add ability for traits to be added dynamically when creating an instance via
229
- build, create, build_stubbed, or attributes_for
230
-
231
- 2.2.0 (October 14, 2011)
232
- Clean up RSpec suite to not use 'should'
233
- Use create_list in step definitions
234
- Syntax methods that deal with ORM interaction (attributes_for, build, build_stubbed,
235
- and create) now accept a block that yields the result. This results in a
236
- more convenient way to interact with the result than using Object.tap.
237
- Standardize deprecation warnings
238
- Update transient attribute syntax to use blocks instead of calling ignore on
239
- each attribute declaration
240
- Parents can be defined after children because factories are evaluated when
241
- they're used; this means breaking up factories across multiple files will
242
- behave as expected
243
- Large internal refactoring, including changing access modifiers for a
244
- handful of methods for a more clearly defined API
245
-
246
- 2.1.2 (September 23, 2011)
247
- Bugfix: Vintage syntax fixed after bug introduced in 2.1.1
248
- Introduce dependency on activesupport to remove code from Factory class
249
-
250
- 2.1.1 (September 23, 2011) (yanked)
251
- Bugfix: Parent object callbacks are run before child object callbacks
252
- Declarations: allow overriding/modification of individual traits in child factories
253
- Callbacks refactored to not be attributes
254
- Updating documentation for formatting and clarity (incl. new specificity for cucumber)
255
-
256
- 2.1.0 (September 02, 2011)
257
- Bugfix: created_at now defined for stubbed models
258
- Gemspec updated for use with Rails 3.1
259
- Factories can now be modified post-definition (useful for overriding defaults from gems/plugins)
260
- All factories can now be reloaded with Factory.reload
261
- Add :method => build to factory associations to prevent saving of associated objects
262
- Factories defined in {Rails.root}/factories are now loaded by default
263
- Various documentation updates
264
-
265
- 1.1.4 (November 28, 2008)
266
- Factory.build now uses Factory.create for associations of the built object
267
- Factory definitions are now detected in subdirectories, such as
268
- factories/person_factory.rb (thanks to Josh Nichols)
269
- Factory definitions are now loaded after the environment in a Rails project
270
- (fixes some issues with dependencies being loaded too early) (thanks to
271
- Josh Nichols)
272
- Factory names ending in 's' no longer cause problems (thanks to Alex Sharp
273
- and Josh Owens)
274
-
275
- 1.1.3 (September 12, 2008)
276
- Automatically pull in definitions from factories.rb, test/factories.rb, or
277
- spec/factories.rb
278
- 1.1.2 (July 30, 2008)
279
- Improved error handling for invalid and undefined factories/attributes
280
- Improved handling of strings vs symbols vs classes
281
- Added a prettier syntax for handling associations
282
- Updated documentation and fixed compatibility with Rails 2.1
283
-
284
- 1.1.1 (June 23, 2008)
285
- The attribute "name" no longer requires using #add_attribute
286
-
287
- 1.1.0 (June 03, 2008)
288
- Added support for dependent attributes
289
- Fixed the attributes_for build strategy to not build associations
290
- Added support for sequences
291
-
292
- 1.0.0 (May 31, 2008)
293
- First version
data/Rakefile DELETED
@@ -1,36 +0,0 @@
1
- require 'rubygems'
2
- require 'bundler'
3
- require 'rake'
4
- require 'appraisal'
5
- require 'yard'
6
- require 'rspec/core/rake_task'
7
- require 'cucumber/rake/task'
8
-
9
- Bundler::GemHelper.install_tasks(name: 'factory_bot')
10
-
11
- desc 'Default: run the specs and features.'
12
- task default: %w(spec:unit spec:acceptance features)
13
-
14
- namespace :spec do
15
- desc "Run unit specs"
16
- RSpec::Core::RakeTask.new('unit') do |t|
17
- t.pattern = 'spec/{*_spec.rb,factory_bot/**/*_spec.rb}'
18
- end
19
-
20
- desc "Run acceptance specs"
21
- RSpec::Core::RakeTask.new('acceptance') do |t|
22
- t.pattern = 'spec/acceptance/**/*_spec.rb'
23
- end
24
- end
25
-
26
- desc "Run the unit and acceptance specs"
27
- task :spec => ['spec:unit', 'spec:acceptance']
28
-
29
- Cucumber::Rake::Task.new(:features) do |t|
30
- t.fork = true
31
- t.cucumber_opts = ['--format', (ENV['CUCUMBER_FORMAT'] || 'progress')]
32
- end
33
-
34
- YARD::Rake::YardocTask.new do |t|
35
- end
36
-
data/cucumber.yml DELETED
@@ -1 +0,0 @@
1
- default: -r features features
data/factory_bot.gemspec DELETED
@@ -1,36 +0,0 @@
1
- $LOAD_PATH << File.expand_path("../lib", __FILE__)
2
- require 'factory_bot/version'
3
-
4
- Gem::Specification.new do |s|
5
- s.name = %q{factory_bot}
6
- s.version = FactoryBot::VERSION
7
- s.summary = %q{factory_bot provides a framework and DSL for defining and
8
- using model instance factories.}
9
- s.description = %q{factory_bot provides a framework and DSL for defining and
10
- using factories - less error-prone, more explicit, and
11
- all-around easier to work with than fixtures.}
12
-
13
- s.files = `git ls-files`.split("\n").reject { |f| f.match(%r{^(spec|features)/}) }
14
-
15
- s.require_path = 'lib'
16
- s.required_ruby_version = Gem::Requirement.new(">= 1.9.2")
17
-
18
- s.authors = ["Josh Clayton", "Joe Ferris"]
19
- s.email = ["jclayton@thoughtbot.com", "jferris@thoughtbot.com"]
20
-
21
- s.homepage = "https://github.com/thoughtbot/factory_bot"
22
-
23
- s.add_dependency("activesupport", ">= 3.0.0")
24
-
25
- s.add_development_dependency("rspec", "~> 3.0")
26
- s.add_development_dependency("rspec-its", "~> 1.0")
27
- s.add_development_dependency("cucumber", "~> 1.3.15")
28
- s.add_development_dependency("timecop")
29
- s.add_development_dependency("simplecov")
30
- s.add_development_dependency("aruba")
31
- s.add_development_dependency("appraisal", "~> 2.1.0")
32
- s.add_development_dependency("activerecord", ">= 3.0.0")
33
- s.add_development_dependency("yard")
34
-
35
- s.license = "MIT"
36
- end
data/factory_girl.gemspec DELETED
@@ -1,40 +0,0 @@
1
- $LOAD_PATH << File.expand_path("../lib", __FILE__)
2
-
3
- Gem::Specification.new do |s|
4
- s.name = %q{factory_girl}
5
- s.version = "4.8.2".freeze
6
- s.summary = %q{factory_girl provides a framework and DSL for defining and
7
- using model instance factories.}
8
- s.description = %q{factory_girl provides a framework and DSL for defining and
9
- using factories - less error-prone, more explicit, and
10
- all-around easier to work with than fixtures.}
11
- s.post_install_message = "The factory_girl gem has been deprecated and has "\
12
- "been replaced by factory_bot. Please switch to "\
13
- "factory_bot as soon as possible."
14
-
15
- s.files = `git ls-files`.split("\n").reject { |f| f.match(%r{^(spec|features)/}) }
16
-
17
- s.require_path = 'lib'
18
- s.required_ruby_version = Gem::Requirement.new(">= 1.9.2")
19
-
20
- s.authors = ["Josh Clayton", "Joe Ferris"]
21
- s.email = ["jclayton@thoughtbot.com", "jferris@thoughtbot.com"]
22
-
23
- s.homepage = "https://github.com/thoughtbot/factory_girl"
24
-
25
- s.add_dependency("activesupport", ">= 3.0.0")
26
-
27
- s.add_development_dependency("rspec", "~> 3.0")
28
- s.add_development_dependency("rspec-its", "~> 1.0")
29
- s.add_development_dependency("cucumber", "~> 1.3.15")
30
- s.add_development_dependency("timecop")
31
- s.add_development_dependency("simplecov")
32
- s.add_development_dependency("aruba")
33
- s.add_development_dependency("mocha", ">= 0.12.8")
34
- s.add_development_dependency("bourne")
35
- s.add_development_dependency("appraisal", "~> 2.1.0")
36
- s.add_development_dependency("activerecord", ">= 3.0.0")
37
- s.add_development_dependency("yard")
38
-
39
- s.license = "MIT"
40
- end
data/gemfiles/3.2.gemfile DELETED
@@ -1,10 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "activerecord-jdbcsqlite3-adapter", :platforms => :jruby
6
- gem "jdbc-sqlite3", :platforms => :jruby
7
- gem "sqlite3", "~> 1.3.10", :platforms => :ruby
8
- gem "activerecord", :git => "https://github.com/rails/rails.git", :branch => "3-2-stable"
9
-
10
- gemspec :path => "../", :name => "factory_bot"
@@ -1,105 +0,0 @@
1
- GIT
2
- remote: https://github.com/rails/rails.git
3
- revision: e17e25cd23e8abd45b1706463dd57c90fa6dcb7c
4
- branch: 3-2-stable
5
- specs:
6
- activemodel (3.2.22.5)
7
- activesupport (= 3.2.22.5)
8
- builder (~> 3.0)
9
- activerecord (3.2.22.5)
10
- activemodel (= 3.2.22.5)
11
- activesupport (= 3.2.22.5)
12
- arel (~> 3.0.2)
13
- tzinfo (~> 0.3.29)
14
- activesupport (3.2.22.5)
15
- i18n (~> 0.6, >= 0.6.4)
16
- multi_json (~> 1.0)
17
-
18
- PATH
19
- remote: ../
20
- specs:
21
- factory_bot (4.8.2)
22
- activesupport (>= 3.0.0)
23
-
24
- GEM
25
- remote: https://rubygems.org/
26
- specs:
27
- appraisal (2.1.0)
28
- bundler
29
- rake
30
- thor (>= 0.14.0)
31
- arel (3.0.3)
32
- aruba (0.14.2)
33
- childprocess (~> 0.5.6)
34
- contracts (~> 0.9)
35
- cucumber (>= 1.3.19)
36
- ffi (~> 1.9.10)
37
- rspec-expectations (>= 2.99)
38
- thor (~> 0.19)
39
- builder (3.2.3)
40
- childprocess (0.5.9)
41
- ffi (~> 1.0, >= 1.0.11)
42
- contracts (0.16.0)
43
- cucumber (1.3.20)
44
- builder (>= 2.1.2)
45
- diff-lcs (>= 1.1.3)
46
- gherkin (~> 2.12)
47
- multi_json (>= 1.7.5, < 2.0)
48
- multi_test (>= 0.1.2)
49
- diff-lcs (1.3)
50
- docile (1.1.5)
51
- ffi (1.9.18)
52
- gherkin (2.12.2)
53
- multi_json (~> 1.3)
54
- i18n (0.8.6)
55
- json (2.1.0)
56
- multi_json (1.12.2)
57
- multi_test (0.1.2)
58
- rake (12.1.0)
59
- rspec (3.6.0)
60
- rspec-core (~> 3.6.0)
61
- rspec-expectations (~> 3.6.0)
62
- rspec-mocks (~> 3.6.0)
63
- rspec-core (3.6.0)
64
- rspec-support (~> 3.6.0)
65
- rspec-expectations (3.6.0)
66
- diff-lcs (>= 1.2.0, < 2.0)
67
- rspec-support (~> 3.6.0)
68
- rspec-its (1.2.0)
69
- rspec-core (>= 3.0.0)
70
- rspec-expectations (>= 3.0.0)
71
- rspec-mocks (3.6.0)
72
- diff-lcs (>= 1.2.0, < 2.0)
73
- rspec-support (~> 3.6.0)
74
- rspec-support (3.6.0)
75
- simplecov (0.15.1)
76
- docile (~> 1.1.0)
77
- json (>= 1.8, < 3)
78
- simplecov-html (~> 0.10.0)
79
- simplecov-html (0.10.2)
80
- sqlite3 (1.3.13)
81
- thor (0.20.0)
82
- timecop (0.9.1)
83
- tzinfo (0.3.53)
84
- yard (0.9.9)
85
-
86
- PLATFORMS
87
- ruby
88
-
89
- DEPENDENCIES
90
- activerecord!
91
- activerecord-jdbcsqlite3-adapter
92
- appraisal (~> 2.1.0)
93
- aruba
94
- cucumber (~> 1.3.15)
95
- factory_bot!
96
- jdbc-sqlite3
97
- rspec (~> 3.0)
98
- rspec-its (~> 1.0)
99
- simplecov
100
- sqlite3 (~> 1.3.10)
101
- timecop
102
- yard
103
-
104
- BUNDLED WITH
105
- 1.15.4
data/gemfiles/4.0.gemfile DELETED
@@ -1,10 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "activerecord-jdbcsqlite3-adapter", :platforms => :jruby
6
- gem "jdbc-sqlite3", :platforms => :jruby
7
- gem "sqlite3", "~> 1.3.10", :platforms => :ruby
8
- gem "activerecord", "~> 4.0.13"
9
-
10
- gemspec :path => "../", :name => "factory_bot"