git_breeze 1.0.12 → 1.1.7
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/CHANGELOG.md +6 -0
- data/lib/git_breeze/commit_message.rb +7 -0
- data/lib/git_breeze/prepare_commit_message.rb +3 -2
- data/lib/git_breeze/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 067b6021ff8a6605995e8e315405cdad7855d88e
|
|
4
|
+
data.tar.gz: ee11adf75114047c1b7f284f526bc3a5d7cd824f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 38c43ae51791136b84289da9404d10bbd9986cf56218569d97c3d25f4d95acbb2b724a28b723e51851e21a4cf0f0c409e689a7386c61317af9de349fd896dc46
|
|
7
|
+
data.tar.gz: 0c6e6ff09f57e7146a9a6aa7fcc61fcdb024395a6cdd206ff9867b661502f83a80a6fea8256567186c62061a8b5785a244e737f083a31cf3643c2234ef269146
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
### 1.1.7 / 2015-09-09
|
|
2
|
+
added ability to move a 'move command' from the text of a commit to its end
|
|
3
|
+
|
|
4
|
+
### 1.0.12 / 2015-09-09
|
|
5
|
+
A bunch of fixes to the message portion
|
|
6
|
+
|
|
1
7
|
### 0.1.0 / 2015-09-09
|
|
2
8
|
changed references from tracker to brreeze and altered the code to remove unnecessary stuff
|
|
3
9
|
|
|
@@ -10,6 +10,13 @@ module GitBreeze
|
|
|
10
10
|
@message =~ /^(?!#).*\[(\w+\s)?(#\d+\s)*##{number}(\s#\d+)*(\s\w+)?\]/io
|
|
11
11
|
end
|
|
12
12
|
|
|
13
|
+
def movelist
|
|
14
|
+
@message =~ /(m\:[\w]+)/io
|
|
15
|
+
movecommand = $1
|
|
16
|
+
@message.sub! movecommand, ''
|
|
17
|
+
movecommand
|
|
18
|
+
end
|
|
19
|
+
|
|
13
20
|
# def keyword
|
|
14
21
|
# @message =~ /\[(fix|fixes|fixed|complete|completes|completed|finish|finishes|finished|deliver|delivers|delivered)\]/io
|
|
15
22
|
# $1
|
|
@@ -21,9 +21,10 @@ module GitBreeze
|
|
|
21
21
|
story = story_number_from_branch
|
|
22
22
|
message = CommitMessage.new(file)
|
|
23
23
|
exit if message.mentions_story?(story)
|
|
24
|
+
movelist = message.movelist
|
|
24
25
|
|
|
25
|
-
message_addition = ["##{story}"].compact.join(' ')
|
|
26
|
-
|
|
26
|
+
message_addition = ["##{story}", movelist].compact.join(' ')
|
|
27
|
+
message.append(" -- Applies to story #{message_addition}")
|
|
27
28
|
end
|
|
28
29
|
|
|
29
30
|
private
|
data/lib/git_breeze/version.rb
CHANGED