gazelle_styleguide 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- Mjg3ODdhOGUyZGUyOWM0NTZiMmJmZmNkM2RmYzI3ZDkyMGRiMWYxNw==
4
+ OGE1MjVmMTlhYjA1ZTdjZjc2ZjE3NWY1MmRkMDUzNDM3NmY2MTBiOA==
5
5
  data.tar.gz: !binary |-
6
- OGRmNjI1ZDYzZjY3MGRmNmMxNmJmNDA2MzA1OWQ1YTNhYjQ0OTIxNA==
6
+ YjRlNGY4MTI4YzgwZDVhNzU5ZDY4N2VjOTVhZWU4NWM5YzkzMTcwYg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MzJhMzE1ODk0NDBiZjcwNzQ4Y2MwOGRhMjUyZDI0YTI5NGJhZmZkMTQwZGU3
10
- NzNhMzM1NDIwODQ1OWFkMDM0NmNhZDc1MDhkZDIyZDcyYWQxNmJiMjA5OGIy
11
- YjAwNWE3MTlkOGI0MmQ0ZDc1ZmE1MWUwZGUzNDQ3MzUzOWNkNWM=
9
+ M2Y1M2M0MzE5OTZmZDUwZTMyNzMzMTAyMTQ1NjRjYzYyNDBiNWIzM2MyZGJl
10
+ MjkwODczYjJiYzQ4ZWU5NDllNDExNTI2ODA5YzJlNmM3NjRmMGU3OWVmNzVk
11
+ ZWNmOGNlMGRiMThkODA0NTk5OWMxNjg4NjE4YTcwOWQ2MTFiNmU=
12
12
  data.tar.gz: !binary |-
13
- OTM4Njg3NmVjMDVkYzJmYmE1NTQ2N2ZmZjk2MTZlOGNjMDAyOWIxM2M5YTVm
14
- NzFjNmMzMWJlNGJlZjM0NmIxMmNhZmU0ODFhYjZmY2MwODQ3YTQ3YTZhYTAw
15
- MmNkOTlhYjhkZjAyMDFkNmVkYTIyNWQ2ZGVlYTJmZTZjMTQ4N2U=
13
+ YTYwYTRkYzE0YmNjNTlkNjJhNzI3NzRkZDhkNDA5YmQ1YTQxOTBkNjcwYWVm
14
+ OTM5MzIxOTZlYjVlNWYzNWQ1YzM2YTA1NmYxZDhjMTY3MjQ0MDRlNTRkYzhh
15
+ ZGRhNjhiOTI0NGMyYzcwMjY0NWQ4N2U5NGNhOTgzMDViOTc4NTk=
@@ -6,7 +6,9 @@ require 'fileutils'
6
6
  module GazelleStyleguide
7
7
  # Command line tool for managing linter running and pre-commits
8
8
  class CLI < Thor
9
- CHECKS = 'rubocop, jshint, rspec_focus, merge_conflict, coffeelint, json, yaml, scss_lint, checkstyle'
9
+ GENERIC_CHECKS = 'jshint, merge_conflict, json, yaml, coffeelint, scss_lint'
10
+ JAVA_CHECKS = 'checkstyle'
11
+ RUBY_CHECKS = 'rubocop, rspec_focus'
10
12
 
11
13
  desc 'init', 'Sets up pre-commit hooks to check style.'
12
14
  def init
@@ -34,7 +36,8 @@ module GazelleStyleguide
34
36
  end
35
37
 
36
38
  def setup_git_config
37
- repo.config['pre-commit.checks'] = CHECKS
39
+ checks = GENERIC_CHECKS + (ruby? ? RUBY_CHECKS : JAVA_CHECKS)
40
+ repo.config['pre-commit.checks'] = checks
38
41
  repo.config['pre-commit.jshint.config'] = GazelleStyleguide.config_for('jshintrc.json')
39
42
  repo.config['pre-commit.rubocop.config'] = GazelleStyleguide.config_for('rubocop.yml')
40
43
  repo.config['pre-commit.coffeelint.config'] = GazelleStyleguide.config_for('coffeelint.json')
@@ -2,5 +2,5 @@
2
2
 
3
3
  # Styleguide version
4
4
  module GazelleStyleguide
5
- VERSION = '0.0.2'
5
+ VERSION = '0.0.3'
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gazelle_styleguide
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Allen Madsen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-28 00:00:00.000000000 Z
11
+ date: 2014-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pre-commit