conventional_commits 0.2.19 → 0.2.20
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/Gemfile.lock +1 -1
- data/lib/cli/branch_name_cli.rb +0 -4
- data/lib/commit/commit_message_parser.rb +2 -1
- data/lib/conventional_commits/version.rb +1 -1
- 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: f4a64eb0fad1d7f121fd82a187bcbcb5eec96d68afb721eb95f80201a5a3161c
|
4
|
+
data.tar.gz: 8be407dfb94b7cd05e17ca22828ef95e2841d252cb07ce4ad65d55995acc1d59
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a856e40ebb3711a5a53245e276554106619eb3b999928681773cf0e6b89cb8b561725ea6c8e2915e6f329dcf84328842b1444ebf0194f504bf60c8c1da005194
|
7
|
+
data.tar.gz: 9daa9a6238798c6b132a4b0261839d66ba8cf1ce85b98a268dd7f3d1f7570ec7a730af263c43cb87f43ad80bd190e8388a6c010ab7bcbb37f9cbcfe47d1ea809
|
data/Gemfile.lock
CHANGED
data/lib/cli/branch_name_cli.rb
CHANGED
@@ -55,11 +55,7 @@ module ConventionalCommits
|
|
55
55
|
option :msg_path, type: :string, required: false
|
56
56
|
option :msg, type: :string, required: false
|
57
57
|
option :cfg_path, type: :string, required: false
|
58
|
-
option :source, type: :string, required: false
|
59
58
|
def validate_commit_msg
|
60
|
-
generator = ConventionalCommits::CommitMessageGenerator.new
|
61
|
-
src = options["source"] || ""
|
62
|
-
return if generator.should_preserve_original_message(source: src)
|
63
59
|
|
64
60
|
msg_path = options["msg_path"] || Configuration::DEFAULT_COMMIT_MSG_PATH
|
65
61
|
cfg_path = options["cfg_path"] || Configuration::DEFAULT_CONFIGURATION_PATH
|
@@ -4,8 +4,9 @@ module ConventionalCommits
|
|
4
4
|
class CommitMessageParser
|
5
5
|
def message_components(commit_msg_path: Configuration::DEFAULT_COMMIT_MSG_PATH,
|
6
6
|
cfg_path: Configuration::DEFAULT_CONFIGURATION_PATH)
|
7
|
-
raise GenericError, "Commit Message File is not created" unless File.exist?(commit_msg_path)
|
8
7
|
return if commit_msg_path != Configuration::DEFAULT_COMMIT_MSG_PATH
|
8
|
+
raise GenericError, "Commit Message File is not created" unless File.exist?(commit_msg_path)
|
9
|
+
|
9
10
|
|
10
11
|
data = File.read_file(commit_msg_path)
|
11
12
|
message_components_from_string(commit_msg: data.to_s, cfg_path:)
|