renegade 0.1.48 → 0.1.49

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: 3fdcc4d4286010b0ab5c4a48cc331044217cf32c
4
- data.tar.gz: 0c21b2038427d11613c95590107bf85afd4db78f
3
+ metadata.gz: c4114df217ce8128133df931c6dd34034a89dc92
4
+ data.tar.gz: 5d149347cdc247d9af4018856d1afdf99ed3984c
5
5
  SHA512:
6
- metadata.gz: c2d245a34f00f9c98a289aaf525ecde69b95f399f219b7ddd1b70d954235e02cde6691908ea42faaf8693aff59f345ebe67db290855fbfe095169f6a38ab4bc3
7
- data.tar.gz: 9af1bb1b8f2b941e399448f4677c805b6fe7d9e02240d8290a86fd5943854afd635e9fa0e8b893802b3c5fd3956b19926eae665cd31e327d332321309da461be
6
+ metadata.gz: e4af5885b18409928850ca0a841bd7d22c58c6cc744466aa8f896565aaf72c30237e3ab69629b0c5666561ad3d7a54b9ce1a5da1d761122ca12dc5001f97e1bf
7
+ data.tar.gz: e8c7479f28db21b4d8f9756ed3bcb21428ebaf42a49d60dabe70f470e1220d432d868850ff432c19706af465cf1c62da6ae5dc4c77ec8a1f956e56b216cfc521
@@ -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('Branches must start with bug-##### or story-#####.')
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
@@ -1,4 +1,4 @@
1
1
  # Renegade version
2
2
  module Renegade
3
- VERSION = '0.1.48'.freeze
3
+ VERSION = '0.1.49'.freeze
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: renegade
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.48
4
+ version: 0.1.49
5
5
  platform: ruby
6
6
  authors:
7
7
  - ratherblue