factory_bot_rails 1.0.0.alpha → 4.8.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,134 +1,141 @@
1
1
  PATH
2
- remote: /Users/avibot/thoughtbot/factory_bot_rails
2
+ remote: /Users/aviellewolfe/work/factories/factory_bot_rails
3
3
  specs:
4
- factory_bot_rails (1.0.0)
5
- factory_bot (~> 1.0.0)
4
+ factory_bot_rails (4.8.2)
5
+ factory_bot (~> 4.8.2)
6
6
  railties (>= 3.0.0)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- actioncable (5.0.1)
12
- actionpack (= 5.0.1)
13
- nio4r (~> 1.2)
11
+ actioncable (5.0.6)
12
+ actionpack (= 5.0.6)
13
+ nio4r (>= 1.2, < 3.0)
14
14
  websocket-driver (~> 0.6.1)
15
- actionmailer (5.0.1)
16
- actionpack (= 5.0.1)
17
- actionview (= 5.0.1)
18
- activejob (= 5.0.1)
15
+ actionmailer (5.0.6)
16
+ actionpack (= 5.0.6)
17
+ actionview (= 5.0.6)
18
+ activejob (= 5.0.6)
19
19
  mail (~> 2.5, >= 2.5.4)
20
20
  rails-dom-testing (~> 2.0)
21
- actionpack (5.0.1)
22
- actionview (= 5.0.1)
23
- activesupport (= 5.0.1)
21
+ actionpack (5.0.6)
22
+ actionview (= 5.0.6)
23
+ activesupport (= 5.0.6)
24
24
  rack (~> 2.0)
25
25
  rack-test (~> 0.6.3)
26
26
  rails-dom-testing (~> 2.0)
27
27
  rails-html-sanitizer (~> 1.0, >= 1.0.2)
28
- actionview (5.0.1)
29
- activesupport (= 5.0.1)
28
+ actionview (5.0.6)
29
+ activesupport (= 5.0.6)
30
30
  builder (~> 3.1)
31
31
  erubis (~> 2.7.0)
32
32
  rails-dom-testing (~> 2.0)
33
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
34
- activejob (5.0.1)
35
- activesupport (= 5.0.1)
33
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
34
+ activejob (5.0.6)
35
+ activesupport (= 5.0.6)
36
36
  globalid (>= 0.3.6)
37
- activemodel (5.0.1)
38
- activesupport (= 5.0.1)
39
- activerecord (5.0.1)
40
- activemodel (= 5.0.1)
41
- activesupport (= 5.0.1)
37
+ activemodel (5.0.6)
38
+ activesupport (= 5.0.6)
39
+ activerecord (5.0.6)
40
+ activemodel (= 5.0.6)
41
+ activesupport (= 5.0.6)
42
42
  arel (~> 7.0)
43
- activesupport (5.0.1)
43
+ activesupport (5.0.6)
44
44
  concurrent-ruby (~> 1.0, >= 1.0.2)
45
45
  i18n (~> 0.7)
46
46
  minitest (~> 5.1)
47
47
  tzinfo (~> 1.1)
48
48
  arel (7.1.4)
49
+ bindex (0.5.0)
49
50
  builder (3.2.3)
50
- byebug (9.0.6)
51
- coffee-rails (4.2.1)
51
+ byebug (9.1.0)
52
+ coffee-rails (4.2.2)
52
53
  coffee-script (>= 2.2.0)
53
- railties (>= 4.0.0, < 5.2.x)
54
+ railties (>= 4.0.0)
54
55
  coffee-script (2.4.1)
55
56
  coffee-script-source
56
57
  execjs
57
58
  coffee-script-source (1.12.2)
58
- concurrent-ruby (1.0.4)
59
- debug_inspector (0.0.2)
59
+ concurrent-ruby (1.0.5)
60
+ crass (1.0.2)
60
61
  erubis (2.7.0)
61
62
  execjs (2.7.0)
62
- factory_bot (1.0.0)
63
+ factory_bot (4.8.2)
63
64
  activesupport (>= 3.0.0)
