umts-custom-cops 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1df012c79bb3fa27472fe1cb80e133488b056119
4
- data.tar.gz: c85c7c9e7797b13e72e8dd978eab30e3bf6a507b
3
+ metadata.gz: b3f10c56d08bacec50c43fa2244120f3247896b0
4
+ data.tar.gz: 81465aa93b24c577a4f10c359fc7af483b1dbf29
5
5
  SHA512:
6
- metadata.gz: d834ed868ac58e710d1f8d0873f3ee9c76bb3eca0b1ae43efb7d23562c9339484973dc8d7f847ac189c988805a3137fb0099c3b98de3dd7cdd54b30ac096f958
7
- data.tar.gz: 0a030250913339bead54f12d73b28dc68d8178edb0cd4441d2d3d8f91942784f745cc2ad7fc8153ba94ec0789bbfecdefb3a045ecda4febda7be1b08008bba5c
6
+ metadata.gz: c5c6fbaf56ab748a55412364234c5d92aab4a6cf4cecee45028b247f42f30b889f3b2d38775cf5fb56cc4d39b1e807befdbf25b04307c9ddc11cb53a1e62152e
7
+ data.tar.gz: 741e057de97f12880eaebedead827efcfb986e61b88d3c92201bc214feddabc38dbdd24ddef2bbd8d73e7a60b276b5b1a30b367700956976b77d6f73c1fd0b98
data/.travis.yml CHANGED
@@ -1,6 +1,10 @@
1
1
  language: ruby
2
- rvm: 2.1.2
3
- before_install: gem install bundler -v 1.11.2
2
+ rvm:
3
+ - 2.1.7
4
+ - 2.2.4
5
+ - 2.3.0
6
+ env: CODECLIMATE_REPO_TOKEN=c356c22cc5b342d3cba9a1fb9d71b63b52de9b9daa1f54c07f959f90da05c8ff
7
+ before_install: gem install bundler
4
8
  script: bundle exec rake
5
9
  notifications:
6
10
  email:
data/README.md CHANGED
@@ -1,11 +1,16 @@
1
1
  # UmtsCustomCops
2
2
 
3
- [![Build Status](https://travis-ci.org/umts/custom-cops.svg?branch=master)](https://travis-ci.org/umts/custom-cops)
4
-
5
3
  Custom Rubocops, currently all related to RSpec, used for UMass Transit's internal Rails development purposes.
6
4
 
7
5
  Primary contributor is @dfaulken.
8
6
 
7
+ A lot of the ideas for this came from some reading of the rubocop source code, so thanks to the RuboCop team for making it public.
8
+
9
+ [![Build Status](https://travis-ci.org/umts/custom-cops.svg?branch=master)](https://travis-ci.org/umts/custom-cops)
10
+ [![Test Coverage](https://codeclimate.com/github/umts/custom-cops/badges/coverage.svg)](https://codeclimate.com/github/umts/custom-cops/coverage)
11
+ [![Code Climate](https://codeclimate.com/github/umts/custom-cops/badges/gpa.svg)](https://codeclimate.com/github/umts/custom-cops)
12
+ [![Issue Count](https://codeclimate.com/github/umts/custom-cops/badges/issue_count.svg)](https://codeclimate.com/github/umts/custom-cops)
13
+
9
14
  ## Installation
10
15
 
11
16
  Add this line to your application's Gemfile:
@@ -26,7 +31,9 @@ Or install it yourself as:
26
31
 
27
32
  Add to your `rubocop.yml`:
28
33
 
29
- $ require: umts-custom-cops
34
+ ```xml
35
+ require: umts-custom-cops
36
+ ```
30
37
 
31
38
  Or on the command line:
32
39
 
@@ -12,8 +12,7 @@ module RuboCop
12
12
  OFFENSE_TYPE_CHECKS = %i(true_type?
13
13
  false_type?
14
14
  nil_type?
15
- int_type?
16
- float_type?)
15
+ int_type?)
17
16
 
18
17
  def autocorrect(node)
19
18
  lambda do |corrector|
@@ -1,3 +1,3 @@
1
1
  module UmtsCustomCops
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
@@ -27,9 +27,10 @@ Gem::Specification.new do |spec|
27
27
  spec.require_paths = ['lib']
28
28
 
29
29
  spec.add_dependency 'rspec', '~> 3.0'
30
- spec.add_dependency 'rubocop', '0.35.1'
30
+ spec.add_dependency 'rubocop', '0.37.2'
31
31
 
32
32
  spec.add_development_dependency 'bundler', '~> 1.11'
33
+ spec.add_development_dependency 'codeclimate-test-reporter'
33
34
  spec.add_development_dependency 'rake', '~> 10.0'
34
35
  spec.add_development_dependency 'simplecov'
35
36
  spec.add_development_dependency 'pry-byebug'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: umts-custom-cops
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - UMass Transit Services
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-01-14 00:00:00.000000000 Z
11
+ date: 2016-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 0.35.1
33
+ version: 0.37.2
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 0.35.1
40
+ version: 0.37.2
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '1.11'
55
+ - !ruby/object:Gem::Dependency
56
+ name: codeclimate-test-reporter
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: rake
57
71
  requirement: !ruby/object:Gem::Requirement
@@ -105,8 +119,6 @@ files:
105
119
  - ".gitmodules"
106
120
  - ".rspec"
107
121
  - ".rubocop.yml"
108
- - ".rubocop_todo.yml"
109
- - ".ruby-version"
110
122
  - ".travis.yml"
111
123
  - Gemfile
112
124
  - LICENSE.txt
@@ -140,7 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
140
152
  version: '0'
141
153
  requirements: []
142
154
  rubyforge_project:
143
- rubygems_version: 2.4.8
155
+ rubygems_version: 2.2.2
144
156
  signing_key:
145
157
  specification_version: 4
146
158
  summary: Custom Rails-specific Rubocop cops for our internal development purposes
data/.rubocop_todo.yml DELETED
@@ -1,24 +0,0 @@
1
- # This configuration was generated by
2
- # `rubocop --auto-gen-config`
3
- # on 2016-01-14 16:44:47 -0500 using RuboCop version 0.35.1.
4
- # The point is for the user to remove these configuration records
5
- # one by one as the offenses are removed from the code base.
6
- # Note that changes in the inspected code, or installation of new
7
- # versions of RuboCop, may require this file to be generated again.
8
-
9
- # Offense count: 1
10
- Metrics/AbcSize:
11
- Max: 25
12
-
13
- # Offense count: 1
14
- Metrics/CyclomaticComplexity:
15
- Max: 9
16
-
17
- # Offense count: 1
18
- # Configuration parameters: CountComments.
19
- Metrics/MethodLength:
20
- Max: 13
21
-
22
- # Offense count: 1
23
- Metrics/PerceivedComplexity:
24
- Max: 10
data/.ruby-version DELETED
@@ -1 +0,0 @@
1
- 2.1.7