release-notes 1.1.2 → 1.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fbd455c0cde693ebfabd1165e0bfc09657a60161a2c6c6282c061831371f5b59
4
- data.tar.gz: 52f27d1db383f5d39134b2c77edf46804c60e2751c2410eb9a605970522e0488
3
+ metadata.gz: 00bba072e88788aafc0b7282132b8b4331449698c52efd5e02ef7ec8aa6cd887
4
+ data.tar.gz: 1253b9609916db2d3dbe5ba9fc05e6971e96161423148c8f85cb3449571b9129
5
5
  SHA512:
6
- metadata.gz: b5ce1c549945e5f5f39ef2514ee38fce722f91cee4e017c5a6540128c9766225e2c80893ef8bbb248668019cbbff59f938537168a009edc781b8a3b1666f7bc9
7
- data.tar.gz: 6cb2edb7c648dcb1d1a3ea0a32b8a2e95b587a1c2faaf948fb0ec485de5a28fa974fdc2ca612b02b9d23ff7c55d95c3ce4a9b912b3ee1e3be492e0d0288fa3ea
6
+ metadata.gz: 57c5135666d3d80fc46255da671ebdddb15dcb4b85e8857ab183a23dea9b4a5054b1ba4703c1d558b3893d6a8a05a1adf1a1581b433d6d917dac957cc4cd0a61
7
+ data.tar.gz: 934c682e1d528c28fea604022ddcf8af0bd5524fc10e16e78fa11a529edf4686d628103a5051b5a04112af14c0e7145a658118a6d94653ddd06483a9ac8e8840
@@ -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 = './RELEASE_NOTES.md'
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 = './release-notes.tmp.md'
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 = '- %s'
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 = '**Fixed bugs:**'
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 = '**Implemented enhancements:**'
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 = '**Miscellaneous:**'
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 = '**Other:**'
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 = 'America/New_York'
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.
@@ -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
@@ -10,7 +10,7 @@ module Release
10
10
 
11
11
  included do
12
12
  def system_log(**opts)
13
- return `#{invert_log(opts)}` if opts[:log_all] == true
13
+ return `#{invert_log(opts.merge(label: all_labels, invert_grep: "--invert-grep"))}` if opts[:log_all] == true
14
14
 
15
15
  `#{log(opts)}`
16
16
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Release
4
4
  module Notes
5
- VERSION = "1.1.2"
5
+ VERSION = "1.2.0"
6
6
  end
7
7
  end
@@ -26,7 +26,7 @@ module Release
26
26
  @title = title
27
27
  @log_message = log_message
28
28
 
29
- titles = title_present + "#{remove_tags}\n"
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 remove_tags
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: release-notes
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Drew Monroe