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 ADDED
@@ -0,0 +1,7 @@
1
+ rvm:
2
+ - ree
3
+ - 1.8.7
4
+ - 1.9.2
5
+ - 1.9.3
6
+ script: rspec spec
7
+ bundler_args: --without darwin development
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, *args, database]).to_s
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(@output)
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
@@ -1,3 +1,3 @@
1
1
  class PgDumper
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
data/test.sh ADDED
@@ -0,0 +1,2 @@
1
+ #!/bin/sh
2
+ rvm 1.8.7,ree,1.9.2,1.9.3 exec bundle exec rspec spec
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.6
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: &70122595892840 !ruby/object:Gem::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: *70122595892840
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: