easy_changelog 0.2.0 → 0.3.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 +8 -0
- data/Gemfile.lock +1 -1
- data/lib/easy_changelog/task_options_parser.rb +1 -0
- data/lib/easy_changelog/version.rb +1 -1
- data/lib/easy_changelog.rb +4 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3e89d4e58c276528951204d915ae67f2082004de2986bceea7b9645dae3a97bb
|
|
4
|
+
data.tar.gz: b812c744a04357a41f1326d560e9ef34020ecc4c40e0730823c8b489bc5e9801
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c17d7429a5903e0103785cf0567ee085e19dc0f1283db2b6d4c50967cefbfc6aaa68d031c5b4b2714fc772e5c78f4514d29f188de9e877bc211a4e093eb9fcab
|
|
7
|
+
data.tar.gz: 9c8a60a1b48e7a634b3479bd2438a0417e3cf489f149eafda5749db9716d0dc16072e49c33779f41fbf653a4e63bacf747453c1d27645fb2075e47144a979f1e
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
3
|
## master (unreleased)
|
|
4
|
+
|
|
5
|
+
## 0.3.0 (2025-01-22)
|
|
6
|
+
### New features
|
|
7
|
+
|
|
8
|
+
* [#beb193a](https://github.com/ivan05almeida/easy_changelog/commit/beb193a): Add release count method. ([@ivan05almeida][])
|
|
9
|
+
* [#1623408](https://github.com/ivan05almeida/easy_changelog/commit/1623408): Allow custom body entry. ([@ivan05almeida][])
|
|
10
|
+
|
|
11
|
+
## 0.2.0 (2025-01-22)
|
|
4
12
|
### New features
|
|
5
13
|
|
|
6
14
|
* [#b0faf01](https://github.com/ivan05almeida/easy_changelog/commit/b0faf01): Initialize EasyChangelog gem. ([@ivan05almeida][])
|
data/Gemfile.lock
CHANGED
|
@@ -11,6 +11,7 @@ class EasyChangelog
|
|
|
11
11
|
|
|
12
12
|
opts.banner = "Usage: rake changelog:#{type} [options]"
|
|
13
13
|
|
|
14
|
+
opts.on('-b', '--body=ARG', 'Changelog Body Entry') { |arg| options[:body] = arg }
|
|
14
15
|
opts.on('-r', '--ref-id=ARG', 'Ref ID') { |arg| options[:ref_id] = arg }
|
|
15
16
|
opts.on('-R', '--ref-type=ARG', 'Ref type (issues|pull|commit)') { |arg| options[:ref_type] = arg }
|
|
16
17
|
opts.on('-t', '--task-id=ARG', 'Task ID') { |arg| options[:task_id] = arg }
|
data/lib/easy_changelog.rb
CHANGED
|
@@ -43,6 +43,10 @@ class EasyChangelog
|
|
|
43
43
|
def read_entries
|
|
44
44
|
entry_paths.to_h { |path| [path, File.read(path)] }
|
|
45
45
|
end
|
|
46
|
+
|
|
47
|
+
def release_count(pattern)
|
|
48
|
+
File.read(EasyChangelog.configuration.changelog_filename).scan(pattern).size
|
|
49
|
+
end
|
|
46
50
|
end
|
|
47
51
|
|
|
48
52
|
attr_reader :header, :entries
|