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 +4 -4
- data/lib/renegade/branch_name.rb +13 -0
- data/lib/renegade/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 35056b6ccfacf37e2c2a6205ce5cf9b64097e19a
|
4
|
+
data.tar.gz: 555f8025d2fbffb8e3b9430649f48b2c38bf0e34
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa77a41d49c563e88e548c27e52b458c3ca0be2574bbf9f7785c62e35e089b436d434fc550eefe74fd3c3a6bb85829769a3d2c452e961cdd1166a420b8f8aed4
|
7
|
+
data.tar.gz: 5f798b5b11ad8c65a57f7aad3e9939353bb318001720e05953ca243b178fafd59f8c54cbf203816132c2b9ac230234614a5bd1371f0715ab34975b9937f92c2b
|
data/lib/renegade/branch_name.rb
CHANGED
@@ -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) ||
|
data/lib/renegade/version.rb
CHANGED
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.
|
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
|
+
date: 2016-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|