release-notes 2.0.0 → 3.0.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.
@@ -1,19 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Release
4
- module Notes
5
- class DateFormat
6
- attr_reader :time_now
7
- delegate :timezone, to: :"Release::Notes.configuration"
8
-
9
- def initialize
10
- Time.zone = timezone
11
- end
12
-
13
- def date_humanized(date: nil)
14
- date = date.present? ? Time.zone.parse(date) : Time.zone.now
15
- date.strftime("%B %d, %Y %r %Z")
16
- end
17
- end
18
- end
19
- end
@@ -1,24 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Release
4
- module Notes
5
- module PrettyPrint
6
- extend ActiveSupport::Concern
7
-
8
- included do
9
- delegate :all_labels, to: :"Release::Notes.configuration"
10
-
11
- def prettify(line:)
12
- line.gsub(labels_regex, "").strip
13
- end
14
- end
15
-
16
- private
17
-
18
- # @api private
19
- def labels_regex
20
- Regexp.new all_labels, Regexp::IGNORECASE
21
- end
22
- end
23
- end
24
- end