conventional_commits 0.2.20 → 0.2.21

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: f4a64eb0fad1d7f121fd82a187bcbcb5eec96d68afb721eb95f80201a5a3161c
4
- data.tar.gz: 8be407dfb94b7cd05e17ca22828ef95e2841d252cb07ce4ad65d55995acc1d59
3
+ metadata.gz: be1dbe1d47e44310e51b3dba3b74338527ec63e270cb3b124239bad854699675
4
+ data.tar.gz: f91785b78fde59b5a079e447c7bac64356f4b310bcbd909036fcf4b4035a81e8
5
5
  SHA512:
6
- metadata.gz: a856e40ebb3711a5a53245e276554106619eb3b999928681773cf0e6b89cb8b561725ea6c8e2915e6f329dcf84328842b1444ebf0194f504bf60c8c1da005194
7
- data.tar.gz: 9daa9a6238798c6b132a4b0261839d66ba8cf1ce85b98a268dd7f3d1f7570ec7a730af263c43cb87f43ad80bd190e8388a6c010ab7bcbb37f9cbcfe47d1ea809
6
+ metadata.gz: 7c6d93d0e8452e15d4497a16aedd4fa10896a49770483f14e6ffc0231648f5dc440c9629ccc41ce6dc7c7e751c379104cdc8bb7b0f6c745dacc8757bbb85a257
7
+ data.tar.gz: '05837489282ef954dd3b8f05e7faf790a1766424b34ebddb8da451847af39b91031183575fe79b9d02f52ad6e11b685a773102fd6e9c93c6dd7683df43cfb345'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- conventional_commits (0.2.19)
4
+ conventional_commits (0.2.20)
5
5
  open3
6
6
  thor
7
7
  yaml
@@ -4,10 +4,8 @@ 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
8
7
  raise GenericError, "Commit Message File is not created" unless File.exist?(commit_msg_path)
9
8
 
10
-
11
9
  data = File.read_file(commit_msg_path)
12
10
  message_components_from_string(commit_msg: data.to_s, cfg_path:)
13
11
  end
@@ -4,6 +4,7 @@ module ConventionalCommits
4
4
  class CommitMessageValidator
5
5
  def validate_commit_msg_from_file(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
  parser = CommitMessageParser.new
8
9
  components = parser.message_components(commit_msg_path:, cfg_path:)
9
10
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ConventionalCommits
4
- VERSION = "0.2.20"
4
+ VERSION = "0.2.21"
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.20
4
+ version: 0.2.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Swift-Gurus