dumpcar 0.1.0.3 → 0.1.0.4

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: ed119cf17a409f818d9dd8f069a5e7220311915609c84a89e1e4cee24708ec1b
4
+ data.tar.gz: f3537224213f96e745edfcdccbc56e3906f0b32fdb349ce725425a41f9d78887
5
5
  SHA512:
6
- metadata.gz: d53d01d116afe130c7b886a286bc5a83015fb8957fc668c461b4e0d799c3f7f10bc048659cb8b0c0f6dd738a3d4c435bd995e6e7f123e21a5949ac7214252893
7
- data.tar.gz: '058dd833ba94ceb198ce28b633ba454d68ed0572e62f7e4f38535cc5facb86a5ffc0fdddb017e54cc05b34b871b20e5ee2969349d701d091d1d3491d0cda53ff'
6
+ metadata.gz: 14c5f0ba07c1618d401a9b3f8d5b7345b7c70b1c484bdbe0179f75e7c8f7995e5316470a4e6b0986f7b4ff02701f012df80d9c60b8b9a31f1519144efb309908
7
+ data.tar.gz: 5bfad0956996b9fd3f9937728b179f9144af7ba65cbe8f33ee60156dfdb7820852675ef12d8286a3faad5f0d01eaa22d4314886c8dc4774e66d85f6c99ef39c8
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
 
@@ -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.4"
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.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Schultz
@@ -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: []