hookers 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,7 +5,8 @@ module Hookers
5
5
  class Parser
6
6
  attr_accessor :project, :message
7
7
 
8
- REGEXP = /\[(bug|feature|story|fixed|fixes|completed|finished|delivers)\s+\#\s*(\d+)\]/i
8
+ REGEXP = /\[(bug|feature|story|fixed|fixes|completed|finished|delivers)((?:\s+#\s*\d+){1,})\]/i
9
+ SUBPATTERN = /(?:\s+\#\s*(\d+))/
9
10
 
10
11
  def initialize(project)
11
12
  self.project = project
@@ -18,8 +19,10 @@ module Hookers
18
19
  commit = Commit.new(project, id, message)
19
20
 
20
21
  if !data.nil?
21
- data.each do |type, number|
22
- affects << Affects.new(commit, type.upcase, number)
22
+ data.each do |type, identifiers|
23
+ identifiers.scan(Parser::SUBPATTERN).flatten.each do |number|
24
+ affects << Affects.new(commit, type.upcase, number)
25
+ end
23
26
  end
24
27
  end
25
28
 
@@ -28,3 +31,4 @@ module Hookers
28
31
  end
29
32
  end
30
33
  end
34
+
@@ -1,3 +1,3 @@
1
1
  module Hookers
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hookers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-08-08 00:00:00.000000000Z
13
+ date: 2012-09-06 00:00:00.000000000Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: slop
17
- requirement: &70364749722500 !ruby/object:Gem::Requirement
17
+ requirement: &70161664637080 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ~>
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: '2.1'
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *70364749722500
25
+ version_requirements: *70161664637080
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: rest-client
28
- requirement: &70364749720200 !ruby/object:Gem::Requirement
28
+ requirement: &70161664632720 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,7 +33,7 @@ dependencies:
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *70364749720200
36
+ version_requirements: *70161664632720
37
37
  description: Contains default hooks files to integrate git with pivotal tracker and
38
38
  change log generator
39
39
  email: