activerecord-clean-db-structure 0.2.3 → 0.2.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 19fbf85c44fea762feb10a7f4e6fabaaddec6e6d
4
- data.tar.gz: 7daa41aacfe2c08a238e96de8606d42ea5fe8f52
3
+ metadata.gz: a79966dcd7df589f990e003885acf3eb866f26a3
4
+ data.tar.gz: 8e1e597876d1b84ece45dd0fecbf4d295f2fa6c1
5
5
  SHA512:
6
- metadata.gz: 8ca702bb6d0cfedb412fb2d3dda34f87505e1a6bfecc68d94a9f86b94617348fe2369a6119f2dd4c10f3080b82f741dde24a6e360caf48bc3a48c1c46a9c9a59
7
- data.tar.gz: 2b917375e35bb835da6d1e38168b3b6225247aa867f313f59c9011af22828dd185fe137a8bac43b359460f4d219b713c771c21ab88909ad0775b14fe1ce2c9af
6
+ metadata.gz: 855f003d911bb68edc49d3dd58f4c4e290e2f6ab74e4060667da8a852e9a4296696e7753b15e4bbf3450f0cf9a539ca5062015cbc0dde5379f9ed078b0ed11ab
7
+ data.tar.gz: 10c93aee292993bd84cb480f5c88009d17789c909f85835c12799265ef3a8110d44e8ff63abb42b7f673819ba1127335b4fe6b88f80becd15f432510bf46a0df
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.4 2017-11-02
4
+
5
+ * Remove pg_buffercache extension if present (its only used for statistics purposes)
6
+ * Remove extension comments if present - they can prevent non-superusers from
7
+ restoring the tables, and are never used together with Rails anyway
8
+
9
+
3
10
  ## 0.2.3 2017-10-21
4
11
 
5
12
  * pg 10.x adds AS Integer to structure.sql format [Nathan Woodhull](https://github.com/woodhull)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- activerecord-clean-db-structure (0.2.3)
4
+ activerecord-clean-db-structure (0.2.4)
5
5
  activerecord (>= 4.2)
6
6
 
7
7
  GEM
@@ -18,9 +18,15 @@ module ActiveRecordCleanDbStructure
18
18
 
19
19
  # Remove pg_stat_statements extension (its not relevant to the code)
20
20
  dump.gsub!(/^CREATE EXTENSION IF NOT EXISTS pg_stat_statements.*/, '')
21
- dump.gsub!(/^COMMENT ON EXTENSION pg_stat_statements.*/, '')
22
21
  dump.gsub!(/^-- Name: (EXTENSION )?pg_stat_statements;.*/, '')
23
22
 
23
+ # Remove pg_buffercache extension (its not relevant to the code)
24
+ dump.gsub!(/^CREATE EXTENSION IF NOT EXISTS pg_buffercache.*/, '')
25
+ dump.gsub!(/^-- Name: (EXTENSION )?pg_buffercache;.*/, '')
26
+
27
+ # Remove comments on extensions, they create problems if the extension is owned by another user
28
+ dump.gsub!(/^COMMENT ON EXTENSION .*/, '')
29
+
24
30
  # Remove useless, version-specific parts of comments
25
31
  dump.gsub!(/^-- (.*); Schema: (public|-); Owner: -.*/, '-- \1')
26
32
 
@@ -1,3 +1,3 @@
1
1
  module ActiveRecordCleanDbStructure
2
- VERSION = '0.2.3'
2
+ VERSION = '0.2.4'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-clean-db-structure
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lukas Fittl
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-22 00:00:00.000000000 Z
11
+ date: 2017-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord