postmodern 0.0.1 → 0.0.2
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/.travis.yml +8 -0
- data/Gemfile +1 -0
- data/README.md +2 -0
- data/bin/pg_wal_archive +9 -0
- data/bin/pg_wal_restore +3 -0
- data/lib/postmodern/version.rb +1 -1
- data/postmodern.gemspec +1 -1
- data/spec/bin/pg_wal_archive_spec.rb +21 -0
- data/spec/bin/pg_wal_restore_spec.rb +13 -0
- data/spec/spec_helper.rb +12 -0
- metadata +10 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: beb70176f9b6a2673c3b36ed4ca232890683d18f
|
4
|
+
data.tar.gz: c60027334210357bd684049bd09e5269e34c491e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dffefefa12f86d9efb264c89c4ded2bc639d7f718f5c657cefef37219c318d652d4ef2b1eeb2c5876a9df34e21de5dfaf79eb4f564d8e53fa22f0304bd1fd753
|
7
|
+
data.tar.gz: 705628ee8b7e61baf35b1b2d503d949a9d9e84eb6a4f27dd4079e283fe171008bd9bc2fd099ad975fdab1d3698517f536a05f76a4fa40c0a2a6d5b1487a0caae
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
data/bin/pg_wal_archive
ADDED
data/bin/pg_wal_restore
ADDED
data/lib/postmodern/version.rb
CHANGED
data/postmodern.gemspec
CHANGED
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
|
|
15
15
|
|
16
16
|
spec.files = `git ls-files -z`.split("\x0")
|
17
17
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
-
spec.test_files = spec.files.grep(%r{^
|
18
|
+
spec.test_files = spec.files.grep(%r{^spec/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
21
|
spec.add_development_dependency "bundler", "~> 1.5"
|
@@ -0,0 +1,21 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'pg_wal_archive' do
|
4
|
+
before do
|
5
|
+
double_cmd('pg_wal_archive.local')
|
6
|
+
end
|
7
|
+
|
8
|
+
it 'exports WAL_ARCHIVE_FILE' do
|
9
|
+
expect(`bin/pg_wal_archive filename filepath`).to include('Archiving file: filename')
|
10
|
+
end
|
11
|
+
|
12
|
+
it 'exports WAL_ARCHIVE_PATH' do
|
13
|
+
expect(`bin/pg_wal_archive filename filepath`).to include('Archiving path: filepath')
|
14
|
+
end
|
15
|
+
|
16
|
+
it 'calls a local file with file name and path' do
|
17
|
+
expect {
|
18
|
+
`bin/pg_wal_archive 11111 222222`
|
19
|
+
}.to shellout('pg_wal_archive.local')
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'pg_wal_restore' do
|
4
|
+
before do
|
5
|
+
double_cmd('pg_wal_restore.local')
|
6
|
+
end
|
7
|
+
|
8
|
+
it 'calls a local file with file name and path' do
|
9
|
+
expect {
|
10
|
+
`bin/pg_wal_restore 11111 222222`
|
11
|
+
}.to shellout('pg_wal_restore.local 11111 222222')
|
12
|
+
end
|
13
|
+
end
|
data/spec/spec_helper.rb
CHANGED
@@ -1,7 +1,19 @@
|
|
1
|
+
require 'aruba/rspec'
|
2
|
+
|
1
3
|
RSpec.configure do |config|
|
2
4
|
config.treat_symbols_as_metadata_keys_with_true_values = true
|
3
5
|
config.run_all_when_everything_filtered = true
|
4
6
|
config.filter_run :focus
|
5
7
|
|
6
8
|
config.order = 'random' # Use --seed NNNN to run in particular order
|
9
|
+
|
10
|
+
config.include ArubaDoubles
|
11
|
+
|
12
|
+
config.before :each do
|
13
|
+
Aruba::RSpec.setup
|
14
|
+
end
|
15
|
+
|
16
|
+
config.after :each do
|
17
|
+
Aruba::RSpec.teardown
|
18
|
+
end
|
7
19
|
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.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Saxby
|
@@ -41,7 +41,9 @@ dependencies:
|
|
41
41
|
description: Tools for managing PostgreSQL
|
42
42
|
email:
|
43
43
|
- sax@livinginthepast.org
|
44
|
-
executables:
|
44
|
+
executables:
|
45
|
+
- pg_wal_archive
|
46
|
+
- pg_wal_restore
|
45
47
|
extensions: []
|
46
48
|
extra_rdoc_files: []
|
47
49
|
files:
|
@@ -53,9 +55,13 @@ files:
|
|
53
55
|
- LICENSE.txt
|
54
56
|
- README.md
|
55
57
|
- Rakefile
|
58
|
+
- bin/pg_wal_archive
|
59
|
+
- bin/pg_wal_restore
|
56
60
|
- lib/postmodern.rb
|
57
61
|
- lib/postmodern/version.rb
|
58
62
|
- postmodern.gemspec
|
63
|
+
- spec/bin/pg_wal_archive_spec.rb
|
64
|
+
- spec/bin/pg_wal_restore_spec.rb
|
59
65
|
- spec/spec_helper.rb
|
60
66
|
homepage: https://github.com/wanelo/postmodern
|
61
67
|
licenses:
|
@@ -82,5 +88,7 @@ signing_key:
|
|
82
88
|
specification_version: 4
|
83
89
|
summary: Tools for managing PostgreSQL
|
84
90
|
test_files:
|
91
|
+
- spec/bin/pg_wal_archive_spec.rb
|
92
|
+
- spec/bin/pg_wal_restore_spec.rb
|
85
93
|
- spec/spec_helper.rb
|
86
94
|
has_rdoc:
|