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: b916a4b16cf31a2799f9513691052d87b71eadd8fe9e96897f9a94123f4d670d
4
- data.tar.gz: c86d19f089cc15288cb9a664da548f93e95c451827b6d030229d5c59dd86ffc3
3
+ metadata.gz: 2bcae1d47f44267453aaaf6928f5e62ddb6b49ff5bb1f045f46aea31fc7d8b05
4
+ data.tar.gz: 859b427c2235969091c80aeb4f43c8b396ba6a9c54d19aac393e9f3cede64471
5
5
  SHA512:
6
- metadata.gz: a4c57555371d9aa30151ffb5fd329f6e1bbee46a7bec5be0956eee482b2a7b8bdf9740c9a12466f03c8e57d604d802f82abce1cd95818615b255c8fcc2619a7c
7
- data.tar.gz: ed0865a617ce28462019287d4a1d1db62ea42f34c98e13d4cad8a80bcd5ab92a9b78599e7912691102e2698bc79d2055e68e01cafc721829b0b7f7e126e68aea
6
+ metadata.gz: d47dddf87abc9126064f870ad38a730f11b871fed40c9a2e0b131d2ed4ef7f201edf01db1fc364f3fba56f891e9c3972486fc0f79d439e8f25bca422baae9681
7
+ data.tar.gz: 0a10698d05e4582cc676e08f40cd188e9ab7129dafe2899bd2b3db5b4e48cc89bb3fc1a10f9ad1ef25745054653b6aac826edc1246d3ea7f9f01a9b08253b027
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.6.1] - 2025-11-24
4
+
5
+ - Fix bug with aggregate filter where clause
6
+
3
7
  ## [0.6.0] - 2025-08-21
4
8
 
5
9
  - Add preprocessors config that allows applying text transforms to the input before parsing
@@ -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
- # Inline non-foreign key constraints into table declaration
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 .*)$/, "")
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActiveRecordPgFormatDbStructure
4
- VERSION = "0.6.0"
4
+ VERSION = "0.6.1"
5
5
  end
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.0
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-08-21 00:00:00.000000000 Z
10
+ date: 2025-11-24 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: pg_query