renegade 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 8c09d76b3772341edb686aa03d38a52e19238dea
4
+ data.tar.gz: 9e0de2e4875e0fe195b221d93f29cff4f5d627ac
5
+ SHA512:
6
+ metadata.gz: c46c989263eea8273c6575f74e6ae49186ecfd71ba0319a03b96807d064ac30b8aa7cf468707fd6610517ef309b4cee69a18d750fbf05cf46a3d42849ad790f6
7
+ data.tar.gz: 03353292c31d715db1aed2430756c1d780ceeeed6ee4b8257ef0f2fd6c711fce6c8b3b0a0b1a4f826291b96536eb8ed9c35e016f75c6de96d1610743ba5d89d1
data/lib/renegade.rb ADDED
@@ -0,0 +1,7 @@
1
+ ##
2
+ # Renegade module to run commit hooks
3
+ module Renegade
4
+ def self.hello_world
5
+ puts 'hello world'
6
+ end
7
+ end
@@ -0,0 +1,20 @@
1
+ # module Renegade
2
+ # ##
3
+ # # Validate class names
4
+ # class BranchNames
5
+ # REGEX_STORY_BRANCH = /^(?:story)-(\d{4,6})?-?(.*)?$/
6
+ # REGEX_BUG_BRANCH = /^(?:bug)-(\d{4,6})?-?(.*)?$/
7
+ #
8
+ # def self.check_branch_name(branch_name)
9
+ # if REGEX_STORY_BRANCH.match(branch_name)
10
+ # # placeholder
11
+ # return true
12
+ # elsif REGEX_BUG_BRANCH.match(branch_name)
13
+ # # placeholder
14
+ # return true
15
+ # else
16
+ # return false
17
+ # end
18
+ # end
19
+ # end
20
+ # end
@@ -0,0 +1,15 @@
1
+ # module Renegade
2
+ # ##
3
+ # # This class handles running the various linters
4
+ # class Lint
5
+ # # run eslint
6
+ # def self.eslint
7
+ # true
8
+ # end
9
+ #
10
+ # # run scss lint
11
+ # def self.scsslint
12
+ # true
13
+ # end
14
+ # end
15
+ # end
@@ -0,0 +1,22 @@
1
+ # require_relative 'status'
2
+ #
3
+ # module Renegade
4
+ # ##
5
+ # # Ensure commit messages meet certain requirements
6
+ # class CommitMessage
7
+ # def self.message_length(message)
8
+ # min_length = 10
9
+ # max_length = 50
10
+ #
11
+ # puts 'Renegade::CommitMessage.message_length'
12
+ #
13
+ # if message.length > min_length && message.length <= max_length
14
+ # Renegade::Status.new.add_error('Commit messages should be between \
15
+ # #{min_length} and #{max_length}')
16
+ # false
17
+ # else
18
+ # true
19
+ # end
20
+ # end
21
+ # end
22
+ # end
@@ -0,0 +1,19 @@
1
+ # module Renegade
2
+ # ##
3
+ # # Handle errors
4
+ # class Status
5
+ # def initialize
6
+ # @error_list = []
7
+ # end
8
+ #
9
+ # def self.add_error(message)
10
+ # @error_list.push(message)
11
+ # end
12
+ #
13
+ # def self.print_errors
14
+ # @error_list.each do |error|
15
+ # puts error
16
+ # end
17
+ # end
18
+ # end
19
+ # end
metadata ADDED
@@ -0,0 +1,62 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: renegade
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Rather Blue
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-01-14 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: octokit
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '4.2'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '4.2'
27
+ description: Gem description
28
+ email: ratherblue@gmail.com
29
+ executables: []
30
+ extensions: []
31
+ extra_rdoc_files: []
32
+ files:
33
+ - lib/renegade.rb
34
+ - lib/renegade/checks/branch_names.rb
35
+ - lib/renegade/checks/lint.rb
36
+ - lib/renegade/commit_message.rb
37
+ - lib/renegade/status.rb
38
+ homepage: http://github.com/ratherblue/renegade
39
+ licenses:
40
+ - Apache 2.0
41
+ metadata: {}
42
+ post_install_message:
43
+ rdoc_options: []
44
+ require_paths:
45
+ - lib
46
+ required_ruby_version: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ - - ">="
49
+ - !ruby/object:Gem::Version
50
+ version: '0'
51
+ required_rubygems_version: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
56
+ requirements: []
57
+ rubyforge_project:
58
+ rubygems_version: 2.4.5.1
59
+ signing_key:
60
+ specification_version: 4
61
+ summary: Gem summary
62
+ test_files: []