easy_changelog 0.3.0 → 0.3.2
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 +11 -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/tasks/changelog.rake +8 -0
- data/lib/easy_changelog/version.rb +1 -1
- data/lib/easy_changelog.rb +4 -4
- 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: 67a8b74013e659178c9d4eeab9218d505a786eb6f4255625222afa97e7a82814
|
|
4
|
+
data.tar.gz: 24c7bf302f69a192927817c87011fc9c3a39208f1d20f89376fac8f2c4c3cb5a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 58f64b76e0e01b9489968297a9c2f470906009d05820895e76c4263b9ddc68d8b4f27c061db2f20cb5862855073f32337d84ae9b925670c78cff738bd7d48e67
|
|
7
|
+
data.tar.gz: 832266dd39cd8b727e3e500c91c63377fa1b634c083f33a065cb005f6503bd0799d46b66627f374c4b1fecc0264ddf54843067ea0a7997bc0a536c35b0f7190a
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
## master (unreleased)
|
|
4
4
|
|
|
5
|
+
## 0.3.2 (2025-01-22)
|
|
6
|
+
### Bug fixes
|
|
7
|
+
|
|
8
|
+
* [#002a5fc](https://github.com/ivan05almeida/easy_changelog/commit/002a5fc): Fix tasks not loading environment. ([@ivan05almeida][])
|
|
9
|
+
* [#04cd53b](https://github.com/ivan05almeida/easy_changelog/commit/04cd53b): Fix unreleased content when starting a new changelog. ([@ivan05almeida][])
|
|
10
|
+
|
|
11
|
+
## 0.3.1 (2025-01-22)
|
|
12
|
+
### Bug fixes
|
|
13
|
+
|
|
14
|
+
* [#e2b33b8](https://github.com/ivan05almeida/easy_changelog/commit/e2b33b8): Fix railtie module. ([@ivan05almeida][])
|
|
15
|
+
|
|
5
16
|
## 0.3.0 (2025-01-22)
|
|
6
17
|
### New features
|
|
7
18
|
|
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
|
|
@@ -4,9 +4,14 @@ require 'easy_changelog'
|
|
|
4
4
|
require 'easy_changelog/task_options_parser'
|
|
5
5
|
|
|
6
6
|
namespace :changelog do
|
|
7
|
+
def environment
|
|
8
|
+
Rake.application['environment'].invoke if Rake::Task.task_defined?('environment')
|
|
9
|
+
end
|
|
10
|
+
|
|
7
11
|
EasyChangelog.configuration.changelog_types.each do |type|
|
|
8
12
|
desc "Create a Changelog entry (#{type})"
|
|
9
13
|
task type do
|
|
14
|
+
environment
|
|
10
15
|
options = EasyChangelog::TaskOptionsParser.parse(type, ARGV)
|
|
11
16
|
options[:type] = type
|
|
12
17
|
|
|
@@ -20,6 +25,7 @@ namespace :changelog do
|
|
|
20
25
|
|
|
21
26
|
desc 'Merge entries and delete them'
|
|
22
27
|
task :merge do
|
|
28
|
+
environment
|
|
23
29
|
raise 'No entries!' unless EasyChangelog.pending?
|
|
24
30
|
|
|
25
31
|
EasyChangelog.merge_and_delete!
|
|
@@ -30,6 +36,7 @@ namespace :changelog do
|
|
|
30
36
|
|
|
31
37
|
desc 'Check for no pending changelog entries'
|
|
32
38
|
task :check_clean do
|
|
39
|
+
environment
|
|
33
40
|
next unless EasyChangelog.pending?
|
|
34
41
|
|
|
35
42
|
puts '*** Pending changelog entries!'
|
|
@@ -39,6 +46,7 @@ namespace :changelog do
|
|
|
39
46
|
|
|
40
47
|
desc 'Add release entry'
|
|
41
48
|
task :release do
|
|
49
|
+
environment
|
|
42
50
|
EasyChangelog.release!
|
|
43
51
|
cmd = "git commit -a -m 'Update Changelog'"
|
|
44
52
|
puts cmd
|
data/lib/easy_changelog.rb
CHANGED
|
@@ -131,12 +131,12 @@ class EasyChangelog
|
|
|
131
131
|
@header = ss.scan_until(EasyChangelog.configuration.unreleased_header)
|
|
132
132
|
unreleased = ss.scan_until(/\n(?=## )/m)
|
|
133
133
|
|
|
134
|
-
if unreleased
|
|
135
|
-
@unreleased = parse_release(unreleased)
|
|
136
|
-
@rest = ss.rest
|
|
137
|
-
else
|
|
134
|
+
if unreleased.nil?
|
|
138
135
|
@unreleased = parse_release(ss.rest)
|
|
139
136
|
@rest = ''
|
|
137
|
+
else
|
|
138
|
+
@unreleased = parse_release(unreleased)
|
|
139
|
+
@rest = ss.rest
|
|
140
140
|
end
|
|
141
141
|
end
|
|
142
142
|
|