cmor_testimonials 0.0.51.pre → 0.0.52.pre

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. checksums.yaml +4 -4
  2. metadata +6 -101
  3. data/spec/dummy/Rakefile +0 -6
  4. data/spec/dummy/app/assets/config/manifest.js +0 -3
  5. data/spec/dummy/app/assets/javascripts/application.js +0 -15
  6. data/spec/dummy/app/assets/javascripts/cable.js +0 -13
  7. data/spec/dummy/app/assets/stylesheets/application.css +0 -15
  8. data/spec/dummy/app/channels/application_cable/channel.rb +0 -4
  9. data/spec/dummy/app/channels/application_cable/connection.rb +0 -4
  10. data/spec/dummy/app/controllers/application_controller.rb +0 -2
  11. data/spec/dummy/app/helpers/application_helper.rb +0 -2
  12. data/spec/dummy/app/jobs/application_job.rb +0 -2
  13. data/spec/dummy/app/mailers/application_mailer.rb +0 -4
  14. data/spec/dummy/app/models/application_record.rb +0 -3
  15. data/spec/dummy/app/views/layouts/application.html.erb +0 -15
  16. data/spec/dummy/app/views/layouts/mailer.html.erb +0 -13
  17. data/spec/dummy/app/views/layouts/mailer.text.erb +0 -1
  18. data/spec/dummy/bin/bundle +0 -3
  19. data/spec/dummy/bin/rails +0 -4
  20. data/spec/dummy/bin/rake +0 -4
  21. data/spec/dummy/bin/setup +0 -36
  22. data/spec/dummy/bin/update +0 -31
  23. data/spec/dummy/bin/yarn +0 -11
  24. data/spec/dummy/config.ru +0 -5
  25. data/spec/dummy/config/application.rb +0 -31
  26. data/spec/dummy/config/boot.rb +0 -5
  27. data/spec/dummy/config/cable.yml +0 -10
  28. data/spec/dummy/config/database.yml +0 -25
  29. data/spec/dummy/config/environment.rb +0 -5
  30. data/spec/dummy/config/environments/development.rb +0 -61
  31. data/spec/dummy/config/environments/production.rb +0 -94
  32. data/spec/dummy/config/environments/test.rb +0 -46
  33. data/spec/dummy/config/initializers/application_controller_renderer.rb +0 -8
  34. data/spec/dummy/config/initializers/assets.rb +0 -14
  35. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
  36. data/spec/dummy/config/initializers/cmor_testimonials.rb +0 -10
  37. data/spec/dummy/config/initializers/content_security_policy.rb +0 -25
  38. data/spec/dummy/config/initializers/cookies_serializer.rb +0 -5
  39. data/spec/dummy/config/initializers/filter_parameter_logging.rb +0 -4
  40. data/spec/dummy/config/initializers/i18n.rb +0 -2
  41. data/spec/dummy/config/initializers/inflections.rb +0 -16
  42. data/spec/dummy/config/initializers/mime_types.rb +0 -4
  43. data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
  44. data/spec/dummy/config/locales/en.yml +0 -33
  45. data/spec/dummy/config/puma.rb +0 -34
  46. data/spec/dummy/config/routes.rb +0 -3
  47. data/spec/dummy/config/spring.rb +0 -6
  48. data/spec/dummy/config/storage.yml +0 -34
  49. data/spec/dummy/db/development.sqlite3 +0 -0
  50. data/spec/dummy/db/migrate/20200119063530_create_active_storage_tables.active_storage.rb +0 -27
  51. data/spec/dummy/db/migrate/20200119063555_create_cmor_testimonials_categories.cmor_testimonials.rb +0 -12
  52. data/spec/dummy/db/migrate/20200119063556_create_cmor_testimonials_testimonials.cmor_testimonials.rb +0 -16
  53. data/spec/dummy/db/schema.rb +0 -57
  54. data/spec/dummy/db/test.sqlite3 +0 -0
  55. data/spec/dummy/log/development.log +0 -126
  56. data/spec/dummy/log/test.log +0 -578
  57. data/spec/dummy/package.json +0 -5
  58. data/spec/dummy/public/404.html +0 -67
  59. data/spec/dummy/public/422.html +0 -67
  60. data/spec/dummy/public/500.html +0 -66
  61. data/spec/dummy/public/apple-touch-icon-precomposed.png +0 -0
  62. data/spec/dummy/public/apple-touch-icon.png +0 -0
  63. data/spec/dummy/public/favicon.ico +0 -0
  64. data/spec/dummy/tmp/development_secret.txt +0 -1
  65. data/spec/dummy/tmp/storage/5S/ku/5SkuHECnXFuLLG5z6nKcaHXQ +0 -0
  66. data/spec/dummy/tmp/storage/5r/93/5r93FV2yGGf4L3uCenMGyYdk +0 -0
  67. data/spec/dummy/tmp/storage/6m/Db/6mDbkmxont6fafeAcpMB4A8Q +0 -0
  68. data/spec/dummy/tmp/storage/Au/AN/AuANBoDPvvg4sB96SQy8iCMH +0 -0
  69. data/spec/dummy/tmp/storage/E1/on/E1on5rh1hDWTr1WP6Kbhxdu3 +0 -0
  70. data/spec/dummy/tmp/storage/Fv/3x/Fv3xSS55puqpXgaVTon3X1zh +0 -0
  71. data/spec/dummy/tmp/storage/Kd/yW/KdyWkRohv5svkwpnHk3GUKXW +0 -0
  72. data/spec/dummy/tmp/storage/L2/Z8/L2Z8khBiRvsfGEECooibmwzW +0 -0
  73. data/spec/dummy/tmp/storage/NG/WA/NGWA8YFJrEdDVAhmc4fRbJsT +0 -0
  74. data/spec/dummy/tmp/storage/YH/6F/YH6FYWFzS62jvgfF67dSJvkS +0 -0
  75. data/spec/dummy/tmp/storage/Zt/yC/ZtyC4YZjzwSRnsGXGDrJLBh7 +0 -0
  76. data/spec/dummy/tmp/storage/df/B3/dfB3AzufS1R2iFMtXecYg5UJ +0 -0
  77. data/spec/dummy/tmp/storage/jP/Ae/jPAeMB15ifP98xfLrmQrUXKc +0 -0
  78. data/spec/dummy/tmp/storage/pP/SC/pPSCJrZzzi4oVygvCuwnnGp4 +0 -0
  79. data/spec/dummy/tmp/storage/sE/FM/sEFM27mUsQgJCijPFJF4RUqm +0 -0
  80. data/spec/dummy/tmp/storage/tT/au/tTauQj4qjUJZbin8u9FGqWPN +0 -0
  81. data/spec/dummy/tmp/storage/v8/VE/v8VEB2YXRf7poqaMvXkGEfrW +0 -0
  82. data/spec/dummy/tmp/storage/vy/8M/vy8MFSa3PhoxmW43QZ5vazNw +0 -0
  83. data/spec/factories/cmor/testimonials/categories.rb +0 -7
  84. data/spec/factories/cmor/testimonials/testimonials.rb +0 -17
  85. data/spec/models/cmor/testimonials/category_spec.rb +0 -9
  86. data/spec/models/cmor/testimonials/testimonial_spec.rb +0 -33
  87. data/spec/models/generic_spec.rb +0 -50
  88. data/spec/models/i18n_spec.rb +0 -41
  89. data/spec/rails_helper.rb +0 -63
  90. data/spec/spec_helper.rb +0 -96
  91. data/spec/support/capybara.rb +0 -1
  92. data/spec/support/factory_bot.rb +0 -9
  93. data/spec/support/pry.rb +0 -1
  94. data/spec/support/rao-shoulda_matchers.rb +0 -5
  95. data/spec/support/rao-view_helper.rb +0 -5
  96. data/spec/support/shoulda_matchers.rb +0 -9
  97. data/spec/view_helpers/cmor/testimonials/application_view_helper_spec.rb +0 -37
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 275a9a6a1aeb98fb343b1a29251ff9651f80eafd593cd680b3d0098af3f59480
4
- data.tar.gz: 87ae27318d39b2340905122df327b66f54752a5c48242628f1ed993352fdcff0
3
+ metadata.gz: 5cddb96d45900c1d7897d9cd48f23f4c0753044282ee4b2573f2ae6c28ff2044
4
+ data.tar.gz: 8ec16b7d9b83e2f27ca3ab6436d121149c1c2248a346d9df21280b2c69fd45e9
5
5
  SHA512:
