dumpcar 0.1.0.2 → 0.1.0.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 10d345ae8e6b891eb9706770254feecac90a4440ddb94a38afe43863a381e6db
4
- data.tar.gz: 1785b183972b7b3441647b3fc272a09168ee023f49de87b8befdd2c671807def
3
+ metadata.gz: 51c0fc48135ff16ae2c99999dde48b0677bb847d184aaa7a63594294939e6693
4
+ data.tar.gz: 5db7be3ceb238c51a2c9432aa6e50cbcfef2d090b1179136686a2876441b39cd
5
5
  SHA512:
6
- metadata.gz: e377f5ca42759745881c2942961bd0d2963f5c1ab0fa34b137598416143f989f286b1e3a8abd221a79bd3340e197ae969cd52fec85b07db4a36cf6794ddd42fd
7
- data.tar.gz: '08a48d141f71ab6a4b01b964a6456a6a58d34a3c16966beb32aaf48dd50ad1cafb8caed661e2393b6ddd2608f62dbe40dee02c037dddc7eddb5695a9aaa4ed40'
6
+ metadata.gz: d53d01d116afe130c7b886a286bc5a83015fb8957fc668c461b4e0d799c3f7f10bc048659cb8b0c0f6dd738a3d4c435bd995e6e7f123e21a5949ac7214252893
7
+ data.tar.gz: '058dd833ba94ceb198ce28b633ba454d68ed0572e62f7e4f38535cc5facb86a5ffc0fdddb017e54cc05b34b871b20e5ee2969349d701d091d1d3491d0cda53ff'
data/README.md CHANGED
@@ -1,30 +1,48 @@
1
- # Rails::Db::Dump
1
+ # Dumpcar
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/dumpcar`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ Rake tasks for dumping and restoring the contents of the PostgreSQL database for your Rails application.
4
4
 
5
- ## Installation
5
+ * Dump (`rails dumpcar:dump`) and restore your last dump (`rails dumpcar:restore`) with a single command
6
+ * Uses your Rails database credentials for your environment
6
7
 
7
- TODO: Replace `Dumpcar` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
8
+ ## Installation
8
9
 
9
- Install the gem and add to the application's Gemfile by executing:
10
+ Install the gem executing:*
10
11
 
11
12
  ```bash
12
13
  bundle add Dumpcar
14
+ rails g dumpcar # creates db/dumps folder, adds it to .gitignore and commits
13
15
  ```
14
16
 
15
- If bundler is not being used to manage dependencies, install the gem by executing:
17
+ ## Usage
16
18
 
17
19
  ```bash
18
- gem install Dumpcar
20
+ rails dumpcar:dump # creates a postgresql dump based on current time like db/dumps/20250601022124.dump
19
21
  ```
20
22
 
21
- ## Usage
23
+ ```bash
24
+ rails dumpcar:restore # restores the last dump made chronologically from the db/dumps directory
25
+ ```
22
26
 
23
- TODO: Write usage instructions here
27
+ ## Compatibility
28
+
29
+ Outside of the `rails dumpcar:dump` and `rails dumpcar:restore` commands, don't expect any compatibility guarantees for now.
30
+
31
+ ## Longer term feature goals
32
+
33
+ * Support other Rails database (MySQL and SQLite)
34
+ * Support other Rails environments than the current one
35
+ * Ability to clean your db/dumps directory of all dumps before a given time
36
+ * Add support for naming a dump (you can manually do this now but not via the rake task)
37
+ * Restoring a specific dump via filepath
38
+ * Restoring a specific dump by timestamp
39
+ * Restoring a specific dump by name
40
+ * Restoring a specific dump made before or after a given time
41
+ * Extension points for other ways to get a database (Easily get a dump from Heroku's Postgres backups, for example)
24
42
 
25
43
  ## Development
26
44
 
27
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
45
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You should run `bin/appraisal rspec` to run all of the tests on all of the supported Rails versions. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
28
46
 
29
47
  ## Contributing
30
48
 
@@ -36,4 +54,9 @@ The gem is available as open source under the terms of the [LGPL-3.0-or-later li
36
54
 
37
55
  ## Code of Conduct
38
56
 
39
- Everyone interacting in the Rails::Db::Dump project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/wwahammy/dumpcar/blob/main/CODE_OF_CONDUCT.md).
57
+ Everyone interacting in the Dumpcar project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/wwahammy/dumpcar/blob/main/CODE_OF_CONDUCT.md).
58
+
59
+ ## Releasing
60
+
61
+ 1. Update the version in the `lib/dumpcar/version.rb`
62
+ 2. Run the Push Gem workflow
@@ -5,6 +5,7 @@ source "https://rubygems.org"
5
5
  gem "irb"
6
6
  gem "rake", "~> 13.0"
7
7
  gem "rspec", "~> 3.0"
8
+ gem "rspec-github", require: false
8
9
  gem "shoulda-matchers"
9
10
  gem "standard", "~> 1.3"
10
11
  gem "combustion"
@@ -5,6 +5,7 @@ source "https://rubygems.org"
5
5
  gem "irb"
6
6
  gem "rake", "~> 13.0"
7
7
  gem "rspec", "~> 3.0"
8
+ gem "rspec-github", require: false
8
9
  gem "shoulda-matchers"
9
10
  gem "standard", "~> 1.3"
10
11
  gem "combustion"
@@ -5,6 +5,7 @@ source "https://rubygems.org"
5
5
  gem "irb"
6
6
  gem "rake", "~> 13.0"
7
7
  gem "rspec", "~> 3.0"
8
+ gem "rspec-github", require: false
8
9
  gem "shoulda-matchers"
9
10
  gem "standard", "~> 1.3"
10
11
  gem "combustion"
@@ -5,6 +5,7 @@ source "https://rubygems.org"
5
5
  gem "irb"
6
6
  gem "rake", "~> 13.0"
7
7
  gem "rspec", "~> 3.0"
8
+ gem "rspec-github", require: false
8
9
  gem "shoulda-matchers"
9
10
  gem "standard", "~> 1.3"
10
11
  gem "combustion"
@@ -5,6 +5,7 @@ source "https://rubygems.org"
5
5
  gem "irb"
6
6
  gem "rake", "~> 13.0"
7
7
  gem "rspec", "~> 3.0"
8
+ gem "rspec-github", require: false
8
9
  gem "shoulda-matchers"
9
10
  gem "standard", "~> 1.3"
10
11
  gem "combustion"
@@ -5,6 +5,7 @@ source "https://rubygems.org"
5
5
  gem "irb"
6
6
  gem "rake", "~> 13.0"
7
7
  gem "rspec", "~> 3.0"
8
+ gem "rspec-github", require: false
8
9
  gem "shoulda-matchers"
9
10
  gem "standard", "~> 1.3"
10
11
  gem "combustion"
@@ -5,6 +5,7 @@ source "https://rubygems.org"
5
5
  gem "irb"
6
6
  gem "rake", "~> 13.0"
7
7
  gem "rspec", "~> 3.0"
8
+ gem "rspec-github", require: false
8
9
  gem "shoulda-matchers"
9
10
  gem "standard", "~> 1.3"
10
11
  gem "combustion"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dumpcar
4
- VERSION = "0.1.0.2"
4
+ VERSION = "0.1.0.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dumpcar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.2
4
+ version: 0.1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Schultz