File tree 3 files changed +58
-0
lines changed
3 files changed +58
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,8 @@ def header
36
36
end
37
37
38
38
def validate_authors
39
+ return if no_changes?
40
+
39
41
authors =
40
42
lines . reverse . find { |line | line . match? ( /\* [^\d \s ]+(\s [^\d \s ]+)*\* / ) }
41
43
@@ -87,6 +89,10 @@ def validate_trailing_whitespace
87
89
end
88
90
89
91
private
92
+ def no_changes?
93
+ lines . first == "* No changes."
94
+ end
95
+
90
96
def add_offense ( ...)
91
97
@offenses << Offense . new ( ...)
92
98
end
Original file line number Diff line number Diff line change
1
+ ## Rails 7.1.0.rc1 (September 13, 2023) ##
2
+
3
+ * No changes.
4
+
5
+
6
+ ## Rails 7.1.0.beta1 (September 13, 2023) ##
7
+
8
+ * Fix ` simple_format ` with blank ` wrapper_tag ` option returns plain html tag
9
+
10
+ By default ` simple_format ` method returns the text wrapped with ` <p> ` . But if we explicitly specify
11
+ the ` wrapper_tag: nil ` in the options, it returns the text wrapped with ` <></> ` tag.
12
+
13
+ Before:
14
+
15
+ ``` ruby
16
+ simple_format(" Hello World" , {}, { wrapper_tag: nil })
17
+ # <>Hello World</>
18
+ ```
19
+
20
+ After:
21
+
22
+ ` ` ` ruby
23
+ simple_format("Hello World", {}, { wrapper_tag: nil })
24
+ # <p>Hello World</p>
25
+ ` ` `
26
+
27
+ * Akhil G Krishnan * , * Junichi Ito *
28
+
29
+ * Don ' t double-encode nested `field_id` and `field_name` index values
30
+
31
+ Pass `index: @options` as a default keyword argument to `field_id` and
32
+ `field_name` view helper methods.
33
+
34
+ *Sean Doyle*
35
+
36
+ * Allow opting in/out of `Link preload` headers when calling `stylesheet_link_tag` or `javascript_include_tag`
37
+
38
+ ```ruby
39
+ # will exclude header, even if setting is enabled:
40
+ javascript_include_tag("http://example.com/all.js", preload_links_header: false)
41
+
42
+ # will include header, even if setting is disabled:
43
+ stylesheet_link_tag("http://example.com/all.js", preload_links_header: true)
44
+ ```
45
+
46
+ *Alex Ghiculescu*
Original file line number Diff line number Diff line change @@ -54,6 +54,12 @@ def test_release_header_is_not_treated_as_offense
54
54
assert_equal 0 , offenses . length
55
55
end
56
56
57
+ def test_no_changes_not_treated_as_offense
58
+ @changelog = changelog_fixture ( "action_mailbox.md" )
59
+
60
+ assert_equal 0 , offenses . length
61
+ end
62
+
57
63
def test_validate_authors
58
64
assert_offense ( <<~CHANGELOG )
59
65
* Fix issue in CHANGELOG linting
You can’t perform that action at this time.
0 commit comments