6
- metadata.gz: ae4fdc382df61b269b0ab25149d13d090096151440d92e21a8ff730cbfeac1b24ba6a046125bc0151f87eff85c89a0c2ed31b363f93255101b4615a979da90a9
7
- data.tar.gz: 1c598872113ad9a55474c77296f50869d5dd423c067e5eec1505dceeda0ed69847bbc13296532becbb8587ede5148a474856abe46f98ac99bbf74c4bf11142d2
6
+ metadata.gz: 9dc0abdbcb5ac487adfc09988f6b642f7bd255d73176b1541327cedf0692b772b239126945e8419caca7ad66df9a813c0558e8af48ac1dfc51d8fc370598c987
7
+ data.tar.gz: a8e6bb0fccba9e80098f436efb7863dcf32f7bb7780945a141930da1c5320e3d13273c447251549aae3bf1ec456655d55dab8542759930778c37a3fc14fded19
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cmor_testimonials
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.51.pre
4
+ version: 0.0.52.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eugen Müller
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-03-23 00:00:00.000000000 Z
12
+ date: 2020-03-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -31,28 +31,28 @@ dependencies:
31
31
  requirements:
32
32
  - - '='
33
33
  - !ruby/object:Gem::Version
34
- version: 0.0.51.pre
34
+ version: 0.0.52.pre
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - '='
40
40
  - !ruby/object:Gem::Version