64
- ffi (1.9.17)
65
- globalid (0.3.7)
66
- activesupport (>= 4.1.0)
67
- i18n (0.7.0)
68
- jbuilder (2.6.1)
69
- activesupport (>= 3.0.0, < 5.1)
70
- multi_json (~> 1.2)
71
- jquery-rails (4.2.2)
65
+ ffi (1.9.18)
66
+ globalid (0.4.0)
67
+ activesupport (>= 4.2.0)
68
+ i18n (0.9.0)
69
+ concurrent-ruby (~> 1.0)
70
+ jbuilder (2.7.0)
71
+ activesupport (>= 4.2.0)
72
+ multi_json (>= 1.2)
73
+ jquery-rails (4.3.1)
72
74
  rails-dom-testing (>= 1, < 3)
73
75
  railties (>= 4.2.0)
74
76
  thor (>= 0.14, < 2.0)
75
77
  listen (3.0.8)
76
78
  rb-fsevent (~> 0.9, >= 0.9.4)
77
79
  rb-inotify (~> 0.9, >= 0.9.7)
78
- loofah (2.0.3)
80
+ loofah (2.1.1)
81
+ crass (~> 1.0.2)
79
82
  nokogiri (>= 1.5.9)
80
- mail (2.6.4)
83
+ mail (2.6.6)
81
84
  mime-types (>= 1.16, < 4)
82
- method_source (0.8.2)
85
+ method_source (0.9.0)
83
86
  mime-types (3.1)
84
87
  mime-types-data (~> 3.2015)
85
88
  mime-types-data (3.2016.0521)
86
- mini_portile2 (2.1.0)
87
- minitest (5.10.1)
88
- multi_json (1.12.1)
89
- nio4r (1.2.1)
90
- nokogiri (1.7.0.1)
91
- mini_portile2 (~> 2.1.0)
92
- power_assert (0.4.1)
93
- puma (3.6.2)
94
- rack (2.0.1)
89
+ mini_portile2 (2.3.0)
90
+ minitest (5.10.3)
91
+ multi_json (1.12.2)
92
+ nio4r (2.1.0)
93
+ nokogiri (1.8.1)
94
+ mini_portile2 (~> 2.3.0)
95
+ power_assert (1.1.0)
96
+ puma (3.10.0)
97
+ rack (2.0.3)
95
98
  rack-test (0.6.3)
96
99
  rack (>= 1.0)
97
- rails (5.0.1)
98
- actioncable (= 5.0.1)
99
- actionmailer (= 5.0.1)
100
- actionpack (= 5.0.1)
101
- actionview (= 5.0.1)
102
- activejob (= 5.0.1)
103
- activemodel (= 5.0.1)
104
- activerecord (= 5.0.1)
105
- activesupport (= 5.0.1)
106
- bundler (>= 1.3.0, < 2.0)
107
- railties (= 5.0.1)
100
+ rails (5.0.6)
101
+ actioncable (= 5.0.6)
102
+ actionmailer (= 5.0.6)
103
+ actionpack (= 5.0.6)
104
+ actionview (= 5.0.6)
105
+ activejob (= 5.0.6)
106
+ activemodel (= 5.0.6)
107
+ activerecord (= 5.0.6)
108
+ activesupport (= 5.0.6)
109
+ bundler (>= 1.3.0)
110
+ railties (= 5.0.6)
108
111
  sprockets-rails (>= 2.0.0)
109
- rails-dom-testing (2.0.2)
110
- activesupport (>= 4.2.0, < 6.0)
111
- nokogiri (~> 1.6)
112
+ rails-dom-testing (2.0.3)
113
+ activesupport (>= 4.2.0)
114
+ nokogiri (>= 1.6)
112
115
  rails-html-sanitizer (1.0.3)
113
116
  loofah (~> 2.0)
114
- railties (5.0.1)
115
- actionpack (= 5.0.1)
116
- activesupport (= 5.0.1)
117
+ railties (5.0.6)
118
+ actionpack (= 5.0.6)
119
+ activesupport (= 5.0.6)
117
120
  method_source
118
121
  rake (>= 0.8.7)
119
122
  thor (>= 0.18.1, < 2.0)
