pg_examiner 0.4.5 → 0.4.6
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/README.md +2 -0
- data/lib/pg_examiner/version.rb +1 -1
- data/pg_examiner.gemspec +1 -2
- data/spec/constraint_spec.rb +9 -2
- data/spec/sequence_spec.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 145e177c4bd79bd7095003f27a6acaf84818dca4
|
4
|
+
data.tar.gz: f5c348a076e63d43664bee06c4db303aaf1e9126
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 279736308553781e3f7abc4e44162e11338024f8733417669c0cb97d6393cdf890f590fdb5839527152f1a24d244f21232305edf0d5f17e694234196060083ef
|
7
|
+
data.tar.gz: 9dd36107d9bb80061b7345001a1c406b142f3c34bdad241cdc3fb26ccccdc428c30a97efa12d79dce2f40e2ba7446d9a796d0e308b53056a26c2502b5d172728
|
data/README.md
CHANGED
@@ -51,6 +51,8 @@ Or install it yourself as:
|
|
51
51
|
state1 == state2 # => true or false
|
52
52
|
```
|
53
53
|
|
54
|
+
Note that while the 'pg' gem is not a hard dependency, for compatibility with JRuby, you will need either the 'pg' or 'jruby-pg' gem.
|
55
|
+
|
54
56
|
## Contributing
|
55
57
|
|
56
58
|
1. Fork it ( https://github.com/[my-github-username]/pg_examiner/fork )
|
data/lib/pg_examiner/version.rb
CHANGED
data/pg_examiner.gemspec
CHANGED
@@ -18,8 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ['lib']
|
20
20
|
|
21
|
-
spec.
|
22
|
-
|
21
|
+
spec.add_development_dependency 'pg'
|
23
22
|
spec.add_development_dependency 'bundler', '~> 1.6'
|
24
23
|
spec.add_development_dependency 'rake'
|
25
24
|
spec.add_development_dependency 'rspec'
|
data/spec/constraint_spec.rb
CHANGED
@@ -92,10 +92,17 @@ describe PGExaminer do
|
|
92
92
|
|
93
93
|
it "should consider constraint validation when determining table equivalency" do
|
94
94
|
a = examine <<-SQL
|
95
|
+
-- In Postgres 9.6 and up, you can't simply declare that a check
|
96
|
+
-- constraint on a new table isn't valid - they're always considered valid
|
97
|
+
-- for a new table.
|
95
98
|
CREATE TABLE test_table (
|
96
|
-
a integer
|
97
|
-
CONSTRAINT con CHECK (a > 0) NOT VALID
|
99
|
+
a integer
|
98
100
|
);
|
101
|
+
|
102
|
+
INSERT INTO test_table (a) VALUES (1);
|
103
|
+
|
104
|
+
ALTER TABLE test_table
|
105
|
+
ADD CONSTRAINT con CHECK (a > 0) NOT VALID;
|
99
106
|
SQL
|
100
107
|
|
101
108
|
b = examine <<-SQL
|
data/spec/sequence_spec.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pg_examiner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Hanks
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pg
|
@@ -17,7 +17,7 @@ dependencies:
|
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
|
-
type: :
|
20
|
+
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|