41
- version: 0.0.51.pre
41
+ version: 0.0.52.pre
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: cmor_core_frontend
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
46
  - - '='
47
47
  - !ruby/object:Gem::Version
48
- version: 0.0.51.pre
48
+ version: 0.0.52.pre
49
49
  type: :runtime
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - '='
54
54
  - !ruby/object:Gem::Version
55
- version: 0.0.51.pre
55
+ version: 0.0.52.pre
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: sqlite3
58
58
  requirement: !ruby/object:Gem::Requirement
@@ -438,103 +438,8 @@ files:
438
438
  - lib/cmor_testimonials.rb
439
439
  - lib/generators/cmor/testimonials/install/install_generator.rb
440
440
  - lib/generators/cmor/testimonials/install/templates/initializer.rb
441
- - spec/dummy/Rakefile
442
- - spec/dummy/app/assets/config/manifest.js
443
- - spec/dummy/app/assets/javascripts/application.js
444
- - spec/dummy/app/assets/javascripts/cable.js
445
- - spec/dummy/app/assets/stylesheets/application.css
446
- - spec/dummy/app/channels/application_cable/channel.rb
447
- - spec/dummy/app/channels/application_cable/connection.rb
448
- - spec/dummy/app/controllers/application_controller.rb
449
- - spec/dummy/app/helpers/application_helper.rb
450
- - spec/dummy/app/jobs/application_job.rb
451
- - spec/dummy/app/mailers/application_mailer.rb
452
- - spec/dummy/app/models/application_record.rb
453
- - spec/dummy/app/views/layouts/application.html.erb
454
- - spec/dummy/app/views/layouts/mailer.html.erb
455
- - spec/dummy/app/views/layouts/mailer.text.erb
456
- - spec/dummy/bin/bundle
457
- - spec/dummy/bin/rails
458
- - spec/dummy/bin/rake
459
- - spec/dummy/bin/setup
460
- - spec/dummy/bin/update
461
- - spec/dummy/bin/yarn
462
- - spec/dummy/config.ru
463
- - spec/dummy/config/application.rb
464
- - spec/dummy/config/boot.rb
465
- - spec/dummy/config/cable.yml
466
- - spec/dummy/config/database.yml
467
- - spec/dummy/config/environment.rb
468
- - spec/dummy/config/environments/development.rb
469
- - spec/dummy/config/environments/production.rb
470
- - spec/dummy/config/environments/test.rb
471
- - spec/dummy/config/initializers/application_controller_renderer.rb
472
- - spec/dummy/config/initializers/assets.rb
473
- - spec/dummy/config/initializers/backtrace_silencers.rb
474
- - spec/dummy/config/initializers/cmor_testimonials.rb
475
- - spec/dummy/config/initializers/content_security_policy.rb
476
- - spec/dummy/config/initializers/cookies_serializer.rb
477
- - spec/dummy/config/initializers/filter_parameter_logging.rb
478
- - spec/dummy/config/initializers/i18n.rb
479
- - spec/dummy/config/initializers/inflections.rb
480
- - spec/dummy/config/initializers/mime_types.rb
481
- - spec/dummy/config/initializers/wrap_parameters.rb
482
- - spec/dummy/config/locales/en.yml
483
- - spec/dummy/config/puma.rb
484
- - spec/dummy/config/routes.rb
485
- - spec/dummy/config/spring.rb
486
- - spec/dummy/config/storage.yml
487
- - spec/dummy/db/development.sqlite3
488
- - spec/dummy/db/migrate/20200119063530_create_active_storage_tables.active_storage.rb
489
- - spec/dummy/db/migrate/20200119063555_create_cmor_testimonials_categories.cmor_testimonials.rb
490
- - spec/dummy/db/migrate/20200119063556_create_cmor_testimonials_testimonials.cmor_testimonials.rb
491
- - spec/dummy/db/schema.rb
492
- - spec/dummy/db/test.sqlite3
493
- - spec/dummy/log/development.log
494
- - spec/dummy/log/test.log
495
- - spec/dummy/package.json
496
- - spec/dummy/public/404.html
497
- - spec/dummy/public/422.html
498
- - spec/dummy/public/500.html
499
- - spec/dummy/public/apple-touch-icon-precomposed.png
500
- - spec/dummy/public/apple-touch-icon.png
501
- - spec/dummy/public/favicon.ico
502
- - spec/dummy/tmp/development_secret.txt
503
- - spec/dummy/tmp/storage/5S/ku/5SkuHECnXFuLLG5z6nKcaHXQ
504
- - spec/dummy/tmp/storage/5r/93/5r93FV2yGGf4L3uCenMGyYdk
505
- - spec/dummy/tmp/storage/6m/Db/6mDbkmxont6fafeAcpMB4A8Q
506
- - spec/dummy/tmp/storage/Au/AN/AuANBoDPvvg4sB96SQy8iCMH
507
- - spec/dummy/tmp/storage/E1/on/E1on5rh1hDWTr1WP6Kbhxdu3
508
- - spec/dummy/tmp/storage/Fv/3x/Fv3xSS55puqpXgaVTon3X1zh
509
- - spec/dummy/tmp/storage/Kd/yW/KdyWkRohv5svkwpnHk3GUKXW
510
- - spec/dummy/tmp/storage/L2/Z8/L2Z8khBiRvsfGEECooibmwzW
511
- - spec/dummy/tmp/storage/NG/WA/NGWA8YFJrEdDVAhmc4fRbJsT
512
- - spec/dummy/tmp/storage/YH/6F/YH6FYWFzS62jvgfF67dSJvkS
513
- - spec/dummy/tmp/storage/Zt/yC/ZtyC4YZjzwSRnsGXGDrJLBh7
514
- - spec/dummy/tmp/storage/df/B3/dfB3AzufS1R2iFMtXecYg5UJ
515
- - spec/dummy/tmp/storage/jP/Ae/jPAeMB15ifP98xfLrmQrUXKc
516
- - spec/dummy/tmp/storage/pP/SC/pPSCJrZzzi4oVygvCuwnnGp4
517
- - spec/dummy/tmp/storage/sE/FM/sEFM27mUsQgJCijPFJF4RUqm
518
- - spec/dummy/tmp/storage/tT/au/tTauQj4qjUJZbin8u9FGqWPN
519
- - spec/dummy/tmp/storage/v8/VE/v8VEB2YXRf7poqaMvXkGEfrW
520
- - spec/dummy/tmp/storage/vy/8M/vy8MFSa3PhoxmW43QZ5vazNw
521
- - spec/factories/cmor/testimonials/categories.rb
522
- - spec/factories/cmor/testimonials/testimonials.rb
523
441
  - spec/files/cmor/testimonials/testimonials/enerbunny.png
524
442
  - spec/files/cmor/testimonials/testimonials/homer.png
525
- - spec/models/cmor/testimonials/category_spec.rb
526
- - spec/models/cmor/testimonials/testimonial_spec.rb
527
- - spec/models/generic_spec.rb
528
- - spec/models/i18n_spec.rb
529
- - spec/rails_helper.rb
530
- - spec/spec_helper.rb
531
- - spec/support/capybara.rb
532
- - spec/support/factory_bot.rb
533
- - spec/support/pry.rb
534
- - spec/support/rao-shoulda_matchers.rb
535
- - spec/support/rao-view_helper.rb
536
- - spec/support/shoulda_matchers.rb
537
- - spec/view_helpers/cmor/testimonials/application_view_helper_spec.rb
538
443
  homepage: https://github.com/content-management-on-rails
539
444
  licenses:
540
445
  - MIT
data/spec/dummy/Rakefile DELETED
@@ -1,6 +0,0 @@
1
- # Add your own tasks in files placed in lib/tasks ending in .rake,
2
- # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
-
4
- require_relative 'config/application'
5
-
6
- Rails.application.load_tasks
@@ -1,3 +0,0 @@
1
- //= link_tree ../images
2
- //= link_directory ../javascripts .js
3
- //= link_directory ../stylesheets .css
@@ -1,15 +0,0 @@
1
- // This is a manifest file that'll be compiled into application.js, which will include all the files
2
- // listed below.
3
- //
4
- // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
- // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
6
- //
7
- // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
- // compiled file. JavaScript code in this file should be added after the last require_* statement.
9
- //
10
- // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
11
- // about supported directives.
12
- //
13
- //= require rails-ujs
14
- //= require activestorage
15
- //= require_tree .
@@ -1,13 +0,0 @@
1
- // Action Cable provides the framework to deal with WebSockets in Rails.
2
- // You can generate new channels where WebSocket features live using the `rails generate channel` command.
3
- //
4
- //= require action_cable
5
- //= require_self
6
- //= require_tree ./channels
7
-
8
- (function() {
9
- this.App || (this.App = {});
10
-
11
- App.cable = ActionCable.createConsumer();
12
-
13
- }).call(this);
@@ -1,15 +0,0 @@
1
- /*
2
- * This is a manifest file that'll be compiled into application.css, which will include all the files
3
- * listed below.
4
- *
5
- * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
- * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
7
- *
8
- * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
- * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
10
- * files in this directory. Styles in this file should be added after the last require_* statement.
11
- * It is generally better to create a new file per style scope.
12
- *
13
- *= require_tree .
14
- *= require_self
15
- */
@@ -1,4 +0,0 @@
1
- module ApplicationCable
2
- class Channel < ActionCable::Channel::Base
3
- end
4
- end
@@ -1,4 +0,0 @@
1
- module ApplicationCable
2
- class Connection < ActionCable::Connection::Base
3
- end
4
- end
@@ -1,2 +0,0 @@
1
- class ApplicationController < ActionController::Base
2
- end
@@ -1,2 +0,0 @@
1
- module ApplicationHelper
2
- end
@@ -1,2 +0,0 @@
1
- class ApplicationJob < ActiveJob::Base
2
- end
@@ -1,4 +0,0 @@
1
- class ApplicationMailer < ActionMailer::Base
2
- default from: 'from@example.com'
3
- layout 'mailer'
4
- end
@@ -1,3 +0,0 @@
1
- class ApplicationRecord < ActiveRecord::Base
2
- self.abstract_class = true
3
- end
@@ -1,15 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>Dummy</title>
5
- <%= csrf_meta_tags %>
6
- <%= csp_meta_tag %>
7
-
8
- <%= stylesheet_link_tag 'application', media: 'all' %>
9
- <%= javascript_include_tag 'application' %>
10
- </head>
11
-
12
- <body>
13
- <%= yield %>
14
- </body>
15
- </html>
@@ -1,13 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5
- <style>
6
- /* Email styles need to be inline */
7
- </style>
8
- </head>
9
-
10
- <body>
11
- <%= yield %>
12
- </body>
13
- </html>
@@ -1 +0,0 @@
1
- <%= yield %>
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
3
- load Gem.bin_path('bundler', 'bundle')
data/spec/dummy/bin/rails DELETED
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env ruby
2
- APP_PATH = File.expand_path('../config/application', __dir__)
3
- require_relative '../config/boot'
4
- require 'rails/commands'
data/spec/dummy/bin/rake DELETED
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require_relative '../config/boot'
3
- require 'rake'
4
- Rake.application.run
data/spec/dummy/bin/setup DELETED
@@ -1,36 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require 'fileutils'
3
- include FileUtils
4
-
5
- # path to your application root.
6
- APP_ROOT = File.expand_path('..', __dir__)
7
-
8
- def system!(*args)
9
- system(*args) || abort("\n== Command #{args} failed ==")
10
- end
11
-
12
- chdir APP_ROOT do
13
- # This script is a starting point to setup your application.
14
- # Add necessary setup steps to this file.
15
-
16
- puts '== Installing dependencies =='
17
- system! 'gem install bundler --conservative'
18
- system('bundle check') || system!('bundle install')
19
-
20
- # Install JavaScript dependencies if using Yarn
21
- # system('bin/yarn')
22
-
23
- # puts "\n== Copying sample files =="
24
- # unless File.exist?('config/database.yml')
25
- # cp 'config/database.yml.sample', 'config/database.yml'
26
- # end
27
-
28
- puts "\n== Preparing database =="
29
- system! 'bin/rails db:setup'
30
-
31
- puts "\n== Removing old logs and tempfiles =="
32
- system! 'bin/rails log:clear tmp:clear'
33
-
34
- puts "\n== Restarting application server =="
35
- system! 'bin/rails restart'
36
- end
@@ -1,31 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require 'fileutils'
3
- include FileUtils
4
-
5
- # path to your application root.
6
- APP_ROOT = File.expand_path('..', __dir__)
7
-
8
- def system!(*args)
9
- system(*args) || abort("\n== Command #{args} failed ==")
10
- end
11
-
12
- chdir APP_ROOT do
13
- # This script is a way to update your development environment automatically.
14
- # Add necessary update steps to this file.
15
-
16
- puts '== Installing dependencies =='
17
- system! 'gem install bundler --conservative'
18
- system('bundle check') || system!('bundle install')
19
-
20
- # Install JavaScript dependencies if using Yarn
21
- # system('bin/yarn')
22
-
23
- puts "\n== Updating database =="
24
- system! 'bin/rails db:migrate'
25
-
26
- puts "\n== Removing old logs and tempfiles =="
27
- system! 'bin/rails log:clear tmp:clear'
28
-
29
- puts "\n== Restarting application server =="
30
- system! 'bin/rails restart'
31
- end
data/spec/dummy/bin/yarn DELETED
@@ -1,11 +0,0 @@
1
- #!/usr/bin/env ruby
2
- APP_ROOT = File.expand_path('..', __dir__)
3
- Dir.chdir(APP_ROOT) do
4
- begin
5
- exec "yarnpkg", *ARGV
6
- rescue Errno::ENOENT
7
- $stderr.puts "Yarn executable was not detected in the system."
8
- $stderr.puts "Download Yarn at https://yarnpkg.com/en/docs/install"
9
- exit 1
10
- end
11
- end
data/spec/dummy/config.ru DELETED
@@ -1,5 +0,0 @@
1
- # This file is used by Rack-based servers to start the application.
2
-
3
- require_relative 'config/environment'
4
-
5
- run Rails.application
@@ -1,31 +0,0 @@
1
- require_relative 'boot'
2
-
3
- require "rails"
4
- # Pick the frameworks you want:
5
- require "active_model/railtie"
6
- require "active_job/railtie"
7
- require "active_record/railtie"
8
- require "active_storage/engine"
9
- require "action_controller/railtie"
10
- require "action_mailer/railtie"
11
- require "action_view/railtie"
12
- require "action_cable/engine"
13
- require "sprockets/railtie"
14
- # require "rails/test_unit/railtie"
15
-
16
- Bundler.require(*Rails.groups)
17
- require 'rails-i18n'
18
-
19
- require "cmor_testimonials"
20
-
21
- module Dummy
22
- class Application < Rails::Application
23
- # Initialize configuration defaults for originally generated Rails version.
24
- config.load_defaults 5.2
25
-
26
- # Settings in config/environments/* take precedence over those specified here.
27
- # Application configuration can go into files in config/initializers
28
- # -- all .rb files in that directory are automatically loaded after loading
29
- # the framework and any gems in your application.
30
- end
31
- end
@@ -1,5 +0,0 @@
1
- # Set up gems listed in the Gemfile.
2
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../Gemfile', __dir__)
3
-
4
- require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
5
- $LOAD_PATH.unshift File.expand_path('../../../lib', __dir__)