dumpcar 0.1.0.1 → 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 +4 -4
- data/Appraisals +16 -0
- data/NOTICES +32 -1
- data/README.md +35 -16
- data/config.ru +1 -1
- data/gemfiles/rails_6.0.gemfile +18 -0
- data/gemfiles/rails_6.1.gemfile +18 -0
- data/gemfiles/rails_7.0.gemfile +18 -0
- data/gemfiles/rails_7.1.gemfile +17 -0
- data/gemfiles/rails_7.2.gemfile +17 -0
- data/gemfiles/rails_8.0.gemfile +17 -0
- data/gemfiles/rails_edge.gemfile +17 -0
- data/lib/dumpcar/version.rb +1 -1
- metadata +9 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 51c0fc48135ff16ae2c99999dde48b0677bb847d184aaa7a63594294939e6693
|
4
|
+
data.tar.gz: 5db7be3ceb238c51a2c9432aa6e50cbcfef2d090b1179136686a2876441b39cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d53d01d116afe130c7b886a286bc5a83015fb8957fc668c461b4e0d799c3f7f10bc048659cb8b0c0f6dd738a3d4c435bd995e6e7f123e21a5949ac7214252893
|
7
|
+
data.tar.gz: '058dd833ba94ceb198ce28b633ba454d68ed0572e62f7e4f38535cc5facb86a5ffc0fdddb017e54cc05b34b871b20e5ee2969349d701d091d1d3491d0cda53ff'
|
data/Appraisals
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
[6.0, 6.1, 7.0].each do |ver|
|
2
|
+
appraise "rails-#{ver}" do
|
3
|
+
gem "rails", "~> #{ver}.0"
|
4
|
+
gem "concurrent-ruby", "1.3.4" # concurrent-ruby 1.3.5 has an issue fixed on Rails 7.1+
|
5
|
+
end
|
6
|
+
end
|
7
|
+
|
8
|
+
[7.1, 7.2, 8.0].each do |ver|
|
9
|
+
appraise "rails-#{ver}" do
|
10
|
+
gem "rails", "~> #{ver}.0"
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
appraise "rails-edge" do
|
15
|
+
gem "rails", github: "rails/rails", branch: "main"
|
16
|
+
end
|
data/NOTICES
CHANGED
@@ -21,4 +21,35 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
21
21
|
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
22
22
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
23
23
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
24
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
24
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
25
|
+
|
26
|
+
Houdini Project:
|
27
|
+
|
28
|
+
You can copy, convey, propagate, redistribute and/or modify this program
|
29
|
+
under the terms of the GNU General Public License (GPL) as published by
|
30
|
+
the Free Software Foundation (FSF), either version 3 of the License, or
|
31
|
+
(at your option) any later version of the GPL published by the FSF.
|
32
|
+
|
33
|
+
This program is distributed in the hope that it will be useful, but
|
34
|
+
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
35
|
+
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public
|
36
|
+
License for more details.
|
37
|
+
|
38
|
+
You should have received a copy of the GNU General Public License along
|
39
|
+
with this program in a file in the toplevel directory called
|
40
|
+
"GPL-3.0.txt". If not, see <http://www.gnu.org/licenses/>.
|
41
|
+
|
42
|
+
In addition to the permission granted by the GPLv3, you also receive
|
43
|
+
permissions as written in GNU Lesser General Public License (LGPL),
|
44
|
+
Version 3.0, as published by the Free Software Foundation (FSF), either
|
45
|
+
version 3 of the License, or (at your option) any later version of the
|
46
|
+
LGPL published by the FSF.
|
47
|
+
|
48
|
+
This program is distributed in the hope that it will be useful, but
|
49
|
+
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
50
|
+
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
51
|
+
for more details.
|
52
|
+
|
53
|
+
You should have received a copy of the GNU Lesser General Public License
|
54
|
+
along with this program in a file in the toplevel directory called
|
55
|
+
"LGPL-3.0.txt". If not, see <http://www.gnu.org/licenses/>.
|
data/README.md
CHANGED
@@ -1,34 +1,48 @@
|
|
1
|
-
#
|
1
|
+
# Dumpcar
|
2
2
|
|
3
|
-
|
3
|
+
Rake tasks for dumping and restoring the contents of the PostgreSQL database for your Rails application.
|
4
4
|
|
5
|
-
|
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
8
|
## Installation
|
8
9
|
|
9
|
-
|
10
|
-
|
11
|
-
Install the gem and add to the application's Gemfile by executing:
|
10
|
+
Install the gem executing:*
|
12
11
|
|
13
12
|
```bash
|
14
|
-
bundle add
|
13
|
+
bundle add Dumpcar
|
14
|
+
rails g dumpcar # creates db/dumps folder, adds it to .gitignore and commits
|
15
15
|
```
|
16
16
|
|
17
|
-
|
17
|
+
## Usage
|
18
18
|
|
19
19
|
```bash
|
20
|
-
|
20
|
+
rails dumpcar:dump # creates a postgresql dump based on current time like db/dumps/20250601022124.dump
|
21
21
|
```
|
22
22
|
|
23
|
-
|
23
|
+
```bash
|
24
|
+
rails dumpcar:restore # restores the last dump made chronologically from the db/dumps directory
|
25
|
+
```
|
24
26
|
|
25
|
-
|
27
|
+
## Compatibility
|
26
28
|
|
27
|
-
|
29
|
+
Outside of the `rails dumpcar:dump` and `rails dumpcar:restore` commands, don't expect any compatibility guarantees for now.
|
28
30
|
|
29
|
-
|
31
|
+
## Longer term feature goals
|
30
32
|
|
31
|
-
|
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)
|
42
|
+
|
43
|
+
## Development
|
44
|
+
|
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.
|
32
46
|
|
33
47
|
## Contributing
|
34
48
|
|
@@ -36,8 +50,13 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/wwaham
|
|
36
50
|
|
37
51
|
## License
|
38
52
|
|
39
|
-
The gem is available as open source under the terms of the [
|
53
|
+
The gem is available as open source under the terms of the [LGPL-3.0-or-later license](https://github.com/wwahammy/dumpcar/blob/LICENSE).
|
40
54
|
|
41
55
|
## Code of Conduct
|
42
56
|
|
43
|
-
Everyone interacting in the
|
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
|
data/config.ru
CHANGED
@@ -0,0 +1,18 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
gem "irb"
|
6
|
+
gem "rake", "~> 13.0"
|
7
|
+
gem "rspec", "~> 3.0"
|
8
|
+
gem "rspec-github", require: false
|
9
|
+
gem "shoulda-matchers"
|
10
|
+
gem "standard", "~> 1.3"
|
11
|
+
gem "combustion"
|
12
|
+
gem "pg"
|
13
|
+
gem "rspec-rails"
|
14
|
+
gem "appraisal", "~> 2.0"
|
15
|
+
gem "rails", "~> 6.0.0"
|
16
|
+
gem "concurrent-ruby", "1.3.4"
|
17
|
+
|
18
|
+
gemspec path: "../"
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
gem "irb"
|
6
|
+
gem "rake", "~> 13.0"
|
7
|
+
gem "rspec", "~> 3.0"
|
8
|
+
gem "rspec-github", require: false
|
9
|
+
gem "shoulda-matchers"
|
10
|
+
gem "standard", "~> 1.3"
|
11
|
+
gem "combustion"
|
12
|
+
gem "pg"
|
13
|
+
gem "rspec-rails"
|
14
|
+
gem "appraisal", "~> 2.0"
|
15
|
+
gem "rails", "~> 6.1.0"
|
16
|
+
gem "concurrent-ruby", "1.3.4"
|
17
|
+
|
18
|
+
gemspec path: "../"
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
gem "irb"
|
6
|
+
gem "rake", "~> 13.0"
|
7
|
+
gem "rspec", "~> 3.0"
|
8
|
+
gem "rspec-github", require: false
|
9
|
+
gem "shoulda-matchers"
|
10
|
+
gem "standard", "~> 1.3"
|
11
|
+
gem "combustion"
|
12
|
+
gem "pg"
|
13
|
+
gem "rspec-rails"
|
14
|
+
gem "appraisal", "~> 2.0"
|
15
|
+
gem "rails", "~> 7.0.0"
|
16
|
+
gem "concurrent-ruby", "1.3.4"
|
17
|
+
|
18
|
+
gemspec path: "../"
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
gem "irb"
|
6
|
+
gem "rake", "~> 13.0"
|
7
|
+
gem "rspec", "~> 3.0"
|
8
|
+
gem "rspec-github", require: false
|
9
|
+
gem "shoulda-matchers"
|
10
|
+
gem "standard", "~> 1.3"
|
11
|
+
gem "combustion"
|
12
|
+
gem "pg"
|
13
|
+
gem "rspec-rails"
|
14
|
+
gem "appraisal", "~> 2.0"
|
15
|
+
gem "rails", "~> 7.1.0"
|
16
|
+
|
17
|
+
gemspec path: "../"
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
gem "irb"
|
6
|
+
gem "rake", "~> 13.0"
|
7
|
+
gem "rspec", "~> 3.0"
|
8
|
+
gem "rspec-github", require: false
|
9
|
+
gem "shoulda-matchers"
|
10
|
+
gem "standard", "~> 1.3"
|
11
|
+
gem "combustion"
|
12
|
+
gem "pg"
|
13
|
+
gem "rspec-rails"
|
14
|
+
gem "appraisal", "~> 2.0"
|
15
|
+
gem "rails", "~> 7.2.0"
|
16
|
+
|
17
|
+
gemspec path: "../"
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
gem "irb"
|
6
|
+
gem "rake", "~> 13.0"
|
7
|
+
gem "rspec", "~> 3.0"
|
8
|
+
gem "rspec-github", require: false
|
9
|
+
gem "shoulda-matchers"
|
10
|
+
gem "standard", "~> 1.3"
|
11
|
+
gem "combustion"
|
12
|
+
gem "pg"
|
13
|
+
gem "rspec-rails"
|
14
|
+
gem "appraisal", "~> 2.0"
|
15
|
+
gem "rails", "~> 8.0.0"
|
16
|
+
|
17
|
+
gemspec path: "../"
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
gem "irb"
|
6
|
+
gem "rake", "~> 13.0"
|
7
|
+
gem "rspec", "~> 3.0"
|
8
|
+
gem "rspec-github", require: false
|
9
|
+
gem "shoulda-matchers"
|
10
|
+
gem "standard", "~> 1.3"
|
11
|
+
gem "combustion"
|
12
|
+
gem "pg"
|
13
|
+
gem "rspec-rails"
|
14
|
+
gem "appraisal", "~> 2.0"
|
15
|
+
gem "rails", github: "rails/rails", branch: "main"
|
16
|
+
|
17
|
+
gemspec path: "../"
|
data/lib/dumpcar/version.rb
CHANGED
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.
|
4
|
+
version: 0.1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Schultz
|
@@ -36,6 +36,7 @@ files:
|
|
36
36
|
- ".rspec"
|
37
37
|
- ".ruby-version"
|
38
38
|
- ".standard.yml"
|
39
|
+
- Appraisals
|
39
40
|
- CHANGELOG.md
|
40
41
|
- CODE_OF_CONDUCT.md
|
41
42
|
- GPL-3.0.txt
|
@@ -45,6 +46,13 @@ files:
|
|
45
46
|
- README.md
|
46
47
|
- Rakefile
|
47
48
|
- config.ru
|
49
|
+
- gemfiles/rails_6.0.gemfile
|
50
|
+
- gemfiles/rails_6.1.gemfile
|
51
|
+
- gemfiles/rails_7.0.gemfile
|
52
|
+
- gemfiles/rails_7.1.gemfile
|
53
|
+
- gemfiles/rails_7.2.gemfile
|
54
|
+
- gemfiles/rails_8.0.gemfile
|
55
|
+
- gemfiles/rails_edge.gemfile
|
48
56
|
- lib/dumpcar.rb
|
49
57
|
- lib/dumpcar/generators/dumpcar_generator.rb
|
50
58
|
- lib/dumpcar/instance.rb
|