release-notes 1.1.2 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 00bba072e88788aafc0b7282132b8b4331449698c52efd5e02ef7ec8aa6cd887
|
4
|
+
data.tar.gz: 1253b9609916db2d3dbe5ba9fc05e6971e96161423148c8f85cb3449571b9129
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57c5135666d3d80fc46255da671ebdddb15dcb4b85e8857ab183a23dea9b4a5054b1ba4703c1d558b3893d6a8a05a1adf1a1581b433d6d917dac957cc4cd0a61
|
7
|
+
data.tar.gz: 934c682e1d528c28fea604022ddcf8af0bd5524fc10e16e78fa11a529edf4686d628103a5051b5a04112af14c0e7145a658118a6d94653ddd06483a9ac8e8840
|
data/.travis.yml
CHANGED
@@ -11,6 +11,8 @@ env:
|
|
11
11
|
secure: ovawk+NnGZGW+hOeC3iPMZ9jKY5FvaxfHLj6XX4Vfe12cq0cdGYirW6pk2uKdJZdE0pC5q4sFv1ZTgcNSTySuNpQ9Gkp4xjcGEVr5JSdmVse8DuxttwkeSPt94DemyMK3f0A3dWN8OJF7/NQbacPeUuXryxmusCqJMlWccVYGeSQQNJ21mFfl2pCf6Z9qls4Q3rzXc4hsVQ5G1B/j9YcMjax0EwXI4cEq/6JadK4OmXrGkCw6M/wvBEqNyhLz+R/gcYiJZqYUETdncRuNiH8N6JKiaCnZUFkGY4bggpOvz29lj3JEQV9jY+3UBeqxuYj3glT7buEuf6//ARedY7IDlupkiDNuSpIKJhzIKAgitc/g+cnUflQV8PiImAEseO0OpoAJ7Bsa688EgyvMgo/kYwjHqZetvlUksQI+XyZ+o7/88LF2Qz4pbuBtdFC4DaKaeqQN5afIHSPtxhYwFA/n+GmY4jymj5ZWod9zZasVdlDgCQzgH5M1W7nEGun8mRW93wf8+3wAx+fXVbB67aDbqJFBJfH6zm/aBCN16kGkHUibRxUyb0F52woBQLUcOIr9Kbujp02D7IK3Z7PFz+DtHfA8aYRXxRDIHxx0tw91UxQzBinsq27kH8EWDmEKMHJeZlMRR4X4ijd6+KFoKUobXFblCeVeO0HCIBxpfTc39w=
|
12
12
|
script:
|
13
13
|
- bundle exec rubocop
|
14
|
+
- bundle exec rspec
|
15
|
+
|
14
16
|
after_success:
|
15
17
|
- bundle exec codeclimate-test-reporter
|
16
18
|
|
@@ -4,12 +4,12 @@ Release::Notes.configure do |config|
|
|
4
4
|
# The absolute path of your generated log.
|
5
5
|
# Defaults to `./RELEASE_NOTES.md`.
|
6
6
|
# @return [String]
|
7
|
-
# config.output_file =
|
7
|
+
# config.output_file = "./RELEASE_NOTES.md"
|
8
8
|
|
9
9
|
# The absolute path of the temporary generated log.
|
10
10
|
# Defaults to `./release-notes.tmp.md`.
|
11
11
|
# @return [String]
|
12
|
-
# config.temp_file =
|
12
|
+
# config.temp_file = "./release-notes.tmp.md"
|
13
13
|
|
14
14
|
# Determines whether to print commits with more than one parent.
|
15
15
|
# Defaults to `false`. For more, see
|
@@ -28,7 +28,7 @@ Release::Notes.configure do |config|
|
|
28
28
|
# Defaults to `%s` for subject. For more, see
|
29
29
|
# [Git Log Docs](https://git-scm.com/docs/git-log)
|
30
30
|
# @return [String]
|
31
|
-
# config.log_format =
|
31
|
+
# config.log_format = "- %s"
|
32
32
|
|
33
33
|
# Consider the limiting patterns to be extended regular expressions patterns
|
34
34
|
# when printing your git log.
|
@@ -58,22 +58,22 @@ Release::Notes.configure do |config|
|
|
58
58
|
# Controls the title used in your generated log for all bugs listed
|
59
59
|
# Defaults to `**Fixed bugs:**`.
|
60
60
|
# @return [String]
|
61
|
-
# config.bug_title =
|
61
|
+
# config.bug_title = "**Fixed bugs:**"
|
62
62
|
|
63
63
|
# Controls the title used in your generated log for all features listed
|
64
64
|
# Defaults to `**Implemented enhancements:**`.
|
65
65
|
# @return [String]
|
66
|
-
# config.feature_title =
|
66
|
+
# config.feature_title = "**Implemented enhancements:**"
|
67
67
|
|
68
68
|
# Controls the title used in your generated log for all misc commits listed
|
69
69
|
# Defaults to `**Miscellaneous:**`.
|
70
70
|
# @return [String]
|
71
|
-
# config.misc_title =
|
71
|
+
# config.misc_title = "**Miscellaneous:**"
|
72
72
|
|
73
73
|
# Controls the title used in your generated log for all commits listed
|
74
74
|
# Defaults to `**Other:**`.
|
75
75
|
# @return [String]
|
76
|
-
# config.log_all_title =
|
76
|
+
# config.log_all_title = "**Other:**"
|
77
77
|
|
78
78
|
# Controls whether all logs that do not match the other labels are listed
|
79
79
|
# Defaults to `false`
|
@@ -105,7 +105,7 @@ Release::Notes.configure do |config|
|
|
105
105
|
# Defaults to `America/New_York`. For more, see
|
106
106
|
# [ActiveSupport Time Zones](http://api.rubyonrails.org/classes/ActiveSupport/TimeZone.html)
|
107
107
|
# @return [String]
|
108
|
-
# config.timezone =
|
108
|
+
# config.timezone = "America/New_York"
|
109
109
|
|
110
110
|
# Controls whether your commit subject labels should be removed from the final
|
111
111
|
# ouput of your message on the generated log.
|
data/lib/release/notes/git.rb
CHANGED
@@ -13,7 +13,7 @@ module Release
|
|
13
13
|
|
14
14
|
def log(**opts)
|
15
15
|
"git log '#{opts[:tag_from]}'..'#{opts[:tag_to]}'" \
|
16
|
-
" --grep='#{opts[:label]}'" \
|
16
|
+
" --grep='#{opts[:label]}#{opts[:invert_grep]}'" \
|
17
17
|
" #{regex_type} #{grep_insensitive?}" \
|
18
18
|
" #{include_merges?} --format='#{log_format}'"
|
19
19
|
end
|
data/lib/release/notes/system.rb
CHANGED
data/lib/release/notes/write.rb
CHANGED
@@ -26,7 +26,7 @@ module Release
|
|
26
26
|
@title = title
|
27
27
|
@log_message = log_message
|
28
28
|
|
29
|
-
titles = title_present +
|
29
|
+
titles = title_present + format_line
|
30
30
|
digest(titles)
|
31
31
|
end
|
32
32
|
|
@@ -59,8 +59,10 @@ module Release
|
|
59
59
|
end
|
60
60
|
|
61
61
|
# @api private
|
62
|
-
def
|
63
|
-
prettify(line: link_messages) if prettify_messages?
|
62
|
+
def format_line
|
63
|
+
return "#{prettify(line: link_messages)}\n" if prettify_messages?
|
64
|
+
|
65
|
+
link_messages
|
64
66
|
end
|
65
67
|
|
66
68
|
# @api private
|