dumpcar 0.1.0.3 → 0.1.0.5
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/CHANGELOG.md +1 -5
- data/README.md +2 -5
- data/SECURITY.md +17 -0
- data/lib/dumpcar/location.rb +5 -1
- data/lib/dumpcar/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ac35334bd4e6e029cb22aade0f14dd8f245e9c9f16e7222192f04658808d4c34
|
4
|
+
data.tar.gz: 474e9afbce150bbbac9e7f56b08594446c7f09abdc1c5984591d01d2fe01077f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41c7b5761677e2f0ae1115283344672db1d13ac8d5dd254523ce6e0e5e21fe1bccdf77aa4e9e736d5863828c9c4bf0f0cb9cd3f4a5e840b681c4603966472589
|
7
|
+
data.tar.gz: 7b8698ac18c08d2cdb69b5aa342e203b950047112e10110d100b545439214eb3da7557c176a47e472c6dfa2ab5280f7ac8a66bfc1a0b32891ebee40e0ca1b3d9
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -7,7 +7,7 @@ Rake tasks for dumping and restoring the contents of the PostgreSQL database for
|
|
7
7
|
|
8
8
|
## Installation
|
9
9
|
|
10
|
-
Install the gem executing
|
10
|
+
Install the gem executing:
|
11
11
|
|
12
12
|
```bash
|
13
13
|
bundle add Dumpcar
|
@@ -18,9 +18,6 @@ rails g dumpcar # creates db/dumps folder, adds it to .gitignore and commits
|
|
18
18
|
|
19
19
|
```bash
|
20
20
|
rails dumpcar:dump # creates a postgresql dump based on current time like db/dumps/20250601022124.dump
|
21
|
-
```
|
22
|
-
|
23
|
-
```bash
|
24
21
|
rails dumpcar:restore # restores the last dump made chronologically from the db/dumps directory
|
25
22
|
```
|
26
23
|
|
@@ -50,7 +47,7 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/wwaham
|
|
50
47
|
|
51
48
|
## License
|
52
49
|
|
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).
|
50
|
+
The gem is available as open source under the terms of the [LGPL-3.0-or-later license](https://github.com/wwahammy/dumpcar/blob/main/LICENSE).
|
54
51
|
|
55
52
|
## Code of Conduct
|
56
53
|
|
data/SECURITY.md
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# Security Policy
|
2
|
+
|
3
|
+
dumpcar is provided as-is and is in very early stages. That said, we accept
|
4
|
+
vulnerability reports for the current major version.
|
5
|
+
|
6
|
+
## Supported Versions
|
7
|
+
|
8
|
+
| Version | Supported |
|
9
|
+
| ------- | ------------------ |
|
10
|
+
| 0.x | :white_check_mark: |
|
11
|
+
|
12
|
+
## Reporting a Vulnerability
|
13
|
+
|
14
|
+
To report a vulnerability, please visit https://github.com/wwahammy/dumpcar/security to report a vulnerability.
|
15
|
+
Vulnerability reports will addressed when we have time. Please follow the
|
16
|
+
[dumpcar Code of Conduct](https://github.com/wwahammy/dumpcar/blob/main/CODE_OF_CONDUCT.md)
|
17
|
+
at all times.
|
data/lib/dumpcar/location.rb
CHANGED
@@ -11,7 +11,7 @@ module Dumpcar
|
|
11
11
|
|
12
12
|
def dumps
|
13
13
|
prepare_base!
|
14
|
-
|
14
|
+
base.glob(TIMESTAMP_FILE_GLOB)
|
15
15
|
end
|
16
16
|
|
17
17
|
def first
|
@@ -19,6 +19,10 @@ module Dumpcar
|
|
19
19
|
dumps.first
|
20
20
|
end
|
21
21
|
|
22
|
+
def search(query)
|
23
|
+
dumps.first { |file| file.basename.starts_with(query) }
|
24
|
+
end
|
25
|
+
|
22
26
|
def last
|
23
27
|
prepare_base!
|
24
28
|
dumps.last
|
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.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Schultz
|
@@ -45,6 +45,7 @@ files:
|
|
45
45
|
- NOTICES
|
46
46
|
- README.md
|
47
47
|
- Rakefile
|
48
|
+
- SECURITY.md
|
48
49
|
- config.ru
|
49
50
|
- gemfiles/rails_6.0.gemfile
|
50
51
|
- gemfiles/rails_6.1.gemfile
|
@@ -67,7 +68,6 @@ licenses:
|
|
67
68
|
metadata:
|
68
69
|
homepage_uri: https://github.com/wwahammy/dumpcar
|
69
70
|
source_code_uri: https://github.com/wwahammy/dumpcar
|
70
|
-
changelog_uri: https://github.com/wwahammy/dumpcar
|
71
71
|
rdoc_options: []
|
72
72
|
require_paths:
|
73
73
|
- lib
|
@@ -84,5 +84,5 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
84
84
|
requirements: []
|
85
85
|
rubygems_version: 3.6.7
|
86
86
|
specification_version: 4
|
87
|
-
summary:
|
87
|
+
summary: Rake tasks for dumping and restoring Rails PostgreSQL database contents
|
88
88
|
test_files: []
|