annotaterb 4.8.0 → 4.9.0
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/CHANGELOG.md +15 -0
- data/VERSION +1 -1
- data/lib/annotate_rb/model_annotator/check_constraint_annotation/annotation_builder.rb +7 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '09caaf3fa0cb79967a6273386ea6e181e6f22c614ea2e43da32b67abe877cf95'
|
|
4
|
+
data.tar.gz: a0181d18310997f66cfb79f3e0d3fdb030708ff55c7492f2821d9024126c3f55
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5be5ad218586f3a24854edc995ddaf3334507a46c54bfa28325e71706a502a2ce1ca5b8aa53822cf40d51724f16cb9086ea480e61aba7954e916c270484763d5
|
|
7
|
+
data.tar.gz: 9ab288486df138231ad168161238e08442b9b80e7b6f06adc21266d0ce002116bf7035313213e6a2db7df743e5f731e0ef2b18df43993837aa4debbf0f9137fd
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [v4.8.0](https://github.com/drwl/annotaterb/tree/v4.8.0) (2024-05-14)
|
|
4
|
+
|
|
5
|
+
[Full Changelog](https://github.com/drwl/annotaterb/compare/v4.7.1...v4.8.0)
|
|
6
|
+
|
|
7
|
+
**Closed issues:**
|
|
8
|
+
|
|
9
|
+
- Nested module models and unexpected annotations [\#106](https://github.com/drwl/annotaterb/issues/106)
|
|
10
|
+
|
|
11
|
+
**Merged pull requests:**
|
|
12
|
+
|
|
13
|
+
- Bump version to v4.8.0 [\#115](https://github.com/drwl/annotaterb/pull/115) ([drwl](https://github.com/drwl))
|
|
14
|
+
- Generate changelog for v4.7.1 [\#114](https://github.com/drwl/annotaterb/pull/114) ([drwl](https://github.com/drwl))
|
|
15
|
+
- Support annotating model fixture files [\#110](https://github.com/drwl/annotaterb/pull/110) ([drwl](https://github.com/drwl))
|
|
16
|
+
- Make `exclude_tests` option able to override other exclude options [\#107](https://github.com/drwl/annotaterb/pull/107) ([drwl](https://github.com/drwl))
|
|
17
|
+
|
|
3
18
|
## [v4.7.1](https://github.com/drwl/annotaterb/tree/v4.7.1) (2024-05-09)
|
|
4
19
|
|
|
5
20
|
[Full Changelog](https://github.com/drwl/annotaterb/compare/v4.7.0...v4.7.1)
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
4.
|
|
1
|
+
4.9.0
|
|
@@ -24,7 +24,13 @@ module AnnotateRb
|
|
|
24
24
|
|
|
25
25
|
max_size = check_constraints.map { |check_constraint| check_constraint.name.size }.max + 1
|
|
26
26
|
check_constraints.sort_by(&:name).each do |check_constraint|
|
|
27
|
-
expression =
|
|
27
|
+
expression = if check_constraint.expression
|
|
28
|
+
not_validated = if !check_constraint.validated?
|
|
29
|
+
"NOT VALID"
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
"(#{check_constraint.expression.squish}) #{not_validated}".squish
|
|
33
|
+
end
|
|
28
34
|
|
|
29
35
|
constraint_info += if @options[:format_markdown]
|
|
30
36
|
cc_info_in_markdown(check_constraint.name, expression)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: annotaterb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.
|
|
4
|
+
version: 4.9.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andrew W. Lee
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-05-
|
|
11
|
+
date: 2024-05-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Annotates Rails/ActiveRecord Models, routes, fixtures, and others based
|
|
14
14
|
on the database schema.
|