code_quality 0.5.0 → 0.5.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
  SHA256:
3
- metadata.gz: 3d1ec0ab45b985bd45ba69a55c33bd7a78a3e6013fe04843e0781cb20382d73d
4
- data.tar.gz: 95ded3682f07449b74a7370d215f8a043d7019750c20d02906a786036722f187
3
+ metadata.gz: 264055dd1b5ce26c7b1528294560c7a6043fdcaf029b26fca0c9bae4826b7a39
4
+ data.tar.gz: 286004c2c8b3bdb5f871a61713bcfe01e61ed15552ad4a2689fcfbde7031b44e
5
5
  SHA512:
6
- metadata.gz: 8bf273d51ec7d30f778838e4fb8d48c4d68c3c061f71af1386406ffc048406de2b727845f6c480070b6fd49cdfc4240ce4cee26d5111c568d3a32c6e926a8997
7
- data.tar.gz: c208a678483b37650cd093bed50d68b8076fd212df45005161c59e2cc041443f999d9a4c9a8bac72ba825d9100c78dc60658241b8d6ebebb080128087f40c24f
6
+ metadata.gz: cfba6ed867800cc23f84ab44bff70b8405bce22bdee46c3fcbd409b680f534fae665879d1fc089dc82f48f6289d134404ba94c35c59019c99be825c1e0d0b7f8
7
+ data.tar.gz: 23a15669c7d41c80afd1d511686d80da0f66e3a44e1946a083f37fca691434160986eed782a7b7ece4c74dba8205f7ab0d935569ccc89faa41ca8ec7a97022bd
@@ -23,8 +23,7 @@ stages:
23
23
 
24
24
  language: ruby
25
25
  rvm:
26
- # - 2.4.4
27
- - 2.5.1
26
+ - 2.5.3
28
27
  - 2.6.0
29
28
  before_install: gem install bundler
30
29
 
data/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  Run code quality and security audit report with one command `code_quality`.
4
4
 
5
5
  [![Gem Version](https://badge.fury.io/rb/code_quality.svg)](https://badge.fury.io/rb/code_quality)
6
- [![Build Status](https://travis-ci.org/rainchen/code_quality.svg)](https://travis-ci.org/rainchen/code_quality)
6
+ [![Build Status](https://travis-ci.com/rainchen/code_quality.svg)](https://travis-ci.com/rainchen/code_quality)
7
7
  [![HitCount](http://hits.dwyl.io/rainchen/code_quality.svg)](http://hits.dwyl.io/rainchen/code_quality)
8
8
 
9
9
  ## Principle
@@ -3,7 +3,7 @@
3
3
  Run code quality and security audit report with one rake task as `rake code_quality`.
4
4
 
5
5
  [![Gem Version](https://badge.fury.io/rb/code_quality.svg)](https://badge.fury.io/rb/code_quality)
6
- [![Build Status](https://travis-ci.org/rainchen/code_quality.svg)](https://travis-ci.org/rainchen/code_quality)
6
+ [![Build Status](https://travis-ci.com/rainchen/code_quality.svg)](https://travis-ci.com/rainchen/code_quality)
7
7
  [![HitCount](http://hits.dwyl.io/rainchen/code_quality.svg)](http://hits.dwyl.io/rainchen/code_quality)
8
8
 
9
9
  ## Principle
@@ -18,11 +18,11 @@ if [ ${TRAVIS} = "true" ]; then
18
18
  cp -Rf $HOME/tmp/code_quality/* .
19
19
 
20
20
  #setup git user
21
- git config user.email "travis@travis-ci.org"
21
+ git config user.email "travis@travis-ci.com"
22
22
  git config user.name "Travis CI"
23
23
 
24
24
  #add, commit and push files
25
- travis_build_url="https://travis-ci.org/${TRAVIS_REPO_SLUG}/builds/${TRAVIS_BUILD_ID}"
25
+ travis_build_url="https://travis-ci.com/${TRAVIS_REPO_SLUG}/builds/${TRAVIS_BUILD_ID}"
26
26
  git add -f .
27
27
  git commit -m "Travis CI build $travis_build_url pushed to gh-pages"
28
28
  git push -fq origin gh-pages > /dev/null
@@ -23,10 +23,11 @@ Gem::Specification.new do |spec|
23
23
 
24
24
  spec.add_dependency "bundler-audit"
25
25
  spec.add_dependency "brakeman"
26
- spec.add_dependency "rubycritic", "~> 3.5.0"
27
- spec.add_dependency "rubocop", "~> 0.59.0"
28
- spec.add_dependency "rubocop-github", "~> 0.12.0"
29
- spec.add_dependency "code_metric_fu", "~> 4.14.4"
26
+ spec.add_dependency "rubycritic", "~> 4.1.0"
27
+ spec.add_dependency "rubocop", "~> 0.70.0"
28
+ spec.add_dependency "rubocop-github", "~> 0.13.0"
29
+ # spec.add_dependency "code_metric_fu", "~> 4.14.4"
30
+ spec.add_dependency "metric_fu", "~> 4.13.0"
30
31
 
31
32
  spec.add_development_dependency "bundler", ">= 2.0.2"
32
33
  spec.add_development_dependency "rake", ">= 12.3.3"
@@ -1,3 +1,3 @@
1
1
  module CodeQuality
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  end
@@ -180,6 +180,7 @@ namespace :code_quality do
180
180
  # generate report
181
181
  report = `rubocop -c #{config_file} -S -R -P #{options[:cli_options]} --format offenses --format html -o #{report_path}`
182
182
  puts report
183
+ puts "Generated by RuboCop #{`rubocop --version`}"
183
184
  puts "Report generated to #{report_path}"
184
185
  show_in_browser File.realpath(report_path)
185
186
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: code_quality
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - RainChen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-05-22 00:00:00.000000000 Z
11
+ date: 2020-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler-audit
@@ -44,56 +44,56 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 3.5.0
47
+ version: 4.1.0
48
48
  type: :runtime
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: 3.5.0
54
+ version: 4.1.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rubocop
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 0.59.0
61
+ version: 0.70.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 0.59.0
68
+ version: 0.70.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rubocop-github
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.12.0
75
+ version: 0.13.0
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 0.12.0
82
+ version: 0.13.0
83
83
  - !ruby/object:Gem::Dependency
84
- name: code_metric_fu
84
+ name: metric_fu
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 4.14.4
89
+ version: 4.13.0
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 4.14.4
96
+ version: 4.13.0
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: bundler
99
99
  requirement: !ruby/object:Gem::Requirement