factory_girl 4.7.0 → 4.8.0

Sign up to get free protection for your applications and to get access to all the features.
data/NAME.md ADDED
@@ -0,0 +1,11 @@
1
+ # Why is this project called "Factory Girl"?
2
+
3
+ The name "Factory Girl" might be confusing to some developers who encounter this
4
+ library.
5
+
6
+ [We chose the name](https://robots.thoughtbot.com/waiting-for-a-factory-girl) as
7
+ a nod in the direction of the [Factory method](https://en.wikipedia.org/wiki/Factory_method_pattern)
8
+ and [Object Mother](http://martinfowler.com/bliki/ObjectMother.html) software
9
+ patterns from the _Design Patterns_ book, and as a reference to the
10
+ [Rolling Stones song](https://www.youtube.com/watch?v=4jKix2DFlnA) of the same
11
+ name.
data/NEWS CHANGED
@@ -1,3 +1,8 @@
1
+ 4.8.0 (December 16, 2016)
2
+ Improve documentation
3
+ Add `FactoryGirl.generate_list` to be consistent with `build_list`/`create_list` and friends
4
+ Add `FactoryGirl.use_parent_strategy` configuration to allow associations to leverage parent build strategy
5
+
1
6
  4.7.0 (April 1, 2016)
2
7
  Improve documentation
3
8
  Improve instrumentation payload to include traits, overrides, and the factory itself
data/README.md CHANGED
@@ -1,10 +1,12 @@
1
- # factory_girl [![Build Status](https://travis-ci.org/thoughtbot/factory_girl.svg)](http://travis-ci.org/thoughtbot/factory_girl?branch=master) [![Dependency Status](https://gemnasium.com/thoughtbot/factory_girl.svg)](https://gemnasium.com/thoughtbot/factory_girl) [![Code Climate](https://img.shields.io/codeclimate/github/thoughtbot/factory_girl.svg)](https://codeclimate.com/github/thoughtbot/factory_girl)
1
+ # factory_girl [![Build Status](https://travis-ci.org/thoughtbot/factory_girl.svg)](http://travis-ci.org/thoughtbot/factory_girl?branch=master) [![Dependency Status](https://gemnasium.com/thoughtbot/factory_girl.svg)](https://gemnasium.com/thoughtbot/factory_girl) [![Code Climate](https://codeclimate.com/github/thoughtbot/factory_girl/badges/gpa.svg)](https://codeclimate.com/github/thoughtbot/factory_girl)
2
2
 
3
3
  factory_girl is a fixtures replacement with a straightforward definition syntax, support for multiple build strategies (saved instances, unsaved instances, attribute hashes, and stubbed objects), and support for multiple factories for the same class (user, admin_user, and so on), including factory inheritance.
4
4
 
5
5
  If you want to use factory_girl with Rails, see
6
6
  [factory_girl_rails](https://github.com/thoughtbot/factory_girl_rails).
7
7
 
8
+ _[Interested in the project name?](NAME.md)._
9
+
8
10
  Documentation
9
11
  -------------
10
12
 
@@ -18,16 +20,33 @@ have [a detailed introductory video][], available for free on Upcase.
18
20
  Install
19
21
  --------
20
22
 
21
- ```shell
22
- gem install factory_girl
23
- ```
24
- or add the following line to Gemfile:
23
+ Add the following line to Gemfile:
25
24
 
26
25
  ```ruby
27
26
  gem 'factory_girl'
28
27
  ```
28
+
29
29
  and run `bundle install` from your shell.
30
30
 
31
+ To install the gem manually from your shell, run:
32
+
33
+ ```shell
34
+ gem install factory_girl
35
+ ```
36
+
37
+ **Caveat:** As of ActiveSupport 5.0 and above, Ruby 2.2.2+ is required. Because
38
+ of Rubygems' dependency resolution when installing gems, you may see an error
39
+ similar to:
40
+
41
+ ```
42
+ $ gem install factory_girl
43
+ ERROR: Error installing factory_girl:
44
+ activesupport requires Ruby version >= 2.2.2.
45
+ ```
46
+
47
+ To bypass this, install a pre-5.0 version of ActiveSupport before installing
48
+ manually.
49
+
31
50
  Supported Ruby versions
32
51
  -----------------------
33
52
 
@@ -1,40 +1,35 @@
1
1
  GIT
2
2
  remote: https://github.com/rails/rails.git
3
- revision: 9892626579d1c62c367e5344a1d1642708340f88
3
+ revision: d4a1b33a2ab6703124926fbf805d77ef753e1b87
4
4
  branch: 3-2-stable
5
5
  specs:
6
- activemodel (3.2.22.1)
7
- activesupport (= 3.2.22.1)
6
+ activemodel (3.2.22.2)
7
+ activesupport (= 3.2.22.2)
8
8
  builder (~> 3.0.0)
9
- activerecord (3.2.22.1)
10
- activemodel (= 3.2.22.1)
11
- activesupport (= 3.2.22.1)
9
+ activerecord (3.2.22.2)
10
+ activemodel (= 3.2.22.2)
11
+ activesupport (= 3.2.22.2)
12
12
  arel (~> 3.0.2)
13
13
  tzinfo (~> 0.3.29)
14
- activesupport (3.2.22.1)
14
+ activesupport (3.2.22.2)
15
15
  i18n (~> 0.6, >= 0.6.4)
16
16
  multi_json (~> 1.0)
17
17
 
18
18
  PATH
19
19
  remote: ../
20
20
  specs:
21
- factory_girl (4.7.0)
21
+ factory_girl (4.8.0)
22
22
  activesupport (>= 3.0.0)
23
23
 
24
24
  GEM
25
25
  remote: https://rubygems.org/
26
26
  specs:
27
- activerecord-jdbc-adapter (1.3.19)
28
- activerecord (>= 2.2)
29
- activerecord-jdbcsqlite3-adapter (1.3.19)
30
- activerecord-jdbc-adapter (~> 1.3.19)
31
- jdbc-sqlite3 (>= 3.7.2, < 3.9)
32
27
  appraisal (2.1.0)
33
28
  bundler
34
29
  rake
35
30
  thor (>= 0.14.0)
36
31
  arel (3.0.3)
37
- aruba (0.13.0)
32
+ aruba (0.14.1)
38
33
  childprocess (~> 0.5.6)
39
34
  contracts (~> 0.9)
40
35
  cucumber (>= 1.3.19)
@@ -46,7 +41,7 @@ GEM
46
41
  builder (3.0.4)
47
42
  childprocess (0.5.9)
48
43
  ffi (~> 1.0, >= 1.0.11)
49
- contracts (0.13.0)
44
+ contracts (0.14.0)
50
45
  cucumber (1.3.20)
51
46
  builder (>= 2.1.2)
52
47
  diff-lcs (>= 1.1.3)
@@ -56,26 +51,21 @@ GEM
56
51
  diff-lcs (1.2.5)
57
52
  docile (1.1.5)
58
53
  ffi (1.9.10)
59
- ffi (1.9.10-java)
60
54
  gherkin (2.12.2)
61
55
  multi_json (~> 1.3)
62
- gherkin (2.12.2-java)
63
- multi_json (~> 1.3)
64
56
  i18n (0.7.0)
65
- jdbc-sqlite3 (3.8.11.2)
66
57
  json (1.8.3)
67
- json (1.8.3-java)
68
58
  metaclass (0.0.4)
69
59
  mocha (1.1.0)
70
60
  metaclass (~> 0.0.1)
71
- multi_json (1.11.2)
61
+ multi_json (1.12.1)
72
62
  multi_test (0.1.2)
73
- rake (10.5.0)
63
+ rake (11.2.2)
74
64
  rspec (3.4.0)
75
65
  rspec-core (~> 3.4.0)
76
66
  rspec-expectations (~> 3.4.0)
77
67
  rspec-mocks (~> 3.4.0)
78
- rspec-core (3.4.2)
68
+ rspec-core (3.4.4)
79
69
  rspec-support (~> 3.4.0)
80
70
  rspec-expectations (3.4.0)
81
71
  diff-lcs (>= 1.2.0, < 2.0)
@@ -94,12 +84,11 @@ GEM
94
84
  simplecov-html (0.10.0)
95
85
  sqlite3 (1.3.11)
96
86
  thor (0.19.1)
97
- timecop (0.8.0)
98
- tzinfo (0.3.46)
87
+ timecop (0.8.1)
88
+ tzinfo (0.3.50)
99
89
  yard (0.8.7.6)
100
90
 
101
91
  PLATFORMS
102
- java
103
92
  ruby
104
93
 
105
94
  DEPENDENCIES
@@ -120,4 +109,4 @@ DEPENDENCIES
120
109
  yard
121
110
 
122
111
  BUNDLED WITH
123
- 1.11.2
112
+ 1.13.6
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../
3
3
  specs:
4
- factory_girl (4.7.0)
4
+ factory_girl (4.8.0)
5
5
  activesupport (>= 3.0.0)
6
6
 
7
7
  GEM
@@ -16,11 +16,6 @@ GEM
16
16
  activesupport (= 4.0.13)
17
17
  arel (~> 4.0.0)
18
18
  activerecord-deprecated_finders (1.0.4)
19
- activerecord-jdbc-adapter (1.3.19)
20
- activerecord (>= 2.2)
21
- activerecord-jdbcsqlite3-adapter (1.3.19)
22
- activerecord-jdbc-adapter (~> 1.3.19)
23
- jdbc-sqlite3 (>= 3.7.2, < 3.9)
24
19
  activesupport (4.0.13)
25
20
  i18n (~> 0.6, >= 0.6.9)
26
21
  minitest (~> 4.2)
@@ -32,7 +27,7 @@ GEM
32
27
  rake
33
28
  thor (>= 0.14.0)
34
29
  arel (4.0.2)
35
- aruba (0.13.0)
30
+ aruba (0.14.1)
36
31
  childprocess (~> 0.5.6)
37
32
  contracts (~> 0.9)
38
33
  cucumber (>= 1.3.19)
@@ -44,7 +39,7 @@ GEM
44
39
  builder (3.1.4)
45
40
  childprocess (0.5.9)
46
41
  ffi (~> 1.0, >= 1.0.11)
47
- contracts (0.13.0)
42
+ contracts (0.14.0)
48
43
  cucumber (1.3.20)
49
44
  builder (>= 2.1.2)
50
45
  diff-lcs (>= 1.1.3)
@@ -54,27 +49,22 @@ GEM
54
49
  diff-lcs (1.2.5)
55
50
  docile (1.1.5)
56
51
  ffi (1.9.10)
57
- ffi (1.9.10-java)
58
52
  gherkin (2.12.2)
59
53
  multi_json (~> 1.3)
60
- gherkin (2.12.2-java)
61
- multi_json (~> 1.3)
62
54
  i18n (0.7.0)
63
- jdbc-sqlite3 (3.8.11.2)
64
55
  json (1.8.3)
65
- json (1.8.3-java)
66
56
  metaclass (0.0.4)
67
57
  minitest (4.7.5)
68
58
  mocha (1.1.0)
69
59
  metaclass (~> 0.0.1)
70
- multi_json (1.11.2)
60
+ multi_json (1.12.1)
71
61
  multi_test (0.1.2)
72
- rake (10.5.0)
62
+ rake (11.2.2)
73
63
  rspec (3.4.0)
74
64
  rspec-core (~> 3.4.0)
75
65
  rspec-expectations (~> 3.4.0)
76
66
  rspec-mocks (~> 3.4.0)
77
- rspec-core (3.4.2)
67
+ rspec-core (3.4.4)
78
68
  rspec-support (~> 3.4.0)
79
69
  rspec-expectations (3.4.0)
80
70
  diff-lcs (>= 1.2.0, < 2.0)
@@ -94,13 +84,11 @@ GEM
94
84
  sqlite3 (1.3.11)
95
85
  thor (0.19.1)
96
86
  thread_safe (0.3.5)
97
- thread_safe (0.3.5-java)
98
- timecop (0.8.0)
99
- tzinfo (0.3.46)
87
+ timecop (0.8.1)
88
+ tzinfo (0.3.50)
100
89
  yard (0.8.7.6)
101
90
 
102
91
  PLATFORMS
103
- java
104
92
  ruby
105
93
 
106
94
  DEPENDENCIES
@@ -121,4 +109,4 @@ DEPENDENCIES
121
109
  yard
122
110
 
123
111
  BUNDLED WITH
124
- 1.11.2
112
+ 1.13.6
@@ -1,25 +1,20 @@
1
1
  PATH
2
2
  remote: ../
3
3
  specs:
4
- factory_girl (4.7.0)
4
+ factory_girl (4.8.0)
5
5
  activesupport (>= 3.0.0)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- activemodel (4.1.14.1)
11
- activesupport (= 4.1.14.1)
10
+ activemodel (4.1.15)
11
+ activesupport (= 4.1.15)
12
12
  builder (~> 3.1)
13
- activerecord (4.1.14.1)
14
- activemodel (= 4.1.14.1)
15
- activesupport (= 4.1.14.1)
13
+ activerecord (4.1.15)
14
+ activemodel (= 4.1.15)
15
+ activesupport (= 4.1.15)
16
16
  arel (~> 5.0.0)
17
- activerecord-jdbc-adapter (1.3.19)
18
- activerecord (>= 2.2)
19
- activerecord-jdbcsqlite3-adapter (1.3.19)
20
- activerecord-jdbc-adapter (~> 1.3.19)
21
- jdbc-sqlite3 (>= 3.7.2, < 3.9)
22
- activesupport (4.1.14.1)
17
+ activesupport (4.1.15)
23
18
  i18n (~> 0.6, >= 0.6.9)
24
19
  json (~> 1.7, >= 1.7.7)
25
20
  minitest (~> 5.1)
@@ -30,7 +25,7 @@ GEM
30
25
  rake
31
26
  thor (>= 0.14.0)
32
27
  arel (5.0.1.20140414130214)
33
- aruba (0.13.0)
28
+ aruba (0.14.1)
34
29
  childprocess (~> 0.5.6)
35
30
  contracts (~> 0.9)
36
31
  cucumber (>= 1.3.19)
@@ -42,7 +37,7 @@ GEM
42
37
  builder (3.2.2)
43
38
  childprocess (0.5.9)
44
39
  ffi (~> 1.0, >= 1.0.11)
45
- contracts (0.13.0)
40
+ contracts (0.14.0)
46
41
  cucumber (1.3.20)
47
42
  builder (>= 2.1.2)
48
43
  diff-lcs (>= 1.1.3)
@@ -52,27 +47,22 @@ GEM
52
47
  diff-lcs (1.2.5)
53
48
  docile (1.1.5)
54
49
  ffi (1.9.10)
55
- ffi (1.9.10-java)
56
50
  gherkin (2.12.2)
57
51
  multi_json (~> 1.3)
58
- gherkin (2.12.2-java)
59
- multi_json (~> 1.3)
60
52
  i18n (0.7.0)
61
- jdbc-sqlite3 (3.8.11.2)
62
53
  json (1.8.3)
63
- json (1.8.3-java)
64
54
  metaclass (0.0.4)
65
- minitest (5.8.4)
55
+ minitest (5.9.0)
66
56
  mocha (1.1.0)
67
57
  metaclass (~> 0.0.1)
68
- multi_json (1.11.2)
58
+ multi_json (1.12.1)
69
59
  multi_test (0.1.2)
70
- rake (10.5.0)
60
+ rake (11.2.2)
71
61
  rspec (3.4.0)
72
62
  rspec-core (~> 3.4.0)
73
63
  rspec-expectations (~> 3.4.0)
74
64
  rspec-mocks (~> 3.4.0)
75
- rspec-core (3.4.2)
65
+ rspec-core (3.4.4)
76
66
  rspec-support (~> 3.4.0)
77
67
  rspec-expectations (3.4.0)
78
68
  diff-lcs (>= 1.2.0, < 2.0)
@@ -92,14 +82,12 @@ GEM
92
82
  sqlite3 (1.3.11)
93
83
  thor (0.19.1)
94
84
  thread_safe (0.3.5)
95
- thread_safe (0.3.5-java)
96
- timecop (0.8.0)
85
+ timecop (0.8.1)
97
86
  tzinfo (1.2.2)
98
87
  thread_safe (~> 0.1)
99
88
  yard (0.8.7.6)
100
89
 
101
90
  PLATFORMS
102
- java
103
91
  ruby
104
92
 
105
93
  DEPENDENCIES
@@ -120,4 +108,4 @@ DEPENDENCIES
120
108
  yard
121
109
 
122
110
  BUNDLED WITH
123
- 1.11.2
111
+ 1.13.6
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../
3
3
  specs:
4
- factory_girl (4.7.0)
4
+ factory_girl (4.8.0)
5
5
  activesupport (>= 3.0.0)
6
6
 
7
7
  GEM
@@ -14,11 +14,6 @@ GEM
14
14
  activemodel (= 4.2.5.1)
15
15
  activesupport (= 4.2.5.1)
16
16
  arel (~> 6.0)
17
- activerecord-jdbc-adapter (1.3.19)
18
- activerecord (>= 2.2)
19
- activerecord-jdbcsqlite3-adapter (1.3.19)
20
- activerecord-jdbc-adapter (~> 1.3.19)
21
- jdbc-sqlite3 (>= 3.7.2, < 3.9)
22
17
  activesupport (4.2.5.1)
23
18
  i18n (~> 0.7)
24
19
  json (~> 1.7, >= 1.7.7)
@@ -30,7 +25,7 @@ GEM
30
25
  rake
31
26
  thor (>= 0.14.0)
32
27
  arel (6.0.3)
33
- aruba (0.13.0)
28
+ aruba (0.14.1)
34
29
  childprocess (~> 0.5.6)
35
30
  contracts (~> 0.9)
36
31
  cucumber (>= 1.3.19)
@@ -42,7 +37,7 @@ GEM
42
37
  builder (3.2.2)
43
38
  childprocess (0.5.9)
44
39
  ffi (~> 1.0, >= 1.0.11)
45
- contracts (0.13.0)
40
+ contracts (0.14.0)
46
41
  cucumber (1.3.20)
47
42
  builder (>= 2.1.2)
48
43
  diff-lcs (>= 1.1.3)
@@ -52,27 +47,22 @@ GEM
52
47
  diff-lcs (1.2.5)
53
48
  docile (1.1.5)
54
49
  ffi (1.9.10)
55
- ffi (1.9.10-java)
56
50
  gherkin (2.12.2)
57
51
  multi_json (~> 1.3)
58
- gherkin (2.12.2-java)
59
- multi_json (~> 1.3)
60
52
  i18n (0.7.0)
61
- jdbc-sqlite3 (3.8.11.2)
62
53
  json (1.8.3)
63
- json (1.8.3-java)
64
54
  metaclass (0.0.4)
65
- minitest (5.8.4)
55
+ minitest (5.9.0)
66
56
  mocha (1.1.0)
67
57
  metaclass (~> 0.0.1)
68
- multi_json (1.11.2)
58
+ multi_json (1.12.1)
69
59
  multi_test (0.1.2)
70
- rake (10.5.0)
60
+ rake (11.2.2)
71
61
  rspec (3.4.0)
72
62
  rspec-core (~> 3.4.0)
73
63
  rspec-expectations (~> 3.4.0)
74
64
  rspec-mocks (~> 3.4.0)
75
- rspec-core (3.4.2)
65
+ rspec-core (3.4.4)
76
66
  rspec-support (~> 3.4.0)
77
67
  rspec-expectations (3.4.0)
78
68
  diff-lcs (>= 1.2.0, < 2.0)
@@ -92,14 +82,12 @@ GEM
92
82
  sqlite3 (1.3.11)
93
83
  thor (0.19.1)
94
84
  thread_safe (0.3.5)
95
- thread_safe (0.3.5-java)
96
- timecop (0.8.0)
85
+ timecop (0.8.1)
97
86
  tzinfo (1.2.2)
98
87
  thread_safe (~> 0.1)
99
88
  yard (0.8.7.6)
100
89
 
101
90
  PLATFORMS
102
- java
103
91
  ruby
104
92
 
105
93
  DEPENDENCIES
@@ -120,4 +108,4 @@ DEPENDENCIES
120
108
  yard
121
109
 
122
110
  BUNDLED WITH
123
- 1.11.2
111
+ 1.13.6