easy_changelog 0.2.0 → 0.3.1
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 +13 -0
- data/Gemfile.lock +1 -1
- data/lib/easy_changelog/configuration.rb +1 -1
- data/lib/easy_changelog/railtie.rb +2 -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: 7122edc736d5585ba153c6010848ed2a33dd7d31456cc6ff41b14c7fcd2412f5
|
|
4
|
+
data.tar.gz: 6dbc04e304cff63cd3a7fd83d183533c0c77256f7b72c589e4809d9125b275f8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ca6974dacf4d2ee3ad00de98b665b2dd859ecb4b3071657c1b4a2c9c44bfdbb46b3d32124955b7f869d36e090ae61c1e35d2843feb6fcd92e1d62238a9479271
|
|
7
|
+
data.tar.gz: 1ee1cc13310fb1b9ea15537b2c9e3fba4d8b5e3ef25227121e97235df50bf18eb62ae5d12ba2283b34ddc0bd8a19fe8c130be1fb50b7da51f92ad86491ac1417
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
3
|
## master (unreleased)
|
|
4
|
+
|
|
5
|
+
## 0.3.1 (2025-01-22)
|
|
6
|
+
### Bug fixes
|
|
7
|
+
|
|
8
|
+
* [#e2b33b8](https://github.com/ivan05almeida/easy_changelog/commit/e2b33b8): Fix railtie module. ([@ivan05almeida][])
|
|
9
|
+
|
|
10
|
+
## 0.3.0 (2025-01-22)
|
|
11
|
+
### New features
|
|
12
|
+
|
|
13
|
+
* [#beb193a](https://github.com/ivan05almeida/easy_changelog/commit/beb193a): Add release count method. ([@ivan05almeida][])
|
|
14
|
+
* [#1623408](https://github.com/ivan05almeida/easy_changelog/commit/1623408): Allow custom body entry. ([@ivan05almeida][])
|
|
15
|
+
|
|
16
|
+
## 0.2.0 (2025-01-22)
|
|
4
17
|
### New features
|
|
5
18
|
|
|
6
19
|
* [#b0faf01](https://github.com/ivan05almeida/easy_changelog/commit/b0faf01): Initialize EasyChangelog gem. ([@ivan05almeida][])
|
data/Gemfile.lock
CHANGED
|
@@ -72,7 +72,7 @@ class EasyChangelog
|
|
|
72
72
|
end
|
|
73
73
|
|
|
74
74
|
def user_signature=(value)
|
|
75
|
-
raise ArgumentError, 'user_signature must be a Regexp' unless value.is_a?(Regexp)
|
|
75
|
+
raise ArgumentError, 'user_signature must be a Regexp' unless value.is_a?(Regexp) || value.nil?
|
|
76
76
|
|
|
77
77
|
@user_signature = value
|
|
78
78
|
end
|
|
@@ -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
|