postmodern 0.0.3 → 0.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
  SHA1:
3
- metadata.gz: b21a4d73f6922f7c2d9a23454a3318fde4e57062
4
- data.tar.gz: 4c86854b422677faff10fe9daeb0a460c729bb72
3
+ metadata.gz: 0960555c043a47d221233279cfad99aff42e1823
4
+ data.tar.gz: b2b3aad195541a02019eb189273681c01f04d922
5
5
  SHA512:
6
- metadata.gz: 1a959f4febd53f7785d744212630a9519ff02c79629aff2b96b25c1c714b2c1437fd7bd828258cb4522adfcca74d248396e2d0bd5ca1466bff758e85eea0b485
7
- data.tar.gz: 9b9ea98694be96bcdb6e2a18a77c0ba3dc45fc637252e64a052a26a5468493ed30c11d949d7e2d62c3a267b9458d9eb528e7b006030bf0dd94b485718957dbbc
6
+ metadata.gz: a9caa033d35e41635ec8bb5468bb37a5a87c7437082b6a85e8c5d0a59f229200abe15e15e6f8debb99d6835218d832ce9652385de295706ba0f71efb81253027
7
+ data.tar.gz: b31a316fa01261427baefbca18e22ee94db961c18ab3d38f314c06d78d5b15a4f3913b862524caff44c183be7d193f173cb25f8e9cb54981b76f181ca3d5314c
data/bin/pg_wal_archive CHANGED
@@ -1,4 +1,4 @@
1
- #!/bin/bash
1
+ #!/usr/bin/env ruby
2
2
 
3
3
  # This script is a wrapper for a user-generated pg_wal_archive.local
4
4
  # script. If that script does not exist, this executable does nothing
@@ -7,12 +7,12 @@
7
7
  # This script (and the local script) should be executable as the
8
8
  # postgres user.
9
9
 
10
- export WAL_ARCHIVE_FILE=$1 # maps to %f in postgres archiving
11
- export WAL_ARCHIVE_PATH=$2 # maps to %p in postgres archiving
10
+ ENV['WAL_ARCHIVE_FILE']=ARGV[0] # maps to %f in postgres archiving
11
+ ENV['WAL_ARCHIVE_PATH']=ARGV[1] # maps to %p in postgres archiving
12
12
 
13
- echo "Archiving file: ${WAL_ARCHIVE_FILE}"
14
- echo "Archiving path: ${WAL_ARCHIVE_PATH}"
13
+ puts "Archiving file: #{ENV['WAL_ARCHIVE_FILE']}"
14
+ puts "Archiving path: #{ENV['WAL_ARCHIVE_PATH']}"
15
15
 
16
- if which pg_wal_archive.local &>/dev/null; then
17
- pg_wal_archive.local
18
- fi
16
+ if system('which pg_wal_archive.local &>/dev/null')
17
+ `pg_wal_archive.local`
18
+ end
data/bin/pg_wal_restore CHANGED
@@ -1,5 +1,5 @@
1
- #!/bin/bash
1
+ #!/usr/bin/env ruby
2
2
 
3
- if which pg_wal_restore.local &>/dev/null; then
4
- pg_wal_restore.local $1 $2
5
- fi
3
+ if system('which pg_wal_restore.local &>/dev/null')
4
+ `pg_wal_restore.local #{ARGV[0]} #{ARGV[1]}`
5
+ end
@@ -1,3 +1,3 @@
1
1
  module Postmodern
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: postmodern
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Saxby