pgdiff 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.rdoc +3 -0
- data/bin/pgdiff +0 -3
- data/lib/diff.rb +2 -2
- metadata +10 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 68b437ba9b29ffad626470871d071797eb01db9e0ef80e46036ac894cd389ee7
|
4
|
+
data.tar.gz: ab86aaa142d6e7f5f8f883c249edf46054524e820c589c10c5b9066a207bbb9c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dbf27f416b4aa28071de9754ad81d626ce3d3f1680b5db41bc4779042cf01fc1b51609b68be93dc0be29fc503e67d2a89b31fd96a0d26926595683795de222d5
|
7
|
+
data.tar.gz: 2e6ab376273507606fa28a70e8116d9522353524129d63b4d98137aead8c9855d772a0b09dda218049db16f64aa4fa490a5ed6e0ded28292a01a96cbf8e2968f
|
data/CHANGELOG.rdoc
CHANGED
data/bin/pgdiff
CHANGED
@@ -23,9 +23,6 @@ if ARGV.length != 2
|
|
23
23
|
"more information about how to format connection strings see http://www.rubydoc.info/gems/pg/PG/Connection:initialize")
|
24
24
|
end
|
25
25
|
|
26
|
-
source_db = ARGV[0]
|
27
|
-
target_db = ARGV[1]
|
28
|
-
|
29
26
|
diff = PgDiff::Diff.new(ARGV[0], ARGV[1])
|
30
27
|
diff.run_compare
|
31
28
|
puts diff.output
|
data/lib/diff.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
module PgDiff
|
2
2
|
class Diff
|
3
3
|
def initialize(old_db_spec, new_db_spec)
|
4
|
-
@old_conn =
|
5
|
-
@new_conn =
|
4
|
+
@old_conn = PG::Connection.new(old_db_spec)
|
5
|
+
@new_conn = PG::Connection.new(new_db_spec)
|
6
6
|
@sections = [
|
7
7
|
:domains_drop,
|
8
8
|
:domains_create,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pgdiff
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Charlie Savage
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-05-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pg
|
@@ -16,16 +16,18 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.18.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
27
|
-
description:
|
28
|
-
|
26
|
+
version: 0.18.0
|
27
|
+
description: 'Compares two PostgreSQL databases and generates the SQL statements needed
|
28
|
+
to make their structure the same.
|
29
|
+
|
30
|
+
'
|
29
31
|
email:
|
30
32
|
executables:
|
31
33
|
- pgdiff
|
@@ -58,7 +60,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
58
60
|
requirements:
|
59
61
|
- - ">="
|
60
62
|
- !ruby/object:Gem::Version
|
61
|
-
version: 1.
|
63
|
+
version: 2.1.0
|
62
64
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
63
65
|
requirements:
|
64
66
|
- - ">="
|
@@ -66,7 +68,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
66
68
|
version: '0'
|
67
69
|
requirements: []
|
68
70
|
rubyforge_project:
|
69
|
-
rubygems_version: 2.
|
71
|
+
rubygems_version: 2.7.6
|
70
72
|
signing_key:
|
71
73
|
specification_version: 4
|
72
74
|
summary: Provides a ruby script that compares two PostgreSQL databases and generates
|