pg_dumper 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +7 -0
- data/lib/pg_dumper.rb +8 -2
- data/lib/pg_dumper/version.rb +1 -1
- data/test.sh +2 -0
- metadata +5 -3
data/.travis.yml
ADDED
data/lib/pg_dumper.rb
CHANGED
@@ -29,7 +29,7 @@ class PgDumper
|
|
29
29
|
end
|
30
30
|
|
31
31
|
def command
|
32
|
-
Escape.shell_command([binary,
|
32
|
+
Escape.shell_command([binary, args, database].flatten).to_s
|
33
33
|
end
|
34
34
|
|
35
35
|
def schema_only!
|
@@ -88,7 +88,13 @@ class PgDumper
|
|
88
88
|
end
|
89
89
|
|
90
90
|
def output
|
91
|
-
File.path
|
91
|
+
if File.respond_to?(:path)
|
92
|
+
File.path(@output)
|
93
|
+
elsif @output.respond_to?(:to_path)
|
94
|
+
@output.to_path
|
95
|
+
else
|
96
|
+
@output
|
97
|
+
end
|
92
98
|
end
|
93
99
|
|
94
100
|
def tempfile
|
data/lib/pg_dumper/version.rb
CHANGED
data/test.sh
ADDED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pg_dumper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2011-12-06 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
16
|
-
requirement: &
|
16
|
+
requirement: &70199057823320 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: '2.7'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70199057823320
|
25
25
|
description: Provides abstraction layer between pg_dump utility and ruby. Also adds
|
26
26
|
rake task to easily dump database with or without data.
|
27
27
|
email:
|
@@ -31,6 +31,7 @@ extensions: []
|
|
31
31
|
extra_rdoc_files: []
|
32
32
|
files:
|
33
33
|
- .gitignore
|
34
|
+
- .travis.yml
|
34
35
|
- Gemfile
|
35
36
|
- Guardfile
|
36
37
|
- README.md
|
@@ -42,6 +43,7 @@ files:
|
|
42
43
|
- lib/tasks/db_dump.rake
|
43
44
|
- pg_dumper.gemspec
|
44
45
|
- spec/pg_dumper_spec.rb
|
46
|
+
- test.sh
|
45
47
|
homepage: ''
|
46
48
|
licenses: []
|
47
49
|
post_install_message:
|