umts-custom-cops 0.3.0 → 0.3.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
- SHA1:
3
- metadata.gz: d32b14f00fddaa9ddefdb2ee7f3915af8c1312e2
4
- data.tar.gz: 940dcc4814c2e66cdc9298096267739ebb344a59
2
+ SHA256:
3
+ metadata.gz: 044fe565baad9c46631ea18dcc645b02246e9ad088cbf3c58f3ca0f9ebee4c3e
4
+ data.tar.gz: 52956058a332e2fc828f2e87df13b055460a408925aa34cca31e1af705c45764
5
5
  SHA512:
6
- metadata.gz: 22d539de7001c7795458cdb1814d4c0672e2de598cec922998d64a617ea2dcd219cb76c5fd92d02a2287fce5a7a5e1b5ea88ffd2643c70e12d6b263d5dc51be4
7
- data.tar.gz: 3549e0e6da0261ed6a2a5eb38df4923425fa6357b2b07dd7c19bfad96055aa07e7816c74834d423727e490782dc2cf00dc6ffaae593a0942ddfa5dcf9ed56879
6
+ metadata.gz: a5c7d94c411fa00072104f71ea830ecc2f07ece44eb0cbadcfc02711fb61a47bc9caad1bdf3adfc211b9bb60535e4efb6529f14b019cc468c7c51769011d16d8
7
+ data.tar.gz: c85baae025d53d56ac122589898e6d13eb288c4713b6dc0e1bc72734d24bf4c68c128762c863396e2c97a8dd6bfdf03dbca78f40952ea62046a28dc1b26a6855
data/.bundler.version ADDED
@@ -0,0 +1 @@
1
+ ~> 1.17.3
data/.travis.yml CHANGED
@@ -1,15 +1,19 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.1.7
4
- - 2.2.4
5
- - 2.3.0
6
- - 2.4.1
3
+ - 2.2.10
4
+ - 2.3.8
5
+ - 2.4.5
6
+ - 2.5.3
7
+ - 2.6.1
7
8
  env: CODECLIMATE_REPO_TOKEN=c356c22cc5b342d3cba9a1fb9d71b63b52de9b9daa1f54c07f959f90da05c8ff
8
- before_install: gem install bundler
9
+ before_install: gem install bundler -v "$(cat .bundler.version)"
9
10
  script:
10
11
  - bundle exec rake
12
+ after_success:
11
13
  - bundle exec codeclimate-test-reporter
12
14
  notifications:
13
15
  email:
16
+ on_success: change
17
+ on_failure: change
14
18
  recipients:
15
19
  - transit-it@admin.umass.edu
data/README.md CHANGED
@@ -1,15 +1,17 @@
1
1
  # UmtsCustomCops
2
2
 
3
- Custom Rubocops, currently all related to RSpec, used for UMass Transit's internal Rails development purposes.
3
+ Custom Rubocops, currently all related to RSpec, used for UMass Transit's
4
+ internal Rails development purposes.
4
5
 
5
6
  Primary contributor is @dfaulken.
6
7
 
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
+ A lot of the ideas for this came from some reading of the rubocop source
9
+ code, so thanks to the RuboCop team for making it public.
8
10
 
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)
11
+ [![Build Status][travis-badge]][travis]
12
+ [![Test Coverage][coverage-badge]][codeclimate]
13
+ [![Code Climate][gpa-badge]][codeclimate]
14
+ [![Issue Count][issue-badge]][codeclimate]
13
15
 
14
16
  ## Installation
15
17
 
@@ -43,18 +45,29 @@ You may enable/disable them just as with any other cop.
43
45
 
44
46
  ## Development
45
47
 
46
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
48
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run
49
+ `rake spec` to run the tests. You can also run `bin/console` for an interactive
50
+ prompt that will allow you to experiment.
47
51
 
