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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 51c0fc48135ff16ae2c99999dde48b0677bb847d184aaa7a63594294939e6693
4
- data.tar.gz: 5db7be3ceb238c51a2c9432aa6e50cbcfef2d090b1179136686a2876441b39cd
3
+ metadata.gz: ac35334bd4e6e029cb22aade0f14dd8f245e9c9f16e7222192f04658808d4c34
4
+ data.tar.gz: 474e9afbce150bbbac9e7f56b08594446c7f09abdc1c5984591d01d2fe01077f
5
5
  SHA512:
6
- metadata.gz: d53d01d116afe130c7b886a286bc5a83015fb8957fc668c461b4e0d799c3f7f10bc048659cb8b0c0f6dd738a3d4c435bd995e6e7f123e21a5949ac7214252893
7
- data.tar.gz: '058dd833ba94ceb198ce28b633ba454d68ed0572e62f7e4f38535cc5facb86a5ffc0fdddb017e54cc05b34b871b20e5ee2969349d701d091d1d3491d0cda53ff'
6
+ metadata.gz: 41c7b5761677e2f0ae1115283344672db1d13ac8d5dd254523ce6e0e5e21fe1bccdf77aa4e9e736d5863828c9c4bf0f0cb9cd3f4a5e840b681c4603966472589
7
+ data.tar.gz: 7b8698ac18c08d2cdb69b5aa342e203b950047112e10110d100b545439214eb3da7557c176a47e472c6dfa2ab5280f7ac8a66bfc1a0b32891ebee40e0ca1b3d9
data/CHANGELOG.md CHANGED
@@ -1,5 +1 @@
1
- ## [Unreleased]
2
-
3
- ## [0.1.0] - 2025-05-04
4
-
5
- - Initial release
1
+ Please refer to Github releases for changelogs
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.
@@ -11,7 +11,7 @@ module Dumpcar
11
11
 
12
12
  def dumps
13
13
  prepare_base!
14
- Dir.glob(base.join(TIMESTAMP_FILE_GLOB))
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dumpcar
4
- VERSION = "0.1.0.3"
4
+ VERSION = "0.1.0.5"
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.3
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: We're getting there
87
+ summary: Rake tasks for dumping and restoring Rails PostgreSQL database contents
88
88
  test_files: []