120
- rake (12.0.0)
121
- rb-fsevent (0.9.8)
122
- rb-inotify (0.9.8)
123
- ffi (>= 0.5.0)
124
- sass (3.4.23)
123
+ rake (12.1.0)
124
+ rb-fsevent (0.10.2)
125
+ rb-inotify (0.9.10)
126
+ ffi (>= 0.5.0, < 2)
127
+ sass (3.5.2)
128
+ sass-listen (~> 4.0.0)
129
+ sass-listen (4.0.0)
130
+ rb-fsevent (~> 0.9, >= 0.9.4)
131
+ rb-inotify (~> 0.9, >= 0.9.7)
125
132
  sass-rails (5.0.6)
126
133
  railties (>= 4.0.0, < 6)
127
134
  sass (~> 3.1)
128
135
  sprockets (>= 2.8, < 4.0)
129
136
  sprockets-rails (>= 2.0, < 4.0)
130
137
  tilt (>= 1.1, < 3)
131
- spring (2.0.1)
138
+ spring (2.0.2)
132
139
  activesupport (>= 4.2)
133
140
  spring-watcher-listen (2.0.1)
134
141
  listen (>= 2.7, < 4.0)
@@ -136,27 +143,27 @@ GEM
136
143
  sprockets (3.7.1)
137
144
  concurrent-ruby (~> 1.0)
138
145
  rack (> 1, < 3)
139
- sprockets-rails (3.2.0)
146
+ sprockets-rails (3.2.1)
140
147
  actionpack (>= 4.0)
141
148
  activesupport (>= 4.0)
142
149
  sprockets (>= 3.0.0)
143
150
  sqlite3 (1.3.13)
144
- test-unit (3.2.3)
151
+ test-unit (3.2.6)
145
152
  power_assert
146
- thor (0.19.4)
147
- thread_safe (0.3.5)
148
- tilt (2.0.6)
153
+ thor (0.20.0)
154
+ thread_safe (0.3.6)
155
+ tilt (2.0.8)
149
156
  turbolinks (5.0.1)
150
157
  turbolinks-source (~> 5)
151
- turbolinks-source (5.0.0)
152
- tzinfo (1.2.2)
158
+ turbolinks-source (5.0.3)
159
+ tzinfo (1.2.3)
153
160
  thread_safe (~> 0.1)
154
- uglifier (3.0.4)
161
+ uglifier (3.2.0)
155
162
  execjs (>= 0.3.0, < 3)
156
- web-console (3.4.0)
163
+ web-console (3.5.1)
157
164
  actionview (>= 5.0)
158
165
  activemodel (>= 5.0)
159
- debug_inspector
166
+ bindex (>= 0.4.0)
160
167
  railties (>= 5.0)
161
168
  websocket-driver (0.6.5)
162
169
  websocket-extensions (>= 0.1.0)
@@ -173,7 +180,7 @@ DEPENDENCIES
173
180
  jquery-rails
174
181
  listen (~> 3.0.5)
175
182
  puma (~> 3.0)
176
- rails (~> 5.0.0, >= 5.0.0.1)
183
+ rails (~> 5.0.6)
177
184
  sass-rails (~> 5.0)
178
185
  spring
179
186
  spring-watcher-listen (~> 2.0.0)
@@ -182,7 +189,7 @@ DEPENDENCIES
182
189
  turbolinks (~> 5)
183
190
  tzinfo-data
184
191
  uglifier (>= 1.3.0)
185
- web-console
192
+ web-console (>= 3.3.0)
186
193
 
187
194
  BUNDLED WITH
188
- 1.13.7
195
+ 1.14.6
@@ -1,6 +1,8 @@
1
1
  # Be sure to restart your server when you modify this file.
2
2
 
3
- # ApplicationController.renderer.defaults.merge!(
4
- # http_host: 'example.org',
5
- # https: false
6
- # )
3
+ # ActiveSupport::Reloader.to_prepare do
4
+ # ApplicationController.renderer.defaults.merge!(
5
+ # http_host: 'example.org',
6
+ # https: false
7
+ # )
8
+ # end
@@ -2,7 +2,9 @@
2
2
  #
3
3
  # This file contains migration options to ease your Rails 5.0 upgrade.
4
4
  #
5
- # Read the Rails 5.0 release notes for more info on each option.
5
+ # Read the Guide for Upgrading Ruby on Rails for more info on each option.
6
+
7
+ Rails.application.config.action_controller.raise_on_unfiltered_parameters = true
6
8
 
7
9
  # Enable per-form CSRF tokens. Previous versions had false.
8
10
  Rails.application.config.action_controller.per_form_csrf_tokens = true
@@ -11,10 +11,10 @@
11
11
  # if you're sharing your code publicly.
12
12
 
13
13
  development:
14
- secret_key_base: 0493de9590a06c0b2e10319491d8dfb6c170a6ffa2b59e6d6c06ee7d762e07dd8e39222146b4a426bf80604ec1194d3260700b5bb5672910d03f63708e555d14
14
+ secret_key_base: a19e561f5c347e2d43173c4b1b85474a539004d8aacefc5201e0a71552fda91589c42af194268d6fb6ce165f84a739b9b1e0e1349c2cf8352434201de6c97c8e
15
15
 
16
16
  test:
17
- secret_key_base: 55cc7c5ed10dd29048edc19305cb61582a18c3941c5f75cd15847deebde751f10de91950326670fbc320fa18f67add6482dc0d1099f2a5be86aba43284a40657
17
+ secret_key_base: 5328d4806131351db2b8140e02f483491fe1d417a0078b6037f125bb5abfc3e29bc5b78eb2dbdf497811f63e091ef99cb134f30523c0d1140d483059b7ca5950
18
18
 
19
19
  # Do not keep production secrets in the repository,
20
20
  # instead read values from the environment.
@@ -1,16 +1,16 @@
1
-  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
2
-  (1.1ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1
+  (1.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
2
+  (1.0ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3
3
  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
4
4
  Migrating to CreateUsers (1)
5
5
   (0.1ms) begin transaction
6
6
  DEPRECATION WARNING: Directly inheriting from ActiveRecord::Migration is deprecated. Please specify the Rails release the migration was written for:
7
7
 
8
- class CreateUsers < ActiveRecord::Migration[4.2] (called from load at /Users/avibot/.rbenv/versions/2.3.1/bin/rake:23)
9
-  (0.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)
10
- SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "1"]]
11
-  (0.7ms) commit transaction
12
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
13
-  (0.1ms) begin transaction
14
- SQL (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", 2017-01-27 19:05:05 UTC], ["updated_at", 2017-01-27 19:05:05 UTC]]
15
-  (0.7ms) commit transaction
8
+ class CreateUsers < ActiveRecord::Migration[4.2] (called from load at /Users/aviellewolfe/.rbenv/versions/2.3.3/bin/rake:22)
9
+  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)
10
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "1"]]
11
+  (0.8ms) commit transaction
12
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
13
+  (0.0ms) begin transaction
14
+ SQL (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2017-10-20 22:39:36.065187"], ["updated_at", "2017-10-20 22:39:36.065187"]]
15
+  (0.8ms) commit transaction
16
16
  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
@@ -1,13 +1,13 @@
1
-  (1.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)
2
-  (1.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
3
-  (0.1ms) SELECT version FROM "schema_migrations"
4
-  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
5
-  (0.9ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
6
- ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
7
-  (0.0ms) begin transaction
8
- SQL (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", 2017-01-27 19:05:09 UTC], ["updated_at", 2017-01-27 19:05:09 UTC]]
9
-  (1.3ms) commit transaction
10
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", :environment], ["LIMIT", 1]]
1
+  (1.6ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)
2
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
3
+  (0.0ms) SELECT version FROM "schema_migrations"
4
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES (1)
5
+  (0.8ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
6
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
7
+  (0.1ms) begin transaction
8
+ SQL (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2017-10-20 22:39:39.500460"], ["updated_at", "2017-10-20 22:39:39.500460"]]
9
+  (0.7ms) commit transaction
10
+ ActiveRecord::InternalMetadata Load (0.0ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
11
11
   (0.0ms) begin transaction
12
12
   (0.0ms) commit transaction
13
13
  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
@@ -16,6 +16,6 @@
16
16
  UserTest: test_use_factory_of_some_railtie
17
17
  ------------------------------------------
18
18
   (0.0ms) SAVEPOINT active_record_1
19
- SQL (1.0ms) INSERT INTO "users" ("name") VALUES (?) [["name", "Artem"]]
19
+ SQL (0.4ms) INSERT INTO "users" ("name") VALUES (?) [["name", "Artem"]]
20
20
   (0.0ms) RELEASE SAVEPOINT active_record_1
21
-  (0.5ms) rollback transaction
21
+  (0.4ms) rollback transaction
@@ -4,7 +4,7 @@
4
4
  <title>The page you were looking for doesn't exist (404)</title>
5
5
  <meta name="viewport" content="width=device-width,initial-scale=1">
6
6
  <style>
7
- body {
7
+ .rails-default-error-page {
8
8
  background-color: #EFEFEF;
9
9
  color: #2E2F30;
10
10
  text-align: center;
@@ -12,13 +12,13 @@
12
12
  margin: 0;
13
13
  }
14
14
 
15
- div.dialog {
15
+ .rails-default-error-page div.dialog {
16
16
  width: 95%;
17
17
  max-width: 33em;
18
18
  margin: 4em auto 0;
19
19
  }
20
20
 
21
- div.dialog > div {
21
+ .rails-default-error-page div.dialog > div {
22
22
  border: 1px solid #CCC;
23
23
  border-right-color: #999;
24
24
  border-left-color: #999;
@@ -31,13 +31,13 @@
31
31
  box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
32
  }
33
33
 
34
- h1 {
34
+ .rails-default-error-page h1 {
35
35
  font-size: 100%;
36
36
  color: #730E15;
37
37
  line-height: 1.5em;
38
38
  }
39
39
 
40
- div.dialog > p {
40
+ .rails-default-error-page div.dialog > p {
41
41
  margin: 0 0 1em;
42
42
  padding: 1em;
43
43
  background-color: #F7F7F7;
@@ -54,7 +54,7 @@
54
54
  </style>
55
55
  </head>
56
56
 
57
- <body>
57
+ <body class="rails-default-error-page">
58
58
  <!-- This file lives in public/404.html -->
59
59
  <div class="dialog">
60
60
  <div>
@@ -4,7 +4,7 @@
4
4
  <title>The change you wanted was rejected (422)</title>
5
5
  <meta name="viewport" content="width=device-width,initial-scale=1">
6
6
  <style>
7
- body {
7
+ .rails-default-error-page {
8
8
  background-color: #EFEFEF;
9
9
  color: #2E2F30;
10
10
  text-align: center;
@@ -12,13 +12,13 @@
12
12
  margin: 0;
13
13
  }
14
14
 
15
- div.dialog {
15
+ .rails-default-error-page div.dialog {
16
16
  width: 95%;
17
17
  max-width: 33em;
18
18
  margin: 4em auto 0;
19
19
  }
20
20
 
21
- div.dialog > div {
21
+ .rails-default-error-page div.dialog > div {
22
22
  border: 1px solid #CCC;
23
23
  border-right-color: #999;
24
24
  border-left-color: #999;
@@ -31,13 +31,13 @@
31
31
  box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
32
  }
33
33
 
34
- h1 {
34
+ .rails-default-error-page h1 {
35
35
  font-size: 100%;
36
36
  color: #730E15;
37
37
  line-height: 1.5em;
38
38
  }
39
39
 
40
- div.dialog > p {
40
+ .rails-default-error-page div.dialog > p {
41
41
  margin: 0 0 1em;
42
42
  padding: 1em;
43
43
  background-color: #F7F7F7;
@@ -54,7 +54,7 @@
54
54
  </style>
55
55
  </head>
56
56
 
57
- <body>
57
+ <body class="rails-default-error-page">
58
58
  <!-- This file lives in public/422.html -->
59
59
  <div class="dialog">
60
60
  <div>