ast-merge 2.0.8 → 2.0.9
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
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +18 -1
- data/LICENSE.txt +1 -1
- data/README.md +2 -2
- data/lib/ast/merge/navigable_statement.rb +3 -0
- data/lib/ast/merge/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +6 -6
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b3751d56fac80906392c20aabf12c17f7dfc658b677a26866c42d842666e51f6
|
|
4
|
+
data.tar.gz: 41d59c958a7f0edae861bb0b3c5516f1b7120c85b4dc240880c5e9179017d210
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 70ae22f513f5de125cbdea642483dbbc9c073f9133dd45b7b78d1a3dc0892757c3007fc252a9eb38b0d61e0423595976b1fb6f4581ff225792d5d12cf133138f
|
|
7
|
+
data.tar.gz: 802ed0bb804cbd92f1d85250726a573e953783e325debba0a87d5fc344cef48bac5b2f15d585e91d789a11f9d6fb02230d1d3971f40172aab5d01217a55c8138
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/CHANGELOG.md
CHANGED
|
@@ -30,6 +30,21 @@ Please file a bug if you notice a violation of semantic versioning.
|
|
|
30
30
|
|
|
31
31
|
### Security
|
|
32
32
|
|
|
33
|
+
## [2.0.9] - 2026-01-02
|
|
34
|
+
|
|
35
|
+
- TAG: [v2.0.9][2.0.9t]
|
|
36
|
+
- COVERAGE: 97.09% -- 2637/2716 lines in 48 files
|
|
37
|
+
- BRANCH COVERAGE: 89.64% -- 883/985 branches in 48 files
|
|
38
|
+
- 98.71% documented
|
|
39
|
+
|
|
40
|
+
### Fixed
|
|
41
|
+
|
|
42
|
+
- **`NavigableStatement.find_matching` now returns empty array when no criteria specified** -
|
|
43
|
+
Previously, when both `type: nil` and `text: nil` and no block was given, the method would
|
|
44
|
+
match ALL statements (since no conditions filtered anything out). This caused
|
|
45
|
+
`PartialTemplateMerger` to incorrectly report `has_section: true` when `anchor: nil` was passed.
|
|
46
|
+
Now returns an empty array when no criteria are specified.
|
|
47
|
+
|
|
33
48
|
## [2.0.8] - 2026-01-01
|
|
34
49
|
|
|
35
50
|
- TAG: [v2.0.8][2.0.8t]
|
|
@@ -429,7 +444,9 @@ Please file a bug if you notice a violation of semantic versioning.
|
|
|
429
444
|
|
|
430
445
|
- Initial release
|
|
431
446
|
|
|
432
|
-
[Unreleased]: https://github.com/kettle-rb/ast-merge/compare/v2.0.
|
|
447
|
+
[Unreleased]: https://github.com/kettle-rb/ast-merge/compare/v2.0.9...HEAD
|
|
448
|
+
[2.0.9]: https://github.com/kettle-rb/ast-merge/compare/v2.0.8...v2.0.9
|
|
449
|
+
[2.0.9t]: https://github.com/kettle-rb/ast-merge/releases/tag/v2.0.9
|
|
433
450
|
[2.0.8]: https://github.com/kettle-rb/ast-merge/compare/v2.0.7...v2.0.8
|
|
434
451
|
[2.0.8t]: https://github.com/kettle-rb/ast-merge/releases/tag/v2.0.8
|
|
435
452
|
[2.0.7]: https://github.com/kettle-rb/ast-merge/compare/v2.0.6...v2.0.7
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
|
@@ -842,7 +842,7 @@ See [LICENSE.txt](LICENSE.txt) for the official [Copyright Notice](https://opens
|
|
|
842
842
|
|
|
843
843
|
<ul>
|
|
844
844
|
<li>
|
|
845
|
-
Copyright (c) 2025 Peter H. Boling, of
|
|
845
|
+
Copyright (c) 2025-2026 Peter H. Boling, of
|
|
846
846
|
<a href="https://discord.gg/3qme4XHNKN">
|
|
847
847
|
Galtzo.com
|
|
848
848
|
<picture>
|
|
@@ -1032,7 +1032,7 @@ Thanks for RTFM. ☺️
|
|
|
1032
1032
|
[📌gitmoji]: https://gitmoji.dev
|
|
1033
1033
|
[📌gitmoji-img]: https://img.shields.io/badge/gitmoji_commits-%20%F0%9F%98%9C%20%F0%9F%98%8D-34495e.svg?style=flat-square
|
|
1034
1034
|
[🧮kloc]: https://www.youtube.com/watch?v=dQw4w9WgXcQ
|
|
1035
|
-
[🧮kloc-img]: https://img.shields.io/badge/KLOC-2.
|
|
1035
|
+
[🧮kloc-img]: https://img.shields.io/badge/KLOC-2.716-FFDD67.svg?style=for-the-badge&logo=YouTube&logoColor=blue
|
|
1036
1036
|
[🔐security]: SECURITY.md
|
|
1037
1037
|
[🔐security-img]: https://img.shields.io/badge/security-policy-259D6C.svg?style=flat
|
|
1038
1038
|
[📄copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
|
|
@@ -93,6 +93,9 @@ module Ast
|
|
|
93
93
|
# @yield [NavigableStatement] Optional block for custom matching
|
|
94
94
|
# @return [Array<NavigableStatement>] Matching statements
|
|
95
95
|
def find_matching(statements, type: nil, text: nil, &block)
|
|
96
|
+
# If no criteria specified, return empty array (nothing to match)
|
|
97
|
+
return [] if type.nil? && text.nil? && !block_given?
|
|
98
|
+
|
|
96
99
|
statements.select do |stmt|
|
|
97
100
|
matches = true
|
|
98
101
|
matches &&= stmt.type.to_s == type.to_s if type
|
data/lib/ast/merge/version.rb
CHANGED
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ast-merge
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.
|
|
4
|
+
version: 2.0.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Peter H. Boling
|
|
@@ -66,7 +66,7 @@ dependencies:
|
|
|
66
66
|
version: '3.2'
|
|
67
67
|
- - ">="
|
|
68
68
|
- !ruby/object:Gem::Version
|
|
69
|
-
version: 3.2.
|
|
69
|
+
version: 3.2.3
|
|
70
70
|
type: :runtime
|
|
71
71
|
prerelease: false
|
|
72
72
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -76,7 +76,7 @@ dependencies:
|
|
|
76
76
|
version: '3.2'
|
|
77
77
|
- - ">="
|
|
78
78
|
- !ruby/object:Gem::Version
|
|
79
|
-
version: 3.2.
|
|
79
|
+
version: 3.2.3
|
|
80
80
|
- !ruby/object:Gem::Dependency
|
|
81
81
|
name: kettle-dev
|
|
82
82
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -356,10 +356,10 @@ licenses:
|
|
|
356
356
|
- MIT
|
|
357
357
|
metadata:
|
|
358
358
|
homepage_uri: https://ast-merge.galtzo.com/
|
|
359
|
-
source_code_uri: https://github.com/kettle-rb/ast-merge/tree/v2.0.
|
|
360
|
-
changelog_uri: https://github.com/kettle-rb/ast-merge/blob/v2.0.
|
|
359
|
+
source_code_uri: https://github.com/kettle-rb/ast-merge/tree/v2.0.9
|
|
360
|
+
changelog_uri: https://github.com/kettle-rb/ast-merge/blob/v2.0.9/CHANGELOG.md
|
|
361
361
|
bug_tracker_uri: https://github.com/kettle-rb/ast-merge/issues
|
|
362
|
-
documentation_uri: https://www.rubydoc.info/gems/ast-merge/2.0.
|
|
362
|
+
documentation_uri: https://www.rubydoc.info/gems/ast-merge/2.0.9
|
|
363
363
|
funding_uri: https://github.com/sponsors/pboling
|
|
364
364
|
wiki_uri: https://github.com/kettle-rb/ast-merge/wiki
|
|
365
365
|
news_uri: https://www.railsbling.com/tags/ast-merge
|
metadata.gz.sig
CHANGED
|
Binary file
|