activerecord-pg-format-db-structure 0.6.0 → 0.6.1
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
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2bcae1d47f44267453aaaf6928f5e62ddb6b49ff5bb1f045f46aea31fc7d8b05
|
|
4
|
+
data.tar.gz: 859b427c2235969091c80aeb4f43c8b396ba6a9c54d19aac393e9f3cede64471
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d47dddf87abc9126064f870ad38a730f11b871fed40c9a2e0b131d2ed4ef7f201edf01db1fc364f3fba56f891e9c3972486fc0f79d439e8f25bca422baae9681
|
|
7
|
+
data.tar.gz: 0a10698d05e4582cc676e08f40cd188e9ab7129dafe2899bd2b3db5b4e48cc89bb3fc1a10f9ad1ef25745054653b6aac826edc1246d3ea7f9f01a9b08253b027
|
data/CHANGELOG.md
CHANGED
|
@@ -125,6 +125,8 @@ module ActiveRecordPgFormatDbStructure
|
|
|
125
125
|
output.append_token
|
|
126
126
|
output.pop_scope
|
|
127
127
|
output.append_scope(type:, indent: 0)
|
|
128
|
+
in { current_token: WHERE, inside: PARENS }
|
|
129
|
+
output.append_token
|
|
128
130
|
in {
|
|
129
131
|
current_token: FROM | WHERE | GROUP | ORDER | WINDOW | HAVING | LIMIT | OFFSET | FETCH | FOR | UNION |
|
|
130
132
|
INTERSECT | EXCEPT => token_type
|
|
@@ -4,7 +4,8 @@ require_relative "base"
|
|
|
4
4
|
|
|
5
5
|
module ActiveRecordPgFormatDbStructure
|
|
6
6
|
module Preprocessors
|
|
7
|
-
#
|
|
7
|
+
# Remove \restrict and \unrestrict pragmas added by newer versions
|
|
8
|
+
# of pg_dump
|
|
8
9
|
class RemoveRestrictPragmas < Base
|
|
9
10
|
def preprocess!
|
|
10
11
|
source.gsub!(/^(\\restrict .*)$/, "")
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: activerecord-pg-format-db-structure
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
4
|
+
version: 0.6.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jell
|
|
8
8
|
bindir: exe
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 2025-
|
|
10
|
+
date: 2025-11-24 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: pg_query
|