preserve 1.0.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/{MIT-LICENSE → LICENSE} +0 -0
- data/README.md +50 -32
- data/Rakefile +1 -1
- data/lib/preserve.rb +6 -29
- data/lib/preserve/callback.rb +72 -0
- data/lib/preserve/compatibility.rb +18 -0
- data/lib/preserve/extension.rb +16 -0
- data/lib/preserve/session_key.rb +27 -0
- data/lib/preserve/version.rb +1 -1
- data/spec/dummy/common/app/controllers/admin/parameters_controller.rb +7 -0
- data/spec/dummy/common/app/controllers/application_controller.rb +7 -0
- data/spec/dummy/common/app/controllers/parameters_controller.rb +9 -0
- data/spec/dummy/common/config/routes.rb +7 -0
- data/spec/dummy/rails-3/README.rdoc +261 -0
- data/spec/dummy/rails-3/Rakefile +7 -0
- data/spec/dummy/rails-3/app/assets/javascripts/application.js +15 -0
- data/spec/dummy/rails-3/app/assets/stylesheets/application.css +13 -0
- data/spec/dummy/rails-3/app/controllers/admin/parameters_controller.rb +1 -0
- data/spec/dummy/rails-3/app/controllers/application_controller.rb +1 -0
- data/spec/dummy/rails-3/app/controllers/parameters_controller.rb +1 -0
- data/spec/dummy/{app → rails-3/app}/helpers/application_helper.rb +0 -0
- data/spec/dummy/rails-3/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/rails-3/config.ru +4 -0
- data/spec/dummy/rails-3/config/application.rb +65 -0
- data/spec/dummy/rails-3/config/boot.rb +10 -0
- data/spec/dummy/rails-3/config/database.yml +25 -0
- data/spec/dummy/rails-3/config/environment.rb +5 -0
- data/spec/dummy/rails-3/config/environments/development.rb +37 -0
- data/spec/dummy/rails-3/config/environments/production.rb +67 -0
- data/spec/dummy/rails-3/config/environments/test.rb +37 -0
- data/spec/dummy/{config → rails-3/config}/initializers/backtrace_silencers.rb +0 -0
- data/spec/dummy/rails-3/config/initializers/inflections.rb +15 -0
- data/spec/dummy/rails-3/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/rails-3/config/initializers/secret_token.rb +7 -0
- data/spec/dummy/rails-3/config/initializers/session_store.rb +8 -0
- data/spec/dummy/rails-3/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/rails-3/config/locales/en.yml +5 -0
- data/spec/dummy/rails-3/config/routes.rb +1 -0
- data/spec/dummy/{db → rails-3/db}/test.sqlite3 +0 -0
- data/spec/dummy/rails-3/log/development.log +5 -0
- data/spec/dummy/rails-3/log/test.log +7777 -0
- data/spec/dummy/rails-3/public/404.html +26 -0
- data/spec/dummy/rails-3/public/422.html +26 -0
- data/spec/dummy/rails-3/public/500.html +25 -0
- data/spec/dummy/{public → rails-3/public}/favicon.ico +0 -0
- data/spec/dummy/rails-3/script/rails +6 -0
- data/spec/dummy/{README.rdoc → rails-4/README.rdoc} +0 -0
- data/spec/dummy/{Rakefile → rails-4/Rakefile} +0 -0
- data/spec/dummy/{app → rails-4/app}/assets/javascripts/application.js +0 -0
- data/spec/dummy/{app → rails-4/app}/assets/stylesheets/application.css +0 -0
- data/spec/dummy/rails-4/app/controllers/admin/parameters_controller.rb +1 -0
- data/spec/dummy/rails-4/app/controllers/application_controller.rb +1 -0
- data/spec/dummy/rails-4/app/controllers/parameters_controller.rb +1 -0
- data/spec/dummy/rails-4/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/{app → rails-4/app}/views/layouts/application.html.erb +0 -0
- data/spec/dummy/{bin → rails-4/bin}/bundle +0 -0
- data/spec/dummy/{bin → rails-4/bin}/rails +0 -0
- data/spec/dummy/{bin → rails-4/bin}/rake +0 -0
- data/spec/dummy/{bin → rails-4/bin}/setup +0 -0
- data/spec/dummy/{config.ru → rails-4/config.ru} +0 -0
- data/spec/dummy/{config → rails-4/config}/application.rb +1 -0
- data/spec/dummy/{config → rails-4/config}/boot.rb +0 -0
- data/spec/dummy/{config → rails-4/config}/database.yml +0 -0
- data/spec/dummy/{config → rails-4/config}/environment.rb +0 -0
- data/spec/dummy/{config → rails-4/config}/environments/development.rb +0 -0
- data/spec/dummy/{config → rails-4/config}/environments/production.rb +0 -0
- data/spec/dummy/{config → rails-4/config}/environments/test.rb +0 -0
- data/spec/dummy/{config → rails-4/config}/initializers/assets.rb +0 -0
- data/spec/dummy/rails-4/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/{config → rails-4/config}/initializers/cookies_serializer.rb +0 -0
- data/spec/dummy/{config → rails-4/config}/initializers/filter_parameter_logging.rb +0 -0
- data/spec/dummy/{config → rails-4/config}/initializers/inflections.rb +0 -0
- data/spec/dummy/{config → rails-4/config}/initializers/mime_types.rb +0 -0
- data/spec/dummy/{config → rails-4/config}/initializers/session_store.rb +0 -0
- data/spec/dummy/rails-4/config/initializers/to_time_preserves_timezone.rb +10 -0
- data/spec/dummy/{config → rails-4/config}/initializers/wrap_parameters.rb +0 -0
- data/spec/dummy/{config → rails-4/config}/locales/en.yml +0 -0
- data/spec/dummy/rails-4/config/routes.rb +1 -0
- data/spec/dummy/{config → rails-4/config}/secrets.yml +2 -2
- data/spec/dummy/{public → rails-4/public}/404.html +0 -0
- data/spec/dummy/{public → rails-4/public}/422.html +0 -0
- data/spec/dummy/{public → rails-4/public}/500.html +0 -0
- data/spec/dummy/rails-4/public/favicon.ico +0 -0
- data/spec/dummy/rails-5/Rakefile +6 -0
- data/spec/dummy/rails-5/app/assets/config/manifest.js +3 -0
- data/spec/dummy/rails-5/app/assets/javascripts/application.js +15 -0
- data/spec/dummy/rails-5/app/assets/javascripts/cable.js +13 -0
- data/spec/dummy/rails-5/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/rails-5/app/channels/application_cable/channel.rb +4 -0
- data/spec/dummy/rails-5/app/channels/application_cable/connection.rb +4 -0
- data/spec/dummy/rails-5/app/controllers/admin/parameters_controller.rb +1 -0
- data/spec/dummy/rails-5/app/controllers/application_controller.rb +1 -0
- data/spec/dummy/rails-5/app/controllers/parameters_controller.rb +1 -0
- data/spec/dummy/rails-5/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/rails-5/app/jobs/application_job.rb +2 -0
- data/spec/dummy/rails-5/app/mailers/application_mailer.rb +4 -0
- data/spec/dummy/rails-5/app/models/application_record.rb +3 -0
- data/spec/dummy/rails-5/app/views/layouts/application.html.erb +15 -0
- data/spec/dummy/rails-5/app/views/layouts/mailer.html.erb +13 -0
- data/spec/dummy/rails-5/app/views/layouts/mailer.text.erb +1 -0
- data/spec/dummy/rails-5/bin/bundle +3 -0
- data/spec/dummy/rails-5/bin/rails +4 -0
- data/spec/dummy/rails-5/bin/rake +4 -0
- data/spec/dummy/rails-5/bin/setup +36 -0
- data/spec/dummy/rails-5/bin/update +31 -0
- data/spec/dummy/rails-5/bin/yarn +11 -0
- data/spec/dummy/rails-5/config.ru +5 -0
- data/spec/dummy/rails-5/config/application.rb +19 -0
- data/spec/dummy/rails-5/config/boot.rb +5 -0
- data/spec/dummy/rails-5/config/cable.yml +10 -0
- data/spec/dummy/rails-5/config/database.yml +25 -0
- data/spec/dummy/rails-5/config/environment.rb +5 -0
- data/spec/dummy/rails-5/config/environments/development.rb +61 -0
- data/spec/dummy/rails-5/config/environments/production.rb +94 -0
- data/spec/dummy/rails-5/config/environments/test.rb +46 -0
- data/spec/dummy/rails-5/config/initializers/application_controller_renderer.rb +8 -0
- data/spec/dummy/rails-5/config/initializers/assets.rb +14 -0
- data/spec/dummy/rails-5/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/rails-5/config/initializers/content_security_policy.rb +25 -0
- data/spec/dummy/rails-5/config/initializers/cookies_serializer.rb +5 -0
- data/spec/dummy/rails-5/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/rails-5/config/initializers/inflections.rb +16 -0
- data/spec/dummy/rails-5/config/initializers/mime_types.rb +4 -0
- data/spec/dummy/rails-5/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/rails-5/config/locales/en.yml +33 -0
- data/spec/dummy/rails-5/config/puma.rb +37 -0
- data/spec/dummy/rails-5/config/routes.rb +1 -0
- data/spec/dummy/rails-5/config/spring.rb +6 -0
- data/spec/dummy/rails-5/config/storage.yml +34 -0
- data/spec/dummy/rails-5/db/test.sqlite3 +0 -0
- data/spec/dummy/rails-5/log/test.log +119 -0
- data/spec/dummy/rails-5/package.json +5 -0
- data/spec/dummy/rails-5/public/404.html +67 -0
- data/spec/dummy/rails-5/public/422.html +67 -0
- data/spec/dummy/rails-5/public/500.html +66 -0
- data/spec/dummy/rails-5/public/apple-touch-icon-precomposed.png +0 -0
- data/spec/dummy/rails-5/public/apple-touch-icon.png +0 -0
- data/spec/dummy/rails-5/public/favicon.ico +0 -0
- data/spec/dummy/rails-5/tmp/development_secret.txt +1 -0
- data/spec/dummy/rails-6/Rakefile +6 -0
- data/spec/dummy/rails-6/app/assets/config/manifest.js +2 -0
- data/spec/dummy/rails-6/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/rails-6/app/channels/application_cable/channel.rb +4 -0
- data/spec/dummy/rails-6/app/channels/application_cable/connection.rb +4 -0
- data/spec/dummy/rails-6/app/controllers/admin/parameters_controller.rb +1 -0
- data/spec/dummy/rails-6/app/controllers/application_controller.rb +1 -0
- data/spec/dummy/rails-6/app/controllers/parameters_controller.rb +1 -0
- data/spec/dummy/rails-6/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/rails-6/app/javascript/packs/application.js +15 -0
- data/spec/dummy/rails-6/app/jobs/application_job.rb +7 -0
- data/spec/dummy/rails-6/app/mailers/application_mailer.rb +4 -0
- data/spec/dummy/rails-6/app/models/application_record.rb +3 -0
- data/spec/dummy/rails-6/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/rails-6/app/views/layouts/mailer.html.erb +13 -0
- data/spec/dummy/rails-6/app/views/layouts/mailer.text.erb +1 -0
- data/spec/dummy/rails-6/bin/rails +4 -0
- data/spec/dummy/rails-6/bin/rake +4 -0
- data/spec/dummy/rails-6/bin/setup +33 -0
- data/spec/dummy/rails-6/config.ru +5 -0
- data/spec/dummy/rails-6/config/application.rb +19 -0
- data/spec/dummy/rails-6/config/boot.rb +5 -0
- data/spec/dummy/rails-6/config/cable.yml +10 -0
- data/spec/dummy/rails-6/config/database.yml +25 -0
- data/spec/dummy/rails-6/config/environment.rb +5 -0
- data/spec/dummy/rails-6/config/environments/development.rb +62 -0
- data/spec/dummy/rails-6/config/environments/production.rb +112 -0
- data/spec/dummy/rails-6/config/environments/test.rb +49 -0
- data/spec/dummy/rails-6/config/initializers/application_controller_renderer.rb +8 -0
- data/spec/dummy/rails-6/config/initializers/assets.rb +12 -0
- data/spec/dummy/rails-6/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/rails-6/config/initializers/content_security_policy.rb +28 -0
- data/spec/dummy/rails-6/config/initializers/cookies_serializer.rb +5 -0
- data/spec/dummy/rails-6/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/rails-6/config/initializers/inflections.rb +16 -0
- data/spec/dummy/rails-6/config/initializers/mime_types.rb +4 -0
- data/spec/dummy/rails-6/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/rails-6/config/locales/en.yml +33 -0
- data/spec/dummy/rails-6/config/puma.rb +38 -0
- data/spec/dummy/rails-6/config/routes.rb +1 -0
- data/spec/dummy/rails-6/config/spring.rb +6 -0
- data/spec/dummy/rails-6/config/storage.yml +34 -0
- data/spec/dummy/rails-6/db/development.sqlite3 +0 -0
- data/spec/dummy/rails-6/db/test.sqlite3 +0 -0
- data/spec/dummy/rails-6/log/development.log +2332 -0
- data/spec/dummy/rails-6/log/test.log +16735 -0
- data/spec/dummy/rails-6/public/404.html +67 -0
- data/spec/dummy/rails-6/public/422.html +67 -0
- data/spec/dummy/rails-6/public/500.html +66 -0
- data/spec/dummy/rails-6/public/apple-touch-icon-precomposed.png +0 -0
- data/spec/dummy/rails-6/public/apple-touch-icon.png +0 -0
- data/spec/dummy/rails-6/public/favicon.ico +0 -0
- data/spec/dummy/rails-6/tmp/development_secret.txt +1 -0
- data/spec/preserve/session_key_spec.rb +31 -0
- data/spec/preserve_spec.rb +78 -20
- data/spec/spec_helper.rb +11 -5
- data/spec/support/legacy_helpers.rb +7 -0
- data/spec/support/request_helpers.rb +14 -2
- metadata +425 -83
- data/spec/dummy/app/controllers/application_controller.rb +0 -5
- data/spec/dummy/app/controllers/parameters_controller.rb +0 -19
- data/spec/dummy/config/routes.rb +0 -3
- data/spec/dummy/log/test.log +0 -6954
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
|
5
|
+
<style type="text/css">
|
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
|
7
|
+
div.dialog {
|
|
8
|
+
width: 25em;
|
|
9
|
+
padding: 0 4em;
|
|
10
|
+
margin: 4em auto 0 auto;
|
|
11
|
+
border: 1px solid #ccc;
|
|
12
|
+
border-right-color: #999;
|
|
13
|
+
border-bottom-color: #999;
|
|
14
|
+
}
|
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
|
16
|
+
</style>
|
|
17
|
+
</head>
|
|
18
|
+
|
|
19
|
+
<body>
|
|
20
|
+
<!-- This file lives in public/404.html -->
|
|
21
|
+
<div class="dialog">
|
|
22
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
|
23
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
|
24
|
+
</div>
|
|
25
|
+
</body>
|
|
26
|
+
</html>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
|
5
|
+
<style type="text/css">
|
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
|
7
|
+
div.dialog {
|
|
8
|
+
width: 25em;
|
|
9
|
+
padding: 0 4em;
|
|
10
|
+
margin: 4em auto 0 auto;
|
|
11
|
+
border: 1px solid #ccc;
|
|
12
|
+
border-right-color: #999;
|
|
13
|
+
border-bottom-color: #999;
|
|
14
|
+
}
|
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
|
16
|
+
</style>
|
|
17
|
+
</head>
|
|
18
|
+
|
|
19
|
+
<body>
|
|
20
|
+
<!-- This file lives in public/422.html -->
|
|
21
|
+
<div class="dialog">
|
|
22
|
+
<h1>The change you wanted was rejected.</h1>
|
|
23
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
|
24
|
+
</div>
|
|
25
|
+
</body>
|
|
26
|
+
</html>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
|
5
|
+
<style type="text/css">
|
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
|
7
|
+
div.dialog {
|
|
8
|
+
width: 25em;
|
|
9
|
+
padding: 0 4em;
|
|
10
|
+
margin: 4em auto 0 auto;
|
|
11
|
+
border: 1px solid #ccc;
|
|
12
|
+
border-right-color: #999;
|
|
13
|
+
border-bottom-color: #999;
|
|
14
|
+
}
|
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
|
16
|
+
</style>
|
|
17
|
+
</head>
|
|
18
|
+
|
|
19
|
+
<body>
|
|
20
|
+
<!-- This file lives in public/500.html -->
|
|
21
|
+
<div class="dialog">
|
|
22
|
+
<h1>We're sorry, but something went wrong.</h1>
|
|
23
|
+
</div>
|
|
24
|
+
</body>
|
|
25
|
+
</html>
|
|
File without changes
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
|
3
|
+
|
|
4
|
+
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
|
5
|
+
require File.expand_path('../../config/boot', __FILE__)
|
|
6
|
+
require 'rails/commands'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
../../../../common/app/controllers/admin/parameters_controller.rb
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
../../../common/app/controllers/application_controller.rb
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
../../../common/app/controllers/parameters_controller.rb
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
|
2
|
+
|
|
3
|
+
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
|
4
|
+
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
|
|
5
|
+
|
|
6
|
+
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
|
|
7
|
+
# Rails.backtrace_cleaner.remove_silencers!
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
|
2
|
+
|
|
3
|
+
# Preserve the timezone of the receiver when calling to `to_time`.
|
|
4
|
+
# Ruby 2.4 will change the behavior of `to_time` to preserve the timezone
|
|
5
|
+
# when converting to an instance of `Time` instead of the previous behavior
|
|
6
|
+
# of converting to the local system timezone.
|
|
7
|
+
#
|
|
8
|
+
# Rails 5.0 introduced this config option so that apps made with earlier
|
|
9
|
+
# versions of Rails are not affected when upgrading.
|
|
10
|
+
ActiveSupport.to_time_preserves_timezone = true
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
../../common/config/routes.rb
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
# if you're sharing your code publicly.
|
|
12
12
|
|
|
13
13
|
development:
|
|
14
|
-
secret_key_base:
|
|
14
|
+
secret_key_base: 96c13a1d2215eac878b99791a2272765dc4bf344b07b696a1cc4db9602713a0d187fc9d9c616e92dd650052edec6d7ed22d56e948e224e316595ae805645bdab
|
|
15
15
|
|
|
16
16
|
test:
|
|
17
|
-
secret_key_base:
|
|
17
|
+
secret_key_base: 248f91cfef01fbb6bd9023bc26ba5f080e0cbbf4afe65b44d93f61ad60c8ceaef7d1628a30a1db596b824920e5e15648b09e4f1040f842df88f7fe68d4883c32
|
|
18
18
|
|
|
19
19
|
# Do not keep production secrets in the repository,
|
|
20
20
|
# instead read values from the environment.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,15 @@
|
|
|
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 .
|
|
@@ -0,0 +1,13 @@
|
|
|
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);
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
../../../../common/app/controllers/admin/parameters_controller.rb
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
../../../common/app/controllers/application_controller.rb
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
../../../common/app/controllers/parameters_controller.rb
|
|
@@ -0,0 +1,15 @@
|
|
|
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>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<%= yield %>
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|