annotato 0.2.4 → 0.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7495fe2d16ba0203b006d5cdae3e4106d0cb3f11b28b76086f9ce01b8b5d32a3
4
- data.tar.gz: d5099b1821edd37536742c8eab1d30df30ac445e949ae5620a13907338e095c9
3
+ metadata.gz: c63b300fc1c7855b9e33b98a927a7abb3d344bb6d320ef83d31996dfd0ca0a27
4
+ data.tar.gz: f85439c5160608f97aeb3bc6587f93cd4f9354fb0c6135f3edc329f67721bfd9
5
5
  SHA512:
6
- metadata.gz: 958ef330cd3a75c32518e90648e1e50771552d9edc24ddbf862497c09ca0d05ac6d1a1f1c59d97252e52fb7760a97bebd9a423f73b41789eb49035a1f8f189ca
7
- data.tar.gz: c303fd131c8dee8c2e78dcb71dae2c640338acad8e3ea5f7efe846f0d081a4fa35c5da02caae39de42c2cc9e95d04c0363753fc608e1dcc18148b56567ba7873
6
+ metadata.gz: '020864e326b45d5b29992e30852406da821e7e66408b1a478fcaf0d4512995529908ff41082ea23d490eef56b7a08f1e7b369cd950cfe923800467689d90a697'
7
+ data.tar.gz: 615be8af1addb918a6814117b600e5c497a189822f97a2fd853eaec4dfc39d7ecc4d0352b868f4945adddbff3f52129402e6cf128b088fd8593e10f7e0350289
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- annotato (0.2.4)
4
+ annotato (0.2.6)
5
5
  rails (>= 6.0)
6
6
 
7
7
  GEM
@@ -5,7 +5,7 @@ module Annotato
5
5
  extend WrapHelper
6
6
 
7
7
  def self.format(conn, table_name)
8
- conn.check_constraints(table_name).map do |chk|
8
+ conn.check_constraints(table_name).sort_by(&:name).map do |chk|
9
9
  expr_clause = ""
10
10
  if chk.expression
11
11
  expr_clause = "\n" + wrap_sql(chk.expression, first_prefix: "# (", cont_prefix: "# ")
@@ -5,7 +5,7 @@ module Annotato
5
5
  extend WrapHelper
6
6
 
7
7
  def self.format(conn, table_name)
8
- conn.indexes(table_name).map do |idx|
8
+ conn.indexes(table_name).sort_by(&:name).map do |idx|
9
9
  cols_list = Array(idx.columns).join(',')
10
10
  unique_clause = idx.unique ? " unique" : ""
11
11
 
@@ -58,7 +58,6 @@ module Annotato
58
58
 
59
59
  # Skip writing if the annotation hasn't changed
60
60
  if old_annotation && old_annotation.strip == annotation.strip
61
- @output.puts "ℹ️ Skipped #{model.name} — annotation unchanged"
62
61
  return
63
62
  end
64
63
 
@@ -24,7 +24,7 @@ module Annotato
24
24
  return []
25
25
  end
26
26
 
27
- rows.map { |r| "# #{r['name']}" }
27
+ rows.map { |r| "# #{r['name']}" }.sort
28
28
  end
29
29
  end
30
30
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Annotato
4
- VERSION = "0.2.4"
4
+ VERSION = "0.2.6"
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: annotato
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Serhii Bodnaruk
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2026-06-30 00:00:00.000000000 Z
10
+ date: 2026-07-24 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: rails