cb_jira_validator 0.1.0

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.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/cb_jira_validator.rb +12 -0
  3. metadata +44 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: c280bd13a925c2a5f7a9eadd966b01ac89564fbb
4
+ data.tar.gz: 6632a6a4670c6eeddd308db75c613e5f866aa74b
5
+ SHA512:
6
+ metadata.gz: 155f6dec92944b065d0ae4d6e88ee6c6e6ef62d559dacd181aada24270cafe5ac2e3463e337756606a01418f616caece7446ff025390f1c582383d61f080d04d
7
+ data.tar.gz: c6f5236e4f41506cf04d334b070bfe82a1afeb6ef633be0c1f1fe920ba3ad51f5d70fea917ad7e2844404fbb508d1fd3c431899dc57f0d6a490049fdbf941c01
@@ -0,0 +1,12 @@
1
+ module FitCommit
2
+ module Validators
3
+ class JiraTaskValidator < Base
4
+ def validate_line(lineno, text)
5
+ if lineno == 1 && text !~ /\[[a-z0-9-]+\]/i
6
+ add_error(lineno, "Jira task number not found/invalid on first line.")
7
+ end
8
+ end
9
+ end
10
+ end
11
+ end
12
+
metadata ADDED
@@ -0,0 +1,44 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: cb_jira_validator
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Joey Kaan
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-01-02 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Jira task validator
14
+ email: joey94jk@gmail.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/cb_jira_validator.rb
20
+ homepage:
21
+ licenses:
22
+ - MIT
23
+ metadata: {}
24
+ post_install_message:
25
+ rdoc_options: []
26
+ require_paths:
27
+ - lib
28
+ required_ruby_version: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ required_rubygems_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ requirements: []
39
+ rubyforge_project:
40
+ rubygems_version: 2.4.8
41
+ signing_key:
42
+ specification_version: 4
43
+ summary: Jira Task validator
44
+ test_files: []