File tree Expand file tree Collapse file tree 3 files changed +64
-0
lines changed Expand file tree Collapse file tree 3 files changed +64
-0
lines changed Original file line number Diff line number Diff line change @@ -115,6 +115,11 @@ def initialize(file)
115
115
116
116
def parse
117
117
until @buffer . eos?
118
+ if peek_release_header?
119
+ pop_entry
120
+ next parse_release_header
121
+ end
122
+
118
123
if peek_footer?
119
124
pop_entry
120
125
next parse_footer
@@ -136,6 +141,18 @@ def parse_line
136
141
137
142
FOOTER_TEXT = "Please check"
138
143
144
+ RELEASE_HEADER = "## Rails"
145
+
146
+ def peek_release_header?
147
+ @buffer . peek ( RELEASE_HEADER . length ) == RELEASE_HEADER
148
+ end
149
+
150
+ def parse_release_header
151
+ @buffer . scan (
152
+ /#{ RELEASE_HEADER } .*##\n \n /o
153
+ )
154
+ end
155
+
139
156
def parse_footer
140
157
@buffer . scan (
141
158
/#{ FOOTER_TEXT } \[ \d -\d -stable\] \( .*\) for previous changes\. \n /o
Original file line number Diff line number Diff line change
1
+ ## Rails 7.1.0.beta1 (September 13, 2023) ##
2
+
3
+ * Fix ` simple_format ` with blank ` wrapper_tag ` option returns plain html tag
4
+
5
+ By default ` simple_format ` method returns the text wrapped with ` <p> ` . But if we explicitly specify
6
+ the ` wrapper_tag: nil ` in the options, it returns the text wrapped with ` <></> ` tag.
7
+
8
+ Before:
9
+
10
+ ``` ruby
11
+ simple_format(" Hello World" , {}, { wrapper_tag: nil })
12
+ # <>Hello World</>
13
+ ```
14
+
15
+ After:
16
+
17
+ ` ` ` ruby
18
+ simple_format("Hello World", {}, { wrapper_tag: nil })
19
+ # <p>Hello World</p>
20
+ ` ` `
21
+
22
+ * Akhil G Krishnan * , * Junichi Ito *
23
+
24
+ * Don ' t double-encode nested `field_id` and `field_name` index values
25
+
26
+ Pass `index: @options` as a default keyword argument to `field_id` and
27
+ `field_name` view helper methods.
28
+
29
+ *Sean Doyle*
30
+
31
+ * Allow opting in/out of `Link preload` headers when calling `stylesheet_link_tag` or `javascript_include_tag`
32
+
33
+ ```ruby
34
+ # will exclude header, even if setting is enabled:
35
+ javascript_include_tag("http://example.com/all.js", preload_links_header: false)
36
+
37
+ # will include header, even if setting is disabled:
38
+ stylesheet_link_tag("http://example.com/all.js", preload_links_header: true)
39
+ ```
40
+
41
+ *Alex Ghiculescu*
Original file line number Diff line number Diff line change @@ -48,6 +48,12 @@ def test_header_ending_with_star_not_treated_as_author
48
48
assert_equal 0 , offenses . length
49
49
end
50
50
51
+ def test_release_header_is_not_treated_as_offense
52
+ @changelog = changelog_fixture ( "action_view.md" )
53
+
54
+ assert_equal 0 , offenses . length
55
+ end
56
+
51
57
def test_validate_authors
52
58
assert_offense ( <<~CHANGELOG )
53
59
* Fix issue in CHANGELOG linting
You can’t perform that action at this time.
0 commit comments