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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0e5696c36ce835a9ff0c7202fa25b7666d437d80
4
- data.tar.gz: 5bc4ff2a8752c4ac62f7bffdfc74ae9e5c4e1787
3
+ metadata.gz: f2253c250720fea7a3b49e3fccd702bd2d4c4736
4
+ data.tar.gz: 694a315ee68ea6be620d2960ae81068d80d87d5d
5
5
  SHA512:
6
- metadata.gz: 52c1664c31f13e3b5f8ff16235c10365ce61f107abf20f1b5d1d73e3d65d8fcf8eb5d50c9c8b7910d543b071f8a3908744a7b4cbee7ed666bc96b788f6a2e00f
7
- data.tar.gz: ce85f4bc7c86201cebfacda18f45412d62064ce3ae0e1400ffe7540663fd37f8090fd5782bdea93ff072aeaaa83a385b8d9c34db3df9221ebbee7f833ad46cd0
6
+ metadata.gz: acfe7847988ac40c9be0b2d5a720b7c1662ba175e61b7a85a03bf90ef285b005033d3b7b58275c4c966e35e55fa10c01dcd0c5bbe64023b87779e4d6963cb547
7
+ data.tar.gz: 8f3df1535faa8c7ecc8c1702974da66108cab86ac8dccd388381c1a71374ff9f00fd0891ba63fe14d36d16115c5b746e15505fd3bac5031b6ce8371a705295c9
data/.gitignore CHANGED
@@ -1,6 +1,7 @@
1
1
  *.swp
2
2
  test.db
3
3
  factory_girl-*.gem
4
+ factory_bot-*.gem
4
5
  doc
5
6
  .yardoc
6
7
  coverage
@@ -1031,7 +1031,7 @@ FactoryBot.lint factories_to_lint, traits: true
1031
1031
  You can also specify the strategy used for linting:
1032
1032
 
1033
1033
  ```ruby
1034
- FactoryGirl.lint strategy: :build
1034
+ FactoryBot.lint strategy: :build
1035
1035
  ```
1036
1036
 
1037
1037
  Custom Construction
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- factory_bot (1.0.0.alpha)
4
+ factory_bot (4.8.2)
5
5
  activesupport (>= 3.0.0)
6
6
 
7
7
  GEM
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 FactoryBot.lint by including exception and message in output
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 FactoryBot.lint and initialize_with
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 FactoryBot.lint
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 FactoryBot block (factory or trait)
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 FactoryBot::Syntax::Methods
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 FactoryBot step definitions
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 FactoryBot
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 FactoryBot.reload in specs
150
+ Use FactoryGirl.reload in specs
148
151
  Clean up running named factories with a particular strategy with
149
- FactoryBot::FactoryRunner
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 FactoryBot to use anonymous class on which attributes
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 FactoryBot step
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 FactoryBot::Proxy subclasses
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 FactoryBot::NullFactory,
220
- FactoryBot::Definition, and FactoryBot::DeclarationList
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
 
@@ -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 = 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
@@ -7,4 +7,4 @@ gem "jdbc-sqlite3", :platforms => :jruby
7
7
  gem "sqlite3", "~> 1.3.10", :platforms => :ruby
8
8
  gem "activerecord", :git => "https://github.com/rails/rails.git", :branch => "3-2-stable"
9
9
 
10
- gemspec :path => "../"
10
+ gemspec :path => "../", :name => "factory_bot"
@@ -18,7 +18,7 @@ GIT
18
18
  PATH
19
19
  remote: ../
20
20
  specs:
21
- factory_girl (4.8.1)
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
- factory_girl!
95
+ factory_bot!
96
96
  jdbc-sqlite3
97
97
  rspec (~> 3.0)
98
98
  rspec-its (~> 1.0)
@@ -7,4 +7,4 @@ gem "jdbc-sqlite3", :platforms => :jruby
7
7
  gem "sqlite3", "~> 1.3.10", :platforms => :ruby
8
8
  gem "activerecord", "~> 4.0.13"
9
9
 
10
- gemspec :path => "../"
10
+ gemspec :path => "../", :name => "factory_bot"
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../
3
3
  specs:
4
- factory_girl (4.8.1)
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
- factory_girl!
95
+ factory_bot!
96
96
  jdbc-sqlite3
97
97
  rspec (~> 3.0)
98
98
  rspec-its (~> 1.0)
@@ -7,4 +7,4 @@ gem "jdbc-sqlite3", :platforms => :jruby
7
7
  gem "sqlite3", "~> 1.3.10", :platforms => :ruby
8
8
  gem "activerecord", "~> 4.1.14"
9
9
 
10
- gemspec :path => "../"
10
+ gemspec :path => "../", :name => "factory_bot"
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../
3
3
  specs:
4
- factory_girl (4.8.1)
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
- factory_girl!
94
+ factory_bot!
95
95
  jdbc-sqlite3
96
96
  rspec (~> 3.0)
97
97
  rspec-its (~> 1.0)
@@ -7,4 +7,4 @@ gem "jdbc-sqlite3", :platforms => :jruby
7
7
  gem "sqlite3", "~> 1.3.10", :platforms => :ruby
8
8
  gem "activerecord", "~> 4.2.5.1"
9
9
 
10
- gemspec :path => "../"
10
+ gemspec :path => "../", :name => "factory_bot"
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../
3
3
  specs:
4
- factory_girl (4.8.1)
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
- factory_girl!
94
+ factory_bot!
95
95
  jdbc-sqlite3
96
96
  rspec (~> 3.0)
97
97
  rspec-its (~> 1.0)
@@ -7,4 +7,4 @@ gem "jdbc-sqlite3", :platforms => :jruby
7
7
  gem "sqlite3", "~> 1.3.10", :platforms => :ruby
8
8
  gem "activerecord", "~> 5.0.0"
9
9
 
10
- gemspec :path => "../"
10
+ gemspec :path => "../", :name => "factory_bot"
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../
3
3
  specs:
4
- factory_girl (4.8.1)
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
- factory_girl!
93
+ factory_bot!
94
94
  jdbc-sqlite3
95
95
  rspec (~> 3.0)
96
96
  rspec-its (~> 1.0)
@@ -1,3 +1,3 @@
1
1
  module FactoryBot
2
- VERSION = '1.0.1.alpha'.freeze
2
+ VERSION = "4.8.2".freeze
3
3
  end
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: 1.0.1.alpha
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-06 00:00:00.000000000 Z
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: 1.3.1
265
+ version: '0'
267
266
  requirements: []
268
267
  rubyforge_project:
269
268
  rubygems_version: 2.6.11
@@ -1 +0,0 @@
1
- VERSION = '4.8.1'.freeze