48
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
49
-
50
- To run the spec files, you'll need Rubocop's spec support methods. In order to achieve this, set up RuboCop as a git submodule:
51
-
52
- $ git submodule add -f https://github.com/bbatsov/rubocop
52
+ To install this gem onto your local machine, run `bundle exec rake install`. To
53
+ release a new version, update the version number in `version.rb`, and then run
54
+ `bundle exec rake release`, which will create a git tag for the version, push
55
+ git commits and tags, and push the `.gem` file to
56
+ [rubygems.org](https://rubygems.org).
53
57
 
54
58
  ## Contributing
55
59
 
56
- Bug reports and pull requests are welcome on GitHub at https://github.com/umts/custom-cops.
60
+ Bug reports and pull requests are welcome on GitHub at
61
+ https://github.com/umts/custom-cops.
57
62
 
58
63
  ## License
59
64
 
60
- The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
65
+ The gem is available as open source under the terms of the
66
+ [MIT License](http://opensource.org/licenses/MIT).
67
+
68
+ [travis]: https://travis-ci.org/umts/custom-cops
69
+ [codeclimate]: https://codeclimate.com/github/umts/custom-cops/coverage
70
+ [travis-badge]: https://travis-ci.org/umts/custom-cops.svg?branch=master
71
+ [coverage-badge]: https://codeclimate.com/github/umts/custom-cops/badges/coverage.svg
72
+ [gpa-badge]: https://codeclimate.com/github/umts/custom-cops/badges/gpa.svg
73
+ [issue-badge]: https://codeclimate.com/github/umts/custom-cops/badges/issue_count.svg
data/bin/setup CHANGED
@@ -3,6 +3,5 @@ set -euo pipefail
3
3
  IFS=$'\n\t'
4
4
  set -vx
5
5
 
6
+ gem install bundler -v "$(cat .bundler.version)"
6
7
  bundle install
7
-
8
- # Do any other automated setup that you need to do here
@@ -29,7 +29,7 @@ module RuboCop
29
29
  return unless %i(eq eql).include? matcher.method_name
30
30
  args = matcher.child_nodes.first
31
31
  return unless OFFENSE_TYPE_CHECKS.find { |check| args.send check }
32
- add_offense node, :expression, MSG
32
+ add_offense node, location: :expression, message: MSG
33
33
  end
34
34
  end
35
35
  end
@@ -25,7 +25,7 @@ module RuboCop
25
25
  return unless matcher_arg.true_type? || matcher_arg.false_type?
26
26
  else return unless BOOLEAN_EQUALITY_MATCHERS.include? matcher.method_name
27
27
  end
28
- add_offense node, :expression, MSG
28
+ add_offense node, location: :expression, message: MSG
29
29
  end
30
30
  end
31
31
  end
@@ -1,3 +1,3 @@
1
1
  module UmtsCustomCops
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.1'
3
3
  end
@@ -27,9 +27,9 @@ 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.48.1'
30
+ spec.add_dependency 'rubocop', '0.65.0'
31
31
 
32
- spec.add_development_dependency 'bundler', '~> 1.11'
32
+ spec.add_development_dependency 'bundler', File.open('.bundler.version').read.strip
33
33
  spec.add_development_dependency 'codeclimate-test-reporter', '~> 1.0'
34
34
  spec.add_development_dependency 'rake', '~> 10.0'
35
35
  spec.add_development_dependency 'simplecov'
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.3.0
4
+ version: 0.3.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: 2017-04-27 00:00:00.000000000 Z
11
+ date: 2019-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -30,28 +30,28 @@ dependencies:
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 0.48.1
33
+ version: 0.65.0
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.48.1
40
+ version: 0.65.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '1.11'
47
+ version: 1.17.3
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '1.11'
54
+ version: 1.17.3
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: codeclimate-test-reporter
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -115,6 +115,7 @@ executables: []
115
115
  extensions: []
116
116
  extra_rdoc_files: []
117
117
  files:
118
+ - ".bundler.version"
118
119
  - ".gitignore"
119
120
  - ".gitmodules"
120
121
  - ".rspec"
@@ -152,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
152
153
  version: '0'
153
154
  requirements: []
154
155
  rubyforge_project:
155
- rubygems_version: 2.6.11
156
+ rubygems_version: 2.7.8
156
157
  signing_key:
157
158
  specification_version: 4
158
159
  summary: Custom Rails-specific Rubocop cops for our internal development purposes