mr_bump 0.3.2 → 0.3.3
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 +8 -8
- data/lib/mr_bump.rb +1 -1
- data/spec/mr_bump_spec.rb +12 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YmM5YzE4NTA2NzYzNjZiM2IxZmQ5NGMxMjY2NjgzZDYwOTRiNjc4YQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MzJhOTI3ZTgwODgwZThjZDM4MTczYWQxMWIwYWIwMmQ2NDk1OTE1Mg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MWY5MDMxMDBiYzM5YWI2ZDJmN2NkZmI5Nzk0YjJjYTAxNmU4MDUxOTk4YjFl
|
10
|
+
ZDhlZWZkYzliNTc3MjJiNmRjM2U1YmQ2NWJhYjA1ZGI0MTliNTZhNDc4MTZh
|
11
|
+
NjVkOGYwN2UyZDk1NjU5YzFkMmI3ZDBjNjljZTczOTk1MGY0YmI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MzVlOWZjODRlY2UxZmUxZjk5OGQzOTBhODRhYmZiYTgwMDBhZjkyODdlMTBi
|
14
|
+
ZWI4NGE1MmZiZjJiMTE0MWEyZTdkYjU5NmMwMGY4YzNmYjBhYmE1MjAzNDJj
|
15
|
+
OGZhYTljNzhlZDNkZjVkYTg1NWFkYjU5MzQ2NjE0MzIxMjQyMzk=
|
data/lib/mr_bump.rb
CHANGED
@@ -121,7 +121,7 @@ module MrBump
|
|
121
121
|
chunked_log.each_slice(2).map do |merge_str, comment|
|
122
122
|
begin
|
123
123
|
no_comment_changes = merge_str[1][0..-2].map(&make_change)
|
124
|
-
commented_changes = make_change.call(merge_str[1][-1], comment[1])
|
124
|
+
commented_changes = make_change.call(merge_str[1][-1], comment.nil? ? [] : comment[1])
|
125
125
|
no_comment_changes.push(commented_changes)
|
126
126
|
rescue ArgumentError => e
|
127
127
|
puts e
|
data/spec/mr_bump_spec.rb
CHANGED
@@ -520,6 +520,18 @@ describe MrBump do
|
|
520
520
|
expect(changes.map(&:branch_name)).to eq(['DEV-1261', 'revert_contact_fixes', 'MDV-1261'])
|
521
521
|
end
|
522
522
|
end
|
523
|
+
|
524
|
+
context 'when given a git log with one item and no comment' do
|
525
|
+
let(:log) do
|
526
|
+
[
|
527
|
+
'Merge pull request #4 from mr_bump/hotfix/DEV-1261'
|
528
|
+
]
|
529
|
+
end
|
530
|
+
let(:changes) { MrBump.change_log_items_for_range('', '') }
|
531
|
+
it 'converts raw git log ouput to changlog objects' do
|
532
|
+
expect(changes).to all(be_a(MrBump::Change))
|
533
|
+
end
|
534
|
+
end
|
523
535
|
end
|
524
536
|
|
525
537
|
describe '#last_release' do
|