pg_dumper 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  class PgDumper
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
data/lib/pg_dumper.rb CHANGED
@@ -9,7 +9,7 @@ class PgDumper
9
9
  attr_reader :output
10
10
 
11
11
  def initialize database, binary = nil
12
- @database = database
12
+ @database = database or raise "no database given"
13
13
  @args = []
14
14
  @options = {}
15
15
  @binary = binary
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.1
4
+ version: 0.1.2
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: &70196580035200 !ruby/object:Gem::Requirement
16
+ requirement: &70246974381560 !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: *70196580035200
24
+ version_requirements: *70246974381560
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: