renegade 0.1.49 → 0.1.51

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c4114df217ce8128133df931c6dd34034a89dc92
4
- data.tar.gz: 5d149347cdc247d9af4018856d1afdf99ed3984c
3
+ metadata.gz: 35056b6ccfacf37e2c2a6205ce5cf9b64097e19a
4
+ data.tar.gz: 555f8025d2fbffb8e3b9430649f48b2c38bf0e34
5
5
  SHA512:
6
- metadata.gz: e4af5885b18409928850ca0a841bd7d22c58c6cc744466aa8f896565aaf72c30237e3ab69629b0c5666561ad3d7a54b9ce1a5da1d761122ca12dc5001f97e1bf
7
- data.tar.gz: e8c7479f28db21b4d8f9756ed3bcb21428ebaf42a49d60dabe70f470e1220d432d868850ff432c19706af465cf1c62da6ae5dc4c77ec8a1f956e56b216cfc521
6
+ metadata.gz: aa77a41d49c563e88e548c27e52b458c3ca0be2574bbf9f7785c62e35e089b436d434fc550eefe74fd3c3a6bb85829769a3d2c452e961cdd1166a420b8f8aed4
7
+ data.tar.gz: 5f798b5b11ad8c65a57f7aad3e9939353bb318001720e05953ca243b178fafd59f8c54cbf203816132c2b9ac230234614a5bd1371f0715ab34975b9937f92c2b
@@ -23,6 +23,19 @@ module Renegade
23
23
  Status.report(@label, check_branch_name(branch_name), true)
24
24
  end
25
25
 
26
+ def self.extract_id(branch_name)
27
+ data = {}
28
+ if REGEX_STORY_BRANCH.match(branch_name)
29
+ data['type'] = 'story'
30
+ data['id'] = REGEX_STORY_BRANCH.match(branch_name)[1]
31
+ elsif REGEX_BUG_BRANCH.match(branch_name)
32
+ data['type'] = 'bug'
33
+ data['id'] = REGEX_BUG_BRANCH.match(branch_name)[1]
34
+ end
35
+
36
+ data
37
+ end
38
+
26
39
  def check_branch_name(branch_name)
27
40
  if REGEX_STORY_BRANCH.match(branch_name) ||
28
41
  REGEX_BUG_BRANCH.match(branch_name) ||
@@ -1,4 +1,4 @@
1
1
  # Renegade version
2
2
  module Renegade
3
- VERSION = '0.1.49'.freeze
3
+ VERSION = '0.1.51'.freeze
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: renegade
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.49
4
+ version: 0.1.51
5
5
  platform: ruby
6
6
  authors:
7
7
  - ratherblue
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-03-11 00:00:00.000000000 Z
11
+ date: 2016-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake