conventional_commits 0.2.18 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 343540acbeacfef7c91c9ea3fd6cf28f155ec3e10d404ef73268c1c8bc8392ed
4
- data.tar.gz: e8da9f720588d0a272473874ed92960a27836bd053c758d221caf976d9cb3a91
3
+ metadata.gz: f4a64eb0fad1d7f121fd82a187bcbcb5eec96d68afb721eb95f80201a5a3161c
4
+ data.tar.gz: 8be407dfb94b7cd05e17ca22828ef95e2841d252cb07ce4ad65d55995acc1d59
5
5
  SHA512:
6
- metadata.gz: 6b42bdc63a57697ff35fe2809cb40034ffaacb7e292c5d0e2570eeac2f7df1ac9552bccb8b393cda6c59c4e65d296ecb3c4a6dbe4180c59e6dca1274934f58d2
7
- data.tar.gz: fca2cdac29bbe59951617d9b3bae3aead7a9768e2a5a6d95cfb4582df286640e4455e9cbb1074f73c52c94279ebc4bf0cc5ab93a3f3cbabfc1ea9bfb9c08ca4c
6
+ metadata.gz: a856e40ebb3711a5a53245e276554106619eb3b999928681773cf0e6b89cb8b561725ea6c8e2915e6f329dcf84328842b1444ebf0194f504bf60c8c1da005194
7
+ data.tar.gz: 9daa9a6238798c6b132a4b0261839d66ba8cf1ce85b98a268dd7f3d1f7570ec7a730af263c43cb87f43ad80bd190e8388a6c010ab7bcbb37f9cbcfe47d1ea809
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- conventional_commits (0.2.17)
4
+ conventional_commits (0.2.19)
5
5
  open3
6
6
  thor
7
7
  yaml
@@ -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,10 @@ 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
+ return if commit_msg_path != Configuration::DEFAULT_COMMIT_MSG_PATH
7
8
  raise GenericError, "Commit Message File is not created" unless File.exist?(commit_msg_path)
8
9
 
10
+
9
11
  data = File.read_file(commit_msg_path)
10
12
  message_components_from_string(commit_msg: data.to_s, cfg_path:)
11
13
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ConventionalCommits
4
- VERSION = "0.2.18"
4
+ VERSION = "0.2.20"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: conventional_commits
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.18
4
+ version: 0.2.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Swift-Gurus