backy_rb 0.1.3 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.backyrc.example +17 -0
- data/CHANGELOG.md +3 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +134 -1
- data/README.md +69 -11
- data/{backy.gemspec → backy_rb.gemspec} +5 -2
- data/bin/backy +4 -0
- data/dummy/psql/Gemfile +0 -34
- data/lib/backy/cli.rb +88 -0
- data/lib/backy/configuration.rb +65 -2
- data/lib/backy/db.rb +1 -0
- data/lib/backy/list.rb +1 -1
- data/lib/backy/logger.rb +27 -0
- data/lib/backy/pg_dump.rb +60 -6
- data/lib/backy/pg_restore.rb +73 -7
- data/lib/backy/version.rb +1 -1
- data/lib/{backy.rb → backy_rb.rb} +15 -0
- metadata +53 -61
- data/dummy/psql/.gitattributes +0 -7
- data/dummy/psql/.gitignore +0 -22
- data/dummy/psql/.ruby-version +0 -1
- data/dummy/psql/Gemfile.lock +0 -207
- data/dummy/psql/README.md +0 -24
- data/dummy/psql/Rakefile +0 -6
- data/dummy/psql/app/assets/config/manifest.js +0 -2
- data/dummy/psql/app/assets/images/.keep +0 -0
- data/dummy/psql/app/assets/stylesheets/application.css +0 -15
- data/dummy/psql/app/controllers/application_controller.rb +0 -2
- data/dummy/psql/app/controllers/concerns/.keep +0 -0
- data/dummy/psql/app/controllers/posts_controller.rb +0 -59
- data/dummy/psql/app/helpers/application_helper.rb +0 -2
- data/dummy/psql/app/helpers/posts_helper.rb +0 -2
- data/dummy/psql/app/models/application_record.rb +0 -3
- data/dummy/psql/app/models/concerns/.keep +0 -0
- data/dummy/psql/app/models/post.rb +0 -2
- data/dummy/psql/app/views/layouts/application.html.erb +0 -15
- data/dummy/psql/app/views/posts/_form.html.erb +0 -27
- data/dummy/psql/app/views/posts/_post.html.erb +0 -12
- data/dummy/psql/app/views/posts/edit.html.erb +0 -10
- data/dummy/psql/app/views/posts/index.html.erb +0 -14
- data/dummy/psql/app/views/posts/new.html.erb +0 -9
- data/dummy/psql/app/views/posts/show.html.erb +0 -10
- data/dummy/psql/bin/bundle +0 -109
- data/dummy/psql/bin/rails +0 -4
- data/dummy/psql/bin/rake +0 -4
- data/dummy/psql/bin/setup +0 -33
- data/dummy/psql/config/application.rb +0 -43
- data/dummy/psql/config/boot.rb +0 -3
- data/dummy/psql/config/credentials.yml.enc +0 -1
- data/dummy/psql/config/database.yml +0 -87
- data/dummy/psql/config/environment.rb +0 -5
- data/dummy/psql/config/environments/development.rb +0 -62
- data/dummy/psql/config/environments/production.rb +0 -75
- data/dummy/psql/config/environments/test.rb +0 -50
- data/dummy/psql/config/locales/en.yml +0 -33
- data/dummy/psql/config/master.key +0 -1
- data/dummy/psql/config/puma.rb +0 -43
- data/dummy/psql/config/routes.rb +0 -7
- data/dummy/psql/config.ru +0 -6
- data/dummy/psql/db/migrate/20230330203226_create_posts.rb +0 -10
- data/dummy/psql/db/schema.rb +0 -23
- data/dummy/psql/db/seeds.rb +0 -8
- data/dummy/psql/log/.keep +0 -0
- data/dummy/psql/public/404.html +0 -67
- data/dummy/psql/public/422.html +0 -67
- data/dummy/psql/public/500.html +0 -66
- data/dummy/psql/public/apple-touch-icon-precomposed.png +0 -0
- data/dummy/psql/public/apple-touch-icon.png +0 -0
- data/dummy/psql/public/favicon.ico +0 -0
- data/dummy/psql/public/robots.txt +0 -1
- data/dummy/psql/tmp/.keep +0 -0
- data/dummy/psql/tmp/pids/.keep +0 -0
@@ -1,50 +0,0 @@
|
|
1
|
-
require "active_support/core_ext/integer/time"
|
2
|
-
|
3
|
-
# The test environment is used exclusively to run your application's
|
4
|
-
# test suite. You never need to work with it otherwise. Remember that
|
5
|
-
# your test database is "scratch space" for the test suite and is wiped
|
6
|
-
# and recreated between test runs. Don't rely on the data there!
|
7
|
-
|
8
|
-
Rails.application.configure do
|
9
|
-
# Settings specified here will take precedence over those in config/application.rb.
|
10
|
-
|
11
|
-
# Turn false under Spring and add config.action_view.cache_template_loading = true.
|
12
|
-
config.cache_classes = true
|
13
|
-
|
14
|
-
# Eager loading loads your whole application. When running a single test locally,
|
15
|
-
# this probably isn't necessary. It's a good idea to do in a continuous integration
|
16
|
-
# system, or in some way before deploying your code.
|
17
|
-
config.eager_load = ENV["CI"].present?
|
18
|
-
|
19
|
-
# Configure public file server for tests with Cache-Control for performance.
|
20
|
-
config.public_file_server.enabled = true
|
21
|
-
config.public_file_server.headers = {
|
22
|
-
"Cache-Control" => "public, max-age=#{1.hour.to_i}"
|
23
|
-
}
|
24
|
-
|
25
|
-
# Show full error reports and disable caching.
|
26
|
-
config.consider_all_requests_local = true
|
27
|
-
config.action_controller.perform_caching = false
|
28
|
-
config.cache_store = :null_store
|
29
|
-
|
30
|
-
# Raise exceptions instead of rendering exception templates.
|
31
|
-
config.action_dispatch.show_exceptions = false
|
32
|
-
|
33
|
-
# Disable request forgery protection in test environment.
|
34
|
-
config.action_controller.allow_forgery_protection = false
|
35
|
-
|
36
|
-
# Print deprecation notices to the stderr.
|
37
|
-
config.active_support.deprecation = :stderr
|
38
|
-
|
39
|
-
# Raise exceptions for disallowed deprecations.
|
40
|
-
config.active_support.disallowed_deprecation = :raise
|
41
|
-
|
42
|
-
# Tell Active Support which deprecation messages to disallow.
|
43
|
-
config.active_support.disallowed_deprecation_warnings = []
|
44
|
-
|
45
|
-
# Raises error for missing translations.
|
46
|
-
# config.i18n.raise_on_missing_translations = true
|
47
|
-
|
48
|
-
# Annotate rendered view with file names.
|
49
|
-
# config.action_view.annotate_rendered_view_with_filenames = true
|
50
|
-
end
|
@@ -1,33 +0,0 @@
|
|
1
|
-
# Files in the config/locales directory are used for internationalization
|
2
|
-
# and are automatically loaded by Rails. If you want to use locales other
|
3
|
-
# than English, add the necessary files in this directory.
|
4
|
-
#
|
5
|
-
# To use the locales, use `I18n.t`:
|
6
|
-
#
|
7
|
-
# I18n.t "hello"
|
8
|
-
#
|
9
|
-
# In views, this is aliased to just `t`:
|
10
|
-
#
|
11
|
-
# <%= t("hello") %>
|
12
|
-
#
|
13
|
-
# To use a different locale, set it with `I18n.locale`:
|
14
|
-
#
|
15
|
-
# I18n.locale = :es
|
16
|
-
#
|
17
|
-
# This would use the information in config/locales/es.yml.
|
18
|
-
#
|
19
|
-
# The following keys must be escaped otherwise they will not be retrieved by
|
20
|
-
# the default I18n backend:
|
21
|
-
#
|
22
|
-
# true, false, on, off, yes, no
|
23
|
-
#
|
24
|
-
# Instead, surround them with single quotes.
|
25
|
-
#
|
26
|
-
# en:
|
27
|
-
# "true": "foo"
|
28
|
-
#
|
29
|
-
# To learn more, please read the Rails Internationalization guide
|
30
|
-
# available at https://guides.rubyonrails.org/i18n.html.
|
31
|
-
|
32
|
-
en:
|
33
|
-
hello: "Hello world"
|
@@ -1 +0,0 @@
|
|
1
|
-
15729cca85c03e01e7b263643b18dfd7
|
data/dummy/psql/config/puma.rb
DELETED
@@ -1,43 +0,0 @@
|
|
1
|
-
# Puma can serve each request in a thread from an internal thread pool.
|
2
|
-
# The `threads` method setting takes two numbers: a minimum and maximum.
|
3
|
-
# Any libraries that use thread pools should be configured to match
|
4
|
-
# the maximum value specified for Puma. Default is set to 5 threads for minimum
|
5
|
-
# and maximum; this matches the default thread size of Active Record.
|
6
|
-
#
|
7
|
-
max_threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }
|
8
|
-
min_threads_count = ENV.fetch("RAILS_MIN_THREADS") { max_threads_count }
|
9
|
-
threads min_threads_count, max_threads_count
|
10
|
-
|
11
|
-
# Specifies the `worker_timeout` threshold that Puma will use to wait before
|
12
|
-
# terminating a worker in development environments.
|
13
|
-
#
|
14
|
-
worker_timeout 3600 if ENV.fetch("RAILS_ENV", "development") == "development"
|
15
|
-
|
16
|
-
# Specifies the `port` that Puma will listen on to receive requests; default is 3000.
|
17
|
-
#
|
18
|
-
port ENV.fetch("PORT") { 3000 }
|
19
|
-
|
20
|
-
# Specifies the `environment` that Puma will run in.
|
21
|
-
#
|
22
|
-
environment ENV.fetch("RAILS_ENV") { "development" }
|
23
|
-
|
24
|
-
# Specifies the `pidfile` that Puma will use.
|
25
|
-
pidfile ENV.fetch("PIDFILE") { "tmp/pids/server.pid" }
|
26
|
-
|
27
|
-
# Specifies the number of `workers` to boot in clustered mode.
|
28
|
-
# Workers are forked web server processes. If using threads and workers together
|
29
|
-
# the concurrency of the application would be max `threads` * `workers`.
|
30
|
-
# Workers do not work on JRuby or Windows (both of which do not support
|
31
|
-
# processes).
|
32
|
-
#
|
33
|
-
# workers ENV.fetch("WEB_CONCURRENCY") { 2 }
|
34
|
-
|
35
|
-
# Use the `preload_app!` method when specifying a `workers` number.
|
36
|
-
# This directive tells Puma to first boot the application and load code
|
37
|
-
# before forking the application. This takes advantage of Copy On Write
|
38
|
-
# process behavior so workers use less memory.
|
39
|
-
#
|
40
|
-
# preload_app!
|
41
|
-
|
42
|
-
# Allow puma to be restarted by `bin/rails restart` command.
|
43
|
-
plugin :tmp_restart
|
data/dummy/psql/config/routes.rb
DELETED
data/dummy/psql/config.ru
DELETED
data/dummy/psql/db/schema.rb
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
# This file is auto-generated from the current state of the database. Instead
|
2
|
-
# of editing this file, please use the migrations feature of Active Record to
|
3
|
-
# incrementally modify your database, and then regenerate this schema definition.
|
4
|
-
#
|
5
|
-
# This file is the source Rails uses to define your schema when running `bin/rails
|
6
|
-
# db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to
|
7
|
-
# be faster and is potentially less error prone than running all of your
|
8
|
-
# migrations from scratch. Old migrations may fail to apply correctly if those
|
9
|
-
# migrations use external dependencies or application code.
|
10
|
-
#
|
11
|
-
# It's strongly recommended that you check this file into your version control system.
|
12
|
-
|
13
|
-
ActiveRecord::Schema[7.0].define(version: 2023_03_30_203226) do
|
14
|
-
# These are extensions that must be enabled in order to support this database
|
15
|
-
enable_extension "plpgsql"
|
16
|
-
|
17
|
-
create_table "posts", force: :cascade do |t|
|
18
|
-
t.string "title"
|
19
|
-
t.text "body"
|
20
|
-
t.datetime "created_at", null: false
|
21
|
-
t.datetime "updated_at", null: false
|
22
|
-
end
|
23
|
-
end
|
data/dummy/psql/db/seeds.rb
DELETED
data/dummy/psql/log/.keep
DELETED
File without changes
|
data/dummy/psql/public/404.html
DELETED
@@ -1,67 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
-
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
-
<style>
|
7
|
-
.rails-default-error-page {
|
8
|
-
background-color: #EFEFEF;
|
9
|
-
color: #2E2F30;
|
10
|
-
text-align: center;
|
11
|
-
font-family: arial, sans-serif;
|
12
|
-
margin: 0;
|
13
|
-
}
|
14
|
-
|
15
|
-
.rails-default-error-page div.dialog {
|
16
|
-
width: 95%;
|
17
|
-
max-width: 33em;
|
18
|
-
margin: 4em auto 0;
|
19
|
-
}
|
20
|
-
|
21
|
-
.rails-default-error-page div.dialog > div {
|
22
|
-
border: 1px solid #CCC;
|
23
|
-
border-right-color: #999;
|
24
|
-
border-left-color: #999;
|
25
|
-
border-bottom-color: #BBB;
|
26
|
-
border-top: #B00100 solid 4px;
|
27
|
-
border-top-left-radius: 9px;
|
28
|
-
border-top-right-radius: 9px;
|
29
|
-
background-color: white;
|
30
|
-
padding: 7px 12% 0;
|
31
|
-
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
-
}
|
33
|
-
|
34
|
-
.rails-default-error-page h1 {
|
35
|
-
font-size: 100%;
|
36
|
-
color: #730E15;
|
37
|
-
line-height: 1.5em;
|
38
|
-
}
|
39
|
-
|
40
|
-
.rails-default-error-page div.dialog > p {
|
41
|
-
margin: 0 0 1em;
|
42
|
-
padding: 1em;
|
43
|
-
background-color: #F7F7F7;
|
44
|
-
border: 1px solid #CCC;
|
45
|
-
border-right-color: #999;
|
46
|
-
border-left-color: #999;
|
47
|
-
border-bottom-color: #999;
|
48
|
-
border-bottom-left-radius: 4px;
|
49
|
-
border-bottom-right-radius: 4px;
|
50
|
-
border-top-color: #DADADA;
|
51
|
-
color: #666;
|
52
|
-
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
-
}
|
54
|
-
</style>
|
55
|
-
</head>
|
56
|
-
|
57
|
-
<body class="rails-default-error-page">
|
58
|
-
<!-- This file lives in public/404.html -->
|
59
|
-
<div class="dialog">
|
60
|
-
<div>
|
61
|
-
<h1>The page you were looking for doesn't exist.</h1>
|
62
|
-
<p>You may have mistyped the address or the page may have moved.</p>
|
63
|
-
</div>
|
64
|
-
<p>If you are the application owner check the logs for more information.</p>
|
65
|
-
</div>
|
66
|
-
</body>
|
67
|
-
</html>
|
data/dummy/psql/public/422.html
DELETED
@@ -1,67 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>The change you wanted was rejected (422)</title>
|
5
|
-
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
-
<style>
|
7
|
-
.rails-default-error-page {
|
8
|
-
background-color: #EFEFEF;
|
9
|
-
color: #2E2F30;
|
10
|
-
text-align: center;
|
11
|
-
font-family: arial, sans-serif;
|
12
|
-
margin: 0;
|
13
|
-
}
|
14
|
-
|
15
|
-
.rails-default-error-page div.dialog {
|
16
|
-
width: 95%;
|
17
|
-
max-width: 33em;
|
18
|
-
margin: 4em auto 0;
|
19
|
-
}
|
20
|
-
|
21
|
-
.rails-default-error-page div.dialog > div {
|
22
|
-
border: 1px solid #CCC;
|
23
|
-
border-right-color: #999;
|
24
|
-
border-left-color: #999;
|
25
|
-
border-bottom-color: #BBB;
|
26
|
-
border-top: #B00100 solid 4px;
|
27
|
-
border-top-left-radius: 9px;
|
28
|
-
border-top-right-radius: 9px;
|
29
|
-
background-color: white;
|
30
|
-
padding: 7px 12% 0;
|
31
|
-
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
-
}
|
33
|
-
|
34
|
-
.rails-default-error-page h1 {
|
35
|
-
font-size: 100%;
|
36
|
-
color: #730E15;
|
37
|
-
line-height: 1.5em;
|
38
|
-
}
|
39
|
-
|
40
|
-
.rails-default-error-page div.dialog > p {
|
41
|
-
margin: 0 0 1em;
|
42
|
-
padding: 1em;
|
43
|
-
background-color: #F7F7F7;
|
44
|
-
border: 1px solid #CCC;
|
45
|
-
border-right-color: #999;
|
46
|
-
border-left-color: #999;
|
47
|
-
border-bottom-color: #999;
|
48
|
-
border-bottom-left-radius: 4px;
|
49
|
-
border-bottom-right-radius: 4px;
|
50
|
-
border-top-color: #DADADA;
|
51
|
-
color: #666;
|
52
|
-
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
-
}
|
54
|
-
</style>
|
55
|
-
</head>
|
56
|
-
|
57
|
-
<body class="rails-default-error-page">
|
58
|
-
<!-- This file lives in public/422.html -->
|
59
|
-
<div class="dialog">
|
60
|
-
<div>
|
61
|
-
<h1>The change you wanted was rejected.</h1>
|
62
|
-
<p>Maybe you tried to change something you didn't have access to.</p>
|
63
|
-
</div>
|
64
|
-
<p>If you are the application owner check the logs for more information.</p>
|
65
|
-
</div>
|
66
|
-
</body>
|
67
|
-
</html>
|
data/dummy/psql/public/500.html
DELETED
@@ -1,66 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>We're sorry, but something went wrong (500)</title>
|
5
|
-
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
-
<style>
|
7
|
-
.rails-default-error-page {
|
8
|
-
background-color: #EFEFEF;
|
9
|
-
color: #2E2F30;
|
10
|
-
text-align: center;
|
11
|
-
font-family: arial, sans-serif;
|
12
|
-
margin: 0;
|
13
|
-
}
|
14
|
-
|
15
|
-
.rails-default-error-page div.dialog {
|
16
|
-
width: 95%;
|
17
|
-
max-width: 33em;
|
18
|
-
margin: 4em auto 0;
|
19
|
-
}
|
20
|
-
|
21
|
-
.rails-default-error-page div.dialog > div {
|
22
|
-
border: 1px solid #CCC;
|
23
|
-
border-right-color: #999;
|
24
|
-
border-left-color: #999;
|
25
|
-
border-bottom-color: #BBB;
|
26
|
-
border-top: #B00100 solid 4px;
|
27
|
-
border-top-left-radius: 9px;
|
28
|
-
border-top-right-radius: 9px;
|
29
|
-
background-color: white;
|
30
|
-
padding: 7px 12% 0;
|
31
|
-
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
-
}
|
33
|
-
|
34
|
-
.rails-default-error-page h1 {
|
35
|
-
font-size: 100%;
|
36
|
-
color: #730E15;
|
37
|
-
line-height: 1.5em;
|
38
|
-
}
|
39
|
-
|
40
|
-
.rails-default-error-page div.dialog > p {
|
41
|
-
margin: 0 0 1em;
|
42
|
-
padding: 1em;
|
43
|
-
background-color: #F7F7F7;
|
44
|
-
border: 1px solid #CCC;
|
45
|
-
border-right-color: #999;
|
46
|
-
border-left-color: #999;
|
47
|
-
border-bottom-color: #999;
|
48
|
-
border-bottom-left-radius: 4px;
|
49
|
-
border-bottom-right-radius: 4px;
|
50
|
-
border-top-color: #DADADA;
|
51
|
-
color: #666;
|
52
|
-
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
-
}
|
54
|
-
</style>
|
55
|
-
</head>
|
56
|
-
|
57
|
-
<body class="rails-default-error-page">
|
58
|
-
<!-- This file lives in public/500.html -->
|
59
|
-
<div class="dialog">
|
60
|
-
<div>
|
61
|
-
<h1>We're sorry, but something went wrong.</h1>
|
62
|
-
</div>
|
63
|
-
<p>If you are the application owner check the logs for more information.</p>
|
64
|
-
</div>
|
65
|
-
</body>
|
66
|
-
</html>
|
File without changes
|
File without changes
|
File without changes
|
@@ -1 +0,0 @@
|
|
1
|
-
# See https://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file
|
data/dummy/psql/tmp/.keep
DELETED
File without changes
|
data/dummy/psql/tmp/pids/.keep
DELETED
File without changes
|