conventional_commits 0.2.4 → 0.2.5

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: f435dcc6d50497ef6fa5851415569724110d6de0d717237e2aff3ad9f481761b
4
- data.tar.gz: 5a0515fd06a107fd2f89c03663ac2365d0045f23545b1790a25874e51d33e337
3
+ metadata.gz: 5237c096ab7442455a3c8f42355540999f92d09e6d8c4ec7228865f6fffa7f04
4
+ data.tar.gz: 7443b732f6000b9179c7170ec5a9b331ac4bcc7d3c5c078ed464da238fd4a3a5
5
5
  SHA512:
6
- metadata.gz: 5c9fbebbcb8a9ef25c720a8ab3cb25545f179d70058fa61f2e939461d31a946f7e9bff88c733762e7f7daaf83982a445a9d7c76cf8cfa875145135ad561d7c26
7
- data.tar.gz: fb2fff5c46bdbfc23ad2bf20e0245a08192b696d6be5c0e7e76ed3c247c1e27e7bf2815a3e14dc6285dfa9660416e86819a9ff208e087df5d3c859bbb7e09c8a
6
+ metadata.gz: 752200bf1659ee2bdfbb3d5c54de2f545a2446ef6289cc32e775ffd1d56b36625e708ea68aaa47a83c8024c124bd85c6cbbd80bd054213df5c9af6bc1c7e95ed
7
+ data.tar.gz: '03927930fdfd624a584477de522e27365cc6d18e99798f84a39fc5ba18a868c2a93655055f178ded02a00611f0e603e9f813dd9363b08d366491dc8ba1cf0db0'
@@ -56,7 +56,7 @@ module ConventionalCommits
56
56
  delimiters = find_delimiters_from_pattern(pattern:)
57
57
  out = split_name_using_delimiters(delimiters, input)
58
58
  if delimiters.length > out.length && pattern.include?("<scope>")
59
- components_using(input, pattern.gsub(%r{<scope>/}, ""))
59
+ out = components_using(input, pattern.gsub(%r{<scope>/}, ""))
60
60
  elsif delimiters.length > out.length
61
61
  raise ConventionalCommits::GenericError,
62
62
  "The branch doesnt respect the template, expect at least #{delimiters.length} delimiters. Received: #{out}".strip
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ConventionalCommits
4
- VERSION = "0.2.4"
4
+ VERSION = "0.2.5"
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.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Swift-Gurus