renegade 0.1.48 → 0.1.49
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 +3 -2
- data/lib/renegade/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: c4114df217ce8128133df931c6dd34034a89dc92
|
4
|
+
data.tar.gz: 5d149347cdc247d9af4018856d1afdf99ed3984c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e4af5885b18409928850ca0a841bd7d22c58c6cc744466aa8f896565aaf72c30237e3ab69629b0c5666561ad3d7a54b9ce1a5da1d761122ca12dc5001f97e1bf
|
7
|
+
data.tar.gz: e8c7479f28db21b4d8f9756ed3bcb21428ebaf42a49d60dabe70f470e1220d432d868850ff432c19706af465cf1c62da6ae5dc4c77ec8a1f956e56b216cfc521
|
data/lib/renegade/branch_name.rb
CHANGED
@@ -4,7 +4,7 @@ module Renegade
|
|
4
4
|
##
|
5
5
|
# Verify branch name
|
6
6
|
class BranchName
|
7
|
-
attr_reader :errors, :warnings
|
7
|
+
attr_reader :errors, :warnings, :warning
|
8
8
|
|
9
9
|
REGEX_STORY_BRANCH = /^(?:story)-(\d{4,6})-?(.*)?$/
|
10
10
|
REGEX_BUG_BRANCH = /^(?:bug)-(\d{4,6})-?(.*)?$/
|
@@ -14,6 +14,7 @@ module Renegade
|
|
14
14
|
@label = 'Branch Name'
|
15
15
|
@warnings = []
|
16
16
|
@errors = []
|
17
|
+
@warning = 'Branches must start with bug-##### or story-#####.'
|
17
18
|
end
|
18
19
|
|
19
20
|
def run(branch_name)
|
@@ -29,7 +30,7 @@ module Renegade
|
|
29
30
|
# placeholder
|
30
31
|
return true
|
31
32
|
else
|
32
|
-
@warnings.push(
|
33
|
+
@warnings.push(@warning)
|
33
34
|
@warnings.push('You may continue to develop in this branch, but you'\
|
34
35
|
' will not be allowed to merge unless you rename it.')
|
35
36
|
return false
|
data/lib/renegade/version.rb
CHANGED