rubycritic 3.1.2 → 3.1.3

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: f8f2f85163f5b08fc060734e2d5f0bd1a507a8a3
4
- data.tar.gz: 96e256ad688633e3fcd70241ca88e83c2bd1b985
3
+ metadata.gz: 3251286e7b987d5055afe5a7c2f47ee7aff9b9a6
4
+ data.tar.gz: b49bad4f415c7a6aaacdfe7039a06e9f90fcd99d
5
5
  SHA512:
6
- metadata.gz: f01945bea4bab8706ecd0df163bc0295edc6f28d300b45aa91dac33af99888694b50d819d9cb072782afc2514d26b72815b53b886919534e4d797c82fa76072b
7
- data.tar.gz: 2fdd9bece78a7604c76f5d0ddaf4a197000463eb1c42854603f6452ba663d875b98e6e9706916c5c81d7f1be69aa4e697b4dd6365856e0424a41e6815305e3f3
6
+ metadata.gz: af5eb2ab7965ed2bccb20a73db500688809e7ad305147b92680eaa650fbb22c5bb6fc4dd78dd19b9cd49bbfedf26f1a86eb3b2b01b88d097c6f9842d3690c335
7
+ data.tar.gz: b2ebed2b4d96b5187e9a6fbd4079183a6885cdb2f6a64083a49af9417b17d0f1ef826abdb175ff85b4fe4daa0ec65929566cbd172ffbd7cd7567e4af4ef72004
data/CHANGELOG.md CHANGED
@@ -1,88 +1,95 @@
1
+ # master (unreleased)
2
+
3
+ # 3.1.3 / 2016-12-19
4
+
5
+ * [BUGFIX] Fix crash with the usage of an unavailable color in "rainbow" gem (by [@thedrow][])
6
+
1
7
  # 3.1.2 / 2016-12-17
2
8
 
3
- * [BUGFIX] Fix lack of the GPA chart when used with rake/rails (by hoshinotsuyoshi)
4
- * [BUGFIX] Fix code navigation links in the new UI (by rohitcy)
9
+ * [BUGFIX] Fix errors when no source-control is found (by [@tejasbubane][])
10
+ * [BUGFIX] Fix lack of the GPA chart when used with rake/rails (by [@hoshinotsuyoshi][])
11
+ * [BUGFIX] Fix code navigation links in the new UI (by [@rohitcy][])
5
12
 
6
13
  # 3.1.1 / 2016-12-02
7
14
 
8
- * [FEATURE] Implement search and filter on code and smells view (rohitcy)
9
- * [CHANGE] Use Ruby's File instead of `wc` system command (by tejasbubane)
10
- * [CHANGE] Add MRI 2.3.3 compatibility by updating `parser` to v2.3.3.1 (by josephpage)
11
- * [BUGFIX] Fix code navigation links in the new UI (by rohitcy)
12
- * [BUGFIX] Add missing method 'head_reference' for Perforce source control (Rataah)
15
+ * [FEATURE] Implement search and filter on code and smells view (by [@rohitcy][])
16
+ * [CHANGE] Use Ruby's File instead of `wc` system command (by [@tejasbubane][])
17
+ * [CHANGE] Add MRI 2.3.3 compatibility by updating `parser` to v2.3.3.1 (by [@josephpage][])
18
+ * [BUGFIX] Fix code navigation links in the new UI (by [@rohitcy][])
19
+ * [BUGFIX] Add missing method 'head_reference' for Perforce source control (by [@Rataah][])
13
20
 
14
21
  # 3.1.0 / 2016-11-23
15
22
 
16
- * [FEATURE] Support for Perforce source control system (by Loic Gudet)
17
- * [CHANGE] New Web UI (by tejasbubane)
18
- * [CHANGE] Significant improvements to documentation (by olleolleolle)
19
- * [CHANGE] Typo / consistency updates to features and tests (by olleolleolle)
20
- * [CHANGE] Fix test warnings and upgrade 'parser' to '2.3.1.4' (by tejasbubane)
21
- * [BUGFIX] Increase the turboThreshold of Highcharts so that it renders nicely even with lots of data (by Victor Martins)
23
+ * [FEATURE] Support for Perforce source control system (by [@Rataah][])
24
+ * [CHANGE] New Web UI (by [@tejasbubane][])
25
+ * [CHANGE] Significant improvements to documentation (by [@olleolleolle][])
26
+ * [CHANGE] Typo / consistency updates to features and tests (by [@olleolleolle][])
27
+ * [CHANGE] Fix test warnings and upgrade 'parser' to '2.3.1.4' (by [@tejasbubane][])
28
+ * [BUGFIX] Increase the turboThreshold of Highcharts so that it renders nicely even with lots of data (by [@victormartins][])
22
29
 
23
30
  # 3.0.0 / 2016-11-01
24
31
 
25
- * [CHANGE] Set required ruby version to 2.1 (by Onumis)
26
- * [BUGFIX] Respect the .reek configuration file (by mereghost)
32
+ * [CHANGE] Set required ruby version to 2.1 (by [@Onumis][])
33
+ * [BUGFIX] Respect the .reek configuration file (by [@mereghost][])
27
34
 
28
35
  # 2.9.4 / 2016-09-16
29
36
 
30
- * [CHANGE] Update Reek, flog, flay (by bglusman)
37
+ * [CHANGE] Update Reek, flog, flay (by [@bglusman][])
31
38
 
32
39
  # 2.9.3 / 2016-08-17
33
40
 
34
- * [FEATURE] Save json report to file (by NickTroy)
35
- * [CHANGE] Rename Rubycritic to RubyCritic (by troessner)
41
+ * [FEATURE] Save json report to file (by [@NickTroy][])
42
+ * [CHANGE] Rename Rubycritic to RubyCritic (by [@troessner][])
36
43
 
37
44
  # 2.9.2 / 2016-07-01
38
45
 
39
- * [CHANGE] Upgrade rubocop to 0.41.1 (by nijikon)
40
- * [CHANGE] Upgrade flog to 4.4.0 (by nijikon)
41
- * [CHANGE] Upgrade flay to 2.8.0 (by nijikon)
42
- * [CHANGE] Upgrade Reek to 4.1.0 and Parser to 2.3.1.2 (by y-yagi)
46
+ * [CHANGE] Upgrade rubocop to 0.41.1 (by [@nijikon][])
47
+ * [CHANGE] Upgrade flog to 4.4.0 (by [@nijikon][])
48
+ * [CHANGE] Upgrade flay to 2.8.0 (by [@nijikon][])
49
+ * [CHANGE] Upgrade Reek to 4.1.0 and Parser to 2.3.1.2 (by [@y-yagi][])
43
50
 
44
51
  # 2.9.1 / 2016-05-16
45
52
 
46
- * [CHANGE] Upgrade 'parser' to 2.3.1.0 (by y-yagi)
47
- * [CHANGE] Upgrade 'reek' to 4.0.2 (by onumis)
48
- * [CHANGE] Upgrade 'rubocop' to 0.40.0 (by onumis)
53
+ * [CHANGE] Upgrade 'parser' to 2.3.1.0 (by [@y-yagi][])
54
+ * [CHANGE] Upgrade 'reek' to 4.0.2 (by [@onumis][])
55
+ * [CHANGE] Upgrade 'rubocop' to 0.40.0 (by [@onumis][])
49
56
 
50
57
  # 2.9.0 / 2016-04-12
51
58
 
52
- * [FEATURE] Add links to Flay and Flog code smells documentation (by ragesoss)
53
- * [FEATURE] Documentation updates (by troessner)
54
- * [CHANGE] Bump Rubocop to 0.39.0 (by nijikon)
55
- * [CHANGE] Bump Reek to 4.0.1 (by nijikon)
56
- * [CHANGE] Drop support for Ruby 2.0 (by nijikon)
59
+ * [FEATURE] Add links to Flay and Flog code smells documentation (by [@ragesoss][])
60
+ * [FEATURE] Documentation updates (by [@troessner][])
61
+ * [CHANGE] Bump Rubocop to 0.39.0 (by [@nijikon][])
62
+ * [CHANGE] Bump Reek to 4.0.1 (by [@nijikon][])
63
+ * [CHANGE] Drop support for Ruby 2.0 (by [@nijikon][])
57
64
 
58
65
  # 2.8.0 / 2016-02-29
59
66
 
60
- * [FEATURE] Add link to Reek's code smells documentation (by danielmbarlow)
61
- * [FEATURE] Make RubyCritic usable as Rake Task (by Timo Rößner)
62
- * [CHANGE] Bump Rubocop to 0.37.2 (by Tomasz Pajor)
63
- * [CHANGE] Bump Flay to 2.7.0 (by Tomasz Pajor)
64
- * [CHANGE] Bump Reek to 3.11 (by Tomasz Pajor)
65
- * [CHANGE] Add explicit runtime dependency on ruby_parser ('~> 3.8') (by Nuno Silva)
67
+ * [FEATURE] Add link to Reek's code smells documentation (by [@danielmbarlow][])
68
+ * [FEATURE] Make RubyCritic usable as Rake Task (by [@troessner][])
69
+ * [CHANGE] Bump Rubocop to 0.37.2 (by [@nijikon][])
70
+ * [CHANGE] Bump Flay to 2.7.0 (by [@nijikon][])
71
+ * [CHANGE] Bump Reek to 3.11 (by [@nijikon][])
72
+ * [CHANGE] Add explicit runtime dependency on ruby_parser ('~> 3.8') (by [@Onumis][])
66
73
 
67
74
  # 2.7.1 / 2016-02-09
68
75
 
69
- * [CHANGE] Bump Reek to 3.10.1 (by Tomasz Pajor)
70
- * [BUGFIX] Analyse only the files whose paths are specified in the CLI (by Nuno Silva)
76
+ * [CHANGE] Bump Reek to 3.10.1 (by [@nijikon][])
77
+ * [BUGFIX] Analyse only the files whose paths are specified in the CLI (by [@Onumis][])
71
78
 
72
79
  # 2.7.0 / 2016-01-23
73
80
 
74
- * [FEATURE] Open html report with browser (by YingRui Lu)
81
+ * [FEATURE] Open html report with browser (by [@superiorlu][])
75
82
  * [CHANGE] Bump Reek to 3.9.1
76
83
  * [CHANGE] Bump Rubocop to 0.36 and internal cleanup (preparing for Ruby 2.3)
77
84
 
78
85
  # 2.6.0 / 2016-01-21
79
86
 
80
- * [FEATURE] Add a minimum score option to the command line interface (by Roberto Schneider)
87
+ * [FEATURE] Add a minimum score option to the command line interface (by [@RobertoSchneiders][])
81
88
  * [CHANGE] Display the class and module names when the file has no methods
82
89
 
83
90
  # 2.5.0 / 2016-01-16
84
91
 
85
- * [FEATURE] Add a ConsoleReport format (by Josh Bodah)
92
+ * [FEATURE] Add a ConsoleReport format (by [@jbodah][])
86
93
 
87
94
  # 2.4.1 / 2015-12-27
88
95
 
@@ -90,11 +97,11 @@
90
97
 
91
98
  # 2.4.0 / 2015-12-26
92
99
 
93
- * [FEATURE] Add progress bar functionality (by Nate Holland)
100
+ * [FEATURE] Add progress bar functionality (by [@natesholland][])
94
101
 
95
102
  # 2.3.0 / 2015-11-30
96
103
 
97
- * [FEATURE] Added global score calculation (by Ancor Gonzalez Sosa)
104
+ * [FEATURE] Added global score calculation (by [@ancorgs][])
98
105
  * [CHANGE] Bump Reek dependency to 3.7.1.
99
106
 
100
107
  # 2.2.0 / 2015-11-20
@@ -114,12 +121,12 @@
114
121
  # 1.4.0 / 2015-03-14
115
122
 
116
123
  * [FEATURE] New report in JSON format. Available by using the new CLI option `-f`
117
- * [FEATURE] New CLI option `--suppress-ratings` to suppress ratings (by halostatue)
118
- * [CHANGE] Improve UI, particularly the sortable tables (by crackofdusk)
124
+ * [FEATURE] New CLI option `--suppress-ratings` to suppress ratings (by [@halostatue][])
125
+ * [CHANGE] Improve UI, particularly the sortable tables (by [@crackofdusk][])
119
126
 
120
127
  # 1.3.0 / 2015-02-16
121
128
 
122
- * [FEATURE] New CLI option `--deduplicate-symlinks` to deduplicate symlinks (by LeeXGreen)
129
+ * [FEATURE] New CLI option `--deduplicate-symlinks` to deduplicate symlinks (by [@LeeXGreen][])
123
130
  * [CHANGE] Update to Reek 1.6.5 (from 1.6.3)
124
131
  * [CHANGE] Remove ruby2ruby dependency
125
132
 
@@ -156,3 +163,30 @@
156
163
  # 1.0.0 / 2014-07-13
157
164
 
158
165
  * Official Release
166
+
167
+
168
+ [@LeeXGreen]: https://github.com/LeeXGreen
169
+ [@crackofdusk]: https://github.com/crackofdusk
170
+ [@halostatue]: https://github.com/halostatue
171
+ [@ancorgs]: https://github.com/ancorgs
172
+ [@natesholland]: https://github.com/natesholland
173
+ [@jbodah]: https://github.com/jbodah
174
+ [@RobertoSchneiders]: https://github.com/RobertoSchneiders
175
+ [@superiorlu]: https://github.com/superiorlu
176
+ [@Onumis]: https://github.com/Onumis
177
+ [@nijikon]: https://github.com/nijikon
178
+ [@troessner]: https://github.com/troessner
179
+ [@danielmbarlow]: https://github.com/danielmbarlow
180
+ [@ragesoss]: https://github.com/ragesoss
181
+ [@y-yagi]: https://github.com/y-yagi
182
+ [@NickTroy]: https://github.com/NickTroy
183
+ [@bglusman]: https://github.com/bglusman
184
+ [@mereghost]: https://github.com/mereghost
185
+ [@victormartins]: https://github.com/victormartins
186
+ [@tejasbubane]: https://github.com/tejasbubane
187
+ [@olleolleolle]: https://github.com/olleolleolle
188
+ [@Rataah]: https://github.com/Rataah
189
+ [@rohitcy]: https://github.com/rohitcy
190
+ [@josephpage]: https://github.com/josephpage
191
+ [@hoshinotsuyoshi]: https://github.com/hoshinotsuyoshi
192
+ [@thedrow]: https://github.com/thedrow
data/CONTRIBUTING.md CHANGED
@@ -20,19 +20,21 @@ If you want to squash a bug or add a new feature, please:
20
20
 
21
21
  4. Run the tests with the `rake` command. Make sure that they are still passing.
22
22
 
23
- 5. [Stage partial-file changesets] \(`git add -p`).
23
+ 5. Add a Changelog entry. Refer [Changelog entry format](#changelog-entry-format).
24
24
 
25
- 6. Commit your changes (`git commit`).
25
+ 6. [Stage partial-file changesets] \(`git add -p`).
26
+
27
+ 7. Commit your changes (`git commit`).
26
28
  Make exactly as many commits as you need.
27
29
  Each commit should do one thing and one thing only. For example, all whitespace fixes should be relegated to a single commit.
28
30
 
29
- 7. Write [descriptive commit messages].
31
+ 8. Write [descriptive commit messages].
30
32
 
31
- 8. Push the branch to GitHub (`git push origin my-new-feature`).
33
+ 9. Push the branch to GitHub (`git push origin my-new-feature`).
32
34
 
33
- 9. [Create a Pull Request] and send it to be merged with the master branch.
35
+ 10. [Create a Pull Request] and send it to be merged with the master branch.
34
36
 
35
- 10. After your code is reviewed, [hide the sausage making]. We follow the "one commit per pull request" [principle](http://ndlib.github.io/practices/one-commit-per-pull-request/) since this allows for a clean git history, easy handling of features and convenient rollbacks when things go wrong. Or in one sentence: You can have as many commits as you want in your pull request, but after the final review and before the merge you need to squash all of those in one single commit.
37
+ 11. After your code is reviewed, [hide the sausage making]. We follow the "one commit per pull request" [principle](http://ndlib.github.io/practices/one-commit-per-pull-request/) since this allows for a clean git history, easy handling of features and convenient rollbacks when things go wrong. Or in one sentence: You can have as many commits as you want in your pull request, but after the final review and before the merge you need to squash all of those in one single commit.
36
38
  For a more in-depth look at interactive rebasing, be sure to check [how to rewrite history] as well.
37
39
 
38
40
  Improving the Documentation
@@ -70,3 +72,21 @@ If you are experiencing unexpected behavior and, after having read the documenta
70
72
  [issues tracker]: https://github.com/whitesmith/rubycritic/issues
71
73
  [Create a new issue]: https://github.com/whitesmith/rubycritic/issues/new
72
74
  [How to Report Bugs Effectively]: http://www.chiark.greenend.org.uk/~sgtatham/bugs.html
75
+
76
+ Changelog entry format
77
+ ------------------------
78
+ Here are a few examples:
79
+
80
+ ```
81
+ * [BUGFIX] Fix errors when no source-control is found (by [@tejasbubane][])
82
+ * [BUGFIX] Fix lack of the GPA chart when used with rake/rails (by [@hoshinotsuyoshi][])
83
+ * [BUGFIX] Fix code navigation links in the new UI (by [@rohitcy][])
84
+ ```
85
+
86
+ * Mark it up in [Markdown syntax](http://daringfireball.net/projects/markdown/syntax).
87
+ * Add your entry in the `master (unreleased)` section.
88
+ * The entry line should start with `* ` (an asterisk and a space).
89
+ * Start with the change type BUGFIX / CHANGE / FEATURE.
90
+ * Describe the brief of the change.
91
+ * At the end of the entry, add an implicit link to your GitHub user page as `([@username][])`.
92
+ * If this is your first contribution to RuboCop project, add a link definition for the implicit link to the bottom of the changelog as `[@username]: https://github.com/username`.
@@ -17,7 +17,7 @@ module RubyCritic
17
17
  'A' => :green,
18
18
  'B' => :green,
19
19
  'C' => :yellow,
20
- 'D' => :light_red,
20
+ 'D' => :orange,
21
21
  'F' => :red
22
22
  }.freeze
23
23
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubyCritic
4
- VERSION = '3.1.2'.freeze
4
+ VERSION = '3.1.3'.freeze
5
5
  end
data/rubycritic.gemspec CHANGED
@@ -27,7 +27,7 @@ Gem::Specification.new do |spec|
27
27
  spec.add_runtime_dependency 'reek', '~> 4.4'
28
28
  spec.add_runtime_dependency 'parser', '2.3.3.1'
29
29
  spec.add_runtime_dependency 'ruby_parser', '~> 3.8'
30
- spec.add_runtime_dependency 'rainbow'
30
+ spec.add_runtime_dependency 'rainbow', '~> 2.1'
31
31
  spec.add_runtime_dependency 'launchy', '2.4.3'
32
32
 
33
33
  spec.add_development_dependency 'aruba'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubycritic
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.2
4
+ version: 3.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guilherme Simoes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-17 00:00:00.000000000 Z
11
+ date: 2016-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: virtus
@@ -98,16 +98,16 @@ dependencies:
98
98
  name: rainbow
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ">="
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '0'
103
+ version: '2.1'
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ">="
108
+ - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '0'
110
+ version: '2.1'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: launchy
113
113
  requirement: !ruby/object:Gem::Requirement