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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d0fb47f9244736ea5145deec997f0c751895e4de
4
- data.tar.gz: 919126e067d19a696e8496f2d6b694bce0e977db
3
+ metadata.gz: 067b6021ff8a6605995e8e315405cdad7855d88e
4
+ data.tar.gz: ee11adf75114047c1b7f284f526bc3a5d7cd824f
5
5
  SHA512:
6
- metadata.gz: 91e1ac982bdeb3428213ef0013c57ec7373098468fde86672423c5a8345f5bd16ffef7b4c9936260f9b0a12ee1c2073e73629c74ded65de94052e03d69dda6dc
7
- data.tar.gz: 86549d9757fb3c8660b8d63860e0794453a33b74dc2f0bafb6affe8a7a869d4b8ba8fc0d8978ecb4f7f5d1fee76274c04fc05ee3e373c355995f0ac8729bbb84
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
- message.append(" -- Applies to story #{message_addition}")
26
+ message_addition = ["##{story}", movelist].compact.join(' ')
27
+ message.append(" -- Applies to story #{message_addition}")
27
28
  end
28
29
 
29
30
  private
@@ -1,3 +1,3 @@
1
1
  module GitBreeze
2
- VERSION = '1.0.12'
2
+ VERSION = '1.1.7'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git_breeze
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.12
4
+ version: 1.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Timothy Nott