質問編集履歴

1

ソースコード追記

2019/05/25 04:31

投稿

yusuke9814
yusuke9814

スコア18

test CHANGED
File without changes
test CHANGED
@@ -26,6 +26,678 @@
26
26
 
27
27
  何卒解決策のほどご教授お願いいたします。
28
28
 
29
+
30
+
31
+ ```gemfile
32
+
33
+ source 'https://rubygems.org'
34
+
35
+ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
36
+
37
+
38
+
39
+ ruby '2.6.3'
40
+
41
+
42
+
43
+ # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
44
+
45
+ gem 'rails', '~> 5.2.3'
46
+
47
+ # Use mysql as the database for Active Record
48
+
49
+ gem 'mysql2', '>= 0.4.4', '< 0.6.0', group: :development
50
+
51
+ # Use Puma as the app server
52
+
53
+ gem 'puma', '~> 3.11'
54
+
55
+ # Use SCSS for stylesheets
56
+
57
+ gem 'sass-rails', '~> 5.0'
58
+
59
+ # Use Uglifier as compressor for JavaScript assets
60
+
61
+ gem 'uglifier', '>= 1.3.0'
62
+
63
+ # See https://github.com/rails/execjs#readme for more supported runtimes
64
+
65
+ # gem 'mini_racer', platforms: :ruby
66
+
67
+
68
+
69
+ # Use CoffeeScript for .coffee assets and views
70
+
71
+ gem 'coffee-rails', '~> 4.2'
72
+
73
+ # Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
74
+
75
+ gem 'turbolinks', '~> 5'
76
+
77
+ # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
78
+
79
+ gem 'jbuilder', '~> 2.5'
80
+
81
+ # Use Redis adapter to run Action Cable in production
82
+
83
+ # gem 'redis', '~> 4.0'
84
+
85
+ # Use ActiveModel has_secure_password
86
+
87
+ # gem 'bcrypt', '~> 3.1.7'
88
+
89
+
90
+
91
+ # Use ActiveStorage variant
92
+
93
+ # gem 'mini_magick', '~> 4.8'
94
+
95
+
96
+
97
+ # Use Capistrano for deployment
98
+
99
+ # gem 'capistrano-rails', group: :development
100
+
101
+
102
+
103
+ # Reduces boot times through caching; required in config/boot.rb
104
+
105
+ gem 'bootsnap', '>= 1.1.0', require: false
106
+
107
+
108
+
109
+ gem 'bootstrap', '~> 4.3.1'
110
+
111
+ gem 'mini_racer'
112
+
113
+ gem 'jquery-rails'
114
+
115
+
116
+
117
+ group :development, :test do
118
+
119
+ # Call 'byebug' anywhere in the code to stop execution and get a debugger console
120
+
121
+ gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
122
+
123
+ end
124
+
125
+
126
+
127
+ group :development do
128
+
129
+ # Access an interactive console on exception pages or by calling 'console' anywhere in the code.
130
+
131
+ gem 'web-console', '>= 3.3.0'
132
+
133
+ gem 'listen', '>= 3.0.5', '< 3.2'
134
+
135
+ # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
136
+
137
+ gem 'spring'
138
+
139
+ gem 'spring-watcher-listen', '~> 2.0.0'
140
+
141
+ end
142
+
143
+
144
+
145
+ group :test do
146
+
147
+ # Adds support for Capybara system testing and selenium driver
148
+
149
+ gem 'capybara', '>= 2.15'
150
+
151
+ gem 'selenium-webdriver'
152
+
153
+ # Easy installation and use of chromedriver to run system tests with Chrome
154
+
155
+ gem 'chromedriver-helper'
156
+
157
+ end
158
+
159
+
160
+
161
+ # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
162
+
163
+ gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
164
+
165
+ gem 'pg', group: :production # この1行を追加
166
+
167
+ gem 'kaminari', '~> 1.1.1'
168
+
169
+ gem 'regexp_parser', '~> 1.5.1'
170
+
171
+ ```
172
+
173
+ ```Gemfilelock
174
+
175
+ GEM
176
+
177
+ remote: https://rubygems.org/
178
+
179
+ specs:
180
+
181
+ actioncable (5.2.3)
182
+
183
+ actionpack (= 5.2.3)
184
+
185
+ nio4r (~> 2.0)
186
+
187
+ websocket-driver (>= 0.6.1)
188
+
189
+ actionmailer (5.2.3)
190
+
191
+ actionpack (= 5.2.3)
192
+
193
+ actionview (= 5.2.3)
194
+
195
+ activejob (= 5.2.3)
196
+
197
+ mail (~> 2.5, >= 2.5.4)
198
+
199
+ rails-dom-testing (~> 2.0)
200
+
201
+ actionpack (5.2.3)
202
+
203
+ actionview (= 5.2.3)
204
+
205
+ activesupport (= 5.2.3)
206
+
207
+ rack (~> 2.0)
208
+
209
+ rack-test (>= 0.6.3)
210
+
211
+ rails-dom-testing (~> 2.0)
212
+
213
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
214
+
215
+ actionview (5.2.3)
216
+
217
+ activesupport (= 5.2.3)
218
+
219
+ builder (~> 3.1)
220
+
221
+ erubi (~> 1.4)
222
+
223
+ rails-dom-testing (~> 2.0)
224
+
225
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
226
+
227
+ activejob (5.2.3)
228
+
229
+ activesupport (= 5.2.3)
230
+
231
+ globalid (>= 0.3.6)
232
+
233
+ activemodel (5.2.3)
234
+
235
+ activesupport (= 5.2.3)
236
+
237
+ activerecord (5.2.3)
238
+
239
+ activemodel (= 5.2.3)
240
+
241
+ activesupport (= 5.2.3)
242
+
243
+ arel (>= 9.0)
244
+
245
+ activestorage (5.2.3)
246
+
247
+ actionpack (= 5.2.3)
248
+
249
+ activerecord (= 5.2.3)
250
+
251
+ marcel (~> 0.3.1)
252
+
253
+ activesupport (5.2.3)
254
+
255
+ concurrent-ruby (~> 1.0, >= 1.0.2)
256
+
257
+ i18n (>= 0.7, < 2)
258
+
259
+ minitest (~> 5.1)
260
+
261
+ tzinfo (~> 1.1)
262
+
263
+ addressable (2.6.0)
264
+
265
+ public_suffix (>= 2.0.2, < 4.0)
266
+
267
+ archive-zip (0.12.0)
268
+
269
+ io-like (~> 0.3.0)
270
+
271
+ arel (9.0.0)
272
+
273
+ autoprefixer-rails (9.5.1.1)
274
+
275
+ execjs
276
+
277
+ bindex (0.7.0)
278
+
279
+ bootsnap (1.4.4)
280
+
281
+ msgpack (~> 1.0)
282
+
283
+ bootstrap (4.3.1)
284
+
285
+ autoprefixer-rails (>= 9.1.0)
286
+
287
+ popper_js (>= 1.14.3, < 2)
288
+
289
+ sassc-rails (>= 2.0.0)
290
+
291
+ builder (3.2.3)
292
+
293
+ byebug (11.0.1)
294
+
295
+ capybara (3.21.0)
296
+
297
+ addressable
298
+
299
+ mini_mime (>= 0.1.3)
300
+
301
+ nokogiri (~> 1.8)
302
+
303
+ rack (>= 1.6.0)
304
+
305
+ rack-test (>= 0.6.3)
306
+
307
+ regexp_parser (~> 1.5)
308
+
309
+ xpath (~> 3.2)
310
+
311
+ childprocess (1.0.1)
312
+
313
+ rake (< 13.0)
314
+
315
+ chromedriver-helper (2.1.1)
316
+
317
+ archive-zip (~> 0.10)
318
+
319
+ nokogiri (~> 1.8)
320
+
321
+ coffee-rails (4.2.2)
322
+
323
+ coffee-script (>= 2.2.0)
324
+
325
+ railties (>= 4.0.0)
326
+
327
+ coffee-script (2.4.1)
328
+
329
+ coffee-script-source
330
+
331
+ execjs
332
+
333
+ coffee-script-source (1.12.2)
334
+
335
+ concurrent-ruby (1.1.5)
336
+
337
+ crass (1.0.4)
338
+
339
+ erubi (1.8.0)
340
+
341
+ execjs (2.7.0)
342
+
343
+ ffi (1.11.1)
344
+
345
+ globalid (0.4.2)
346
+
347
+ activesupport (>= 4.2.0)
348
+
349
+ i18n (1.6.0)
350
+
351
+ concurrent-ruby (~> 1.0)
352
+
353
+ io-like (0.3.0)
354
+
355
+ jbuilder (2.9.1)
356
+
357
+ activesupport (>= 4.2.0)
358
+
359
+ jquery-rails (4.3.3)
360
+
361
+ rails-dom-testing (>= 1, < 3)
362
+
363
+ railties (>= 4.2.0)
364
+
365
+ thor (>= 0.14, < 2.0)
366
+
367
+ kaminari (1.1.1)
368
+
369
+ activesupport (>= 4.1.0)
370
+
371
+ kaminari-actionview (= 1.1.1)
372
+
373
+ kaminari-activerecord (= 1.1.1)
374
+
375
+ kaminari-core (= 1.1.1)
376
+
377
+ kaminari-actionview (1.1.1)
378
+
379
+ actionview
380
+
381
+ kaminari-core (= 1.1.1)
382
+
383
+ kaminari-activerecord (1.1.1)
384
+
385
+ activerecord
386
+
387
+ kaminari-core (= 1.1.1)
388
+
389
+ kaminari-core (1.1.1)
390
+
391
+ libv8 (7.3.492.27.1)
392
+
393
+ listen (3.1.5)
394
+
395
+ rb-fsevent (~> 0.9, >= 0.9.4)
396
+
397
+ rb-inotify (~> 0.9, >= 0.9.7)
398
+
399
+ ruby_dep (~> 1.2)
400
+
401
+ loofah (2.2.3)
402
+
403
+ crass (~> 1.0.2)
404
+
405
+ nokogiri (>= 1.5.9)
406
+
407
+ mail (2.7.1)
408
+
409
+ mini_mime (>= 0.1.1)
410
+
411
+ marcel (0.3.3)
412
+
413
+ mimemagic (~> 0.3.2)
414
+
415
+ method_source (0.9.2)
416
+
417
+ mimemagic (0.3.3)
418
+
419
+ mini_mime (1.0.1)
420
+
421
+ mini_portile2 (2.4.0)
422
+
423
+ mini_racer (0.2.6)
424
+
425
+ libv8 (>= 6.9.411)
426
+
427
+ minitest (5.11.3)
428
+
429
+ msgpack (1.2.10)
430
+
431
+ mysql2 (0.5.2)
432
+
433
+ nio4r (2.3.1)
434
+
435
+ nokogiri (1.10.3)
436
+
437
+ mini_portile2 (~> 2.4.0)
438
+
439
+ pg (1.1.4)
440
+
441
+ popper_js (1.14.5)
442
+
443
+ public_suffix (3.0.3)
444
+
445
+ puma (3.12.1)
446
+
447
+ rack (2.0.7)
448
+
449
+ rack-test (1.1.0)
450
+
451
+ rack (>= 1.0, < 3)
452
+
453
+ rails (5.2.3)
454
+
455
+ actioncable (= 5.2.3)
456
+
457
+ actionmailer (= 5.2.3)
458
+
459
+ actionpack (= 5.2.3)
460
+
461
+ actionview (= 5.2.3)
462
+
463
+ activejob (= 5.2.3)
464
+
465
+ activemodel (= 5.2.3)
466
+
467
+ activerecord (= 5.2.3)
468
+
469
+ activestorage (= 5.2.3)
470
+
471
+ activesupport (= 5.2.3)
472
+
473
+ bundler (>= 1.3.0)
474
+
475
+ railties (= 5.2.3)
476
+
477
+ sprockets-rails (>= 2.0.0)
478
+
479
+ rails-dom-testing (2.0.3)
480
+
481
+ activesupport (>= 4.2.0)
482
+
483
+ nokogiri (>= 1.6)
484
+
485
+ rails-html-sanitizer (1.0.4)
486
+
487
+ loofah (~> 2.2, >= 2.2.2)
488
+
489
+ railties (5.2.3)
490
+
491
+ actionpack (= 5.2.3)
492
+
493
+ activesupport (= 5.2.3)
494
+
495
+ method_source
496
+
497
+ rake (>= 0.8.7)
498
+
499
+ thor (>= 0.19.0, < 2.0)
500
+
501
+ rake (12.3.2)
502
+
503
+ rb-fsevent (0.10.3)
504
+
505
+ rb-inotify (0.10.0)
506
+
507
+ ffi (~> 1.0)
508
+
509
+ regexp_parser (1.5.1)
510
+
511
+ ruby_dep (1.5.0)
512
+
513
+ rubyzip (1.2.3)
514
+
515
+ sass (3.7.4)
516
+
517
+ sass-listen (~> 4.0.0)
518
+
519
+ sass-listen (4.0.0)
520
+
521
+ rb-fsevent (~> 0.9, >= 0.9.4)
522
+
523
+ rb-inotify (~> 0.9, >= 0.9.7)
524
+
525
+ sass-rails (5.0.7)
526
+
527
+ railties (>= 4.0.0, < 6)
528
+
529
+ sass (~> 3.1)
530
+
531
+ sprockets (>= 2.8, < 4.0)
532
+
533
+ sprockets-rails (>= 2.0, < 4.0)
534
+
535
+ tilt (>= 1.1, < 3)
536
+
537
+ sassc (2.0.1)
538
+
539
+ ffi (~> 1.9)
540
+
541
+ rake
542
+
543
+ sassc-rails (2.1.1)
544
+
545
+ railties (>= 4.0.0)
546
+
547
+ sassc (>= 2.0)
548
+
549
+ sprockets (> 3.0)
550
+
551
+ sprockets-rails
552
+
553
+ tilt
554
+
555
+ selenium-webdriver (3.142.3)
556
+
557
+ childprocess (>= 0.5, < 2.0)
558
+
559
+ rubyzip (~> 1.2, >= 1.2.2)
560
+
561
+ spring (2.0.2)
562
+
563
+ activesupport (>= 4.2)
564
+
565
+ spring-watcher-listen (2.0.1)
566
+
567
+ listen (>= 2.7, < 4.0)
568
+
569
+ spring (>= 1.2, < 3.0)
570
+
571
+ sprockets (3.7.2)
572
+
573
+ concurrent-ruby (~> 1.0)
574
+
575
+ rack (> 1, < 3)
576
+
577
+ sprockets-rails (3.2.1)
578
+
579
+ actionpack (>= 4.0)
580
+
581
+ activesupport (>= 4.0)
582
+
583
+ sprockets (>= 3.0.0)
584
+
585
+ thor (0.20.3)
586
+
587
+ thread_safe (0.3.6)
588
+
589
+ tilt (2.0.9)
590
+
591
+ turbolinks (5.2.0)
592
+
593
+ turbolinks-source (~> 5.2)
594
+
595
+ turbolinks-source (5.2.0)
596
+
597
+ tzinfo (1.2.5)
598
+
599
+ thread_safe (~> 0.1)
600
+
601
+ uglifier (4.1.20)
602
+
603
+ execjs (>= 0.3.0, < 3)
604
+
605
+ web-console (3.7.0)
606
+
607
+ actionview (>= 5.0)
608
+
609
+ activemodel (>= 5.0)
610
+
611
+ bindex (>= 0.4.0)
612
+
613
+ railties (>= 5.0)
614
+
615
+ websocket-driver (0.7.0)
616
+
617
+ websocket-extensions (>= 0.1.0)
618
+
619
+ websocket-extensions (0.1.3)
620
+
621
+ xpath (3.2.0)
622
+
623
+ nokogiri (~> 1.8)
624
+
625
+
626
+
627
+ PLATFORMS
628
+
629
+ ruby
630
+
631
+
632
+
633
+ DEPENDENCIES
634
+
635
+ bootsnap (>= 1.1.0)
636
+
637
+ bootstrap (~> 4.3.1)
638
+
639
+ byebug
640
+
641
+ capybara (>= 2.15)
642
+
643
+ chromedriver-helper
644
+
645
+ coffee-rails (~> 4.2)
646
+
647
+ jbuilder (~> 2.5)
648
+
649
+ jquery-rails
650
+
651
+ kaminari (~> 1.1.1)
652
+
653
+ listen (>= 3.0.5, < 3.2)
654
+
655
+ mini_racer
656
+
657
+ mysql2 (>= 0.4.4, < 0.6.0)
658
+
659
+ pg
660
+
661
+ puma (~> 3.11)
662
+
663
+ rails (~> 5.2.3)
664
+
665
+ regexp_parser (~> 1.5.1)
666
+
667
+ sass-rails (~> 5.0)
668
+
669
+ selenium-webdriver
670
+
671
+ spring
672
+
673
+ spring-watcher-listen (~> 2.0.0)
674
+
675
+ turbolinks (~> 5)
676
+
677
+ tzinfo-data
678
+
679
+ uglifier (>= 1.3.0)
680
+
681
+ web-console (>= 3.3.0)
682
+
683
+
684
+
685
+ RUBY VERSION
686
+
687
+ ruby 2.6.3p62
688
+
689
+
690
+
691
+ BUNDLED WITH
692
+
693
+ 1.17.2
694
+
695
+
696
+
697
+ ```
698
+
699
+
700
+
29
701
  ### ruby,rails version
30
702
 
31
703
  ruby 2.6.3