rubycritic 4.5.2 → 4.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +13 -1
  3. data/lib/rubycritic/analysers/coverage.rb +25 -23
  4. data/lib/rubycritic/cli/options/argv.rb +8 -1
  5. data/lib/rubycritic/commands/compare.rb +3 -2
  6. data/lib/rubycritic/configuration.rb +14 -5
  7. data/lib/rubycritic/generators/html/assets/{fonts → vendor/fonts}/FontAwesome.otf +0 -0
  8. data/lib/rubycritic/generators/html/assets/{fonts → vendor/fonts}/fontawesome-webfont.eot +0 -0
  9. data/lib/rubycritic/generators/html/assets/{fonts → vendor/fonts}/fontawesome-webfont.svg +0 -0
  10. data/lib/rubycritic/generators/html/assets/{fonts → vendor/fonts}/fontawesome-webfont.ttf +0 -0
  11. data/lib/rubycritic/generators/html/assets/{fonts → vendor/fonts}/fontawesome-webfont.woff +0 -0
  12. data/lib/rubycritic/generators/html/assets/{fonts → vendor/fonts}/fontawesome-webfont.woff2 +0 -0
  13. data/lib/rubycritic/generators/html/assets/{fonts → vendor/fonts}/glyphicons-halflings-regular.eot +0 -0
  14. data/lib/rubycritic/generators/html/assets/{fonts → vendor/fonts}/glyphicons-halflings-regular.svg +0 -0
  15. data/lib/rubycritic/generators/html/assets/{fonts → vendor/fonts}/glyphicons-halflings-regular.ttf +0 -0
  16. data/lib/rubycritic/generators/html/assets/{fonts → vendor/fonts}/glyphicons-halflings-regular.woff +0 -0
  17. data/lib/rubycritic/generators/html/assets/{fonts → vendor/fonts}/glyphicons-halflings-regular.woff2 +0 -0
  18. data/lib/rubycritic/generators/html/assets/{javascripts → vendor/javascripts}/bootstrap.min.js +0 -0
  19. data/lib/rubycritic/generators/html/assets/{javascripts → vendor/javascripts}/highcharts.src-4.0.1.js +0 -0
  20. data/lib/rubycritic/generators/html/assets/{javascripts → vendor/javascripts}/jquery.filtertable.min.js +0 -0
  21. data/lib/rubycritic/generators/html/assets/{javascripts → vendor/javascripts}/jquery.min.js +0 -0
  22. data/lib/rubycritic/generators/html/assets/{javascripts → vendor/javascripts}/jquery.scrollTo.min.js +0 -0
  23. data/lib/rubycritic/generators/html/assets/{javascripts → vendor/javascripts}/jquery.tablesorter.js +0 -0
  24. data/lib/rubycritic/generators/html/assets/{javascripts → vendor/javascripts}/jquery.tablesorter.min.js +0 -0
  25. data/lib/rubycritic/generators/html/assets/{javascripts → vendor/javascripts}/jquery.timeago.js +0 -0
  26. data/lib/rubycritic/generators/html/assets/{javascripts → vendor/javascripts}/prettify.js +0 -0
  27. data/lib/rubycritic/generators/html/assets/{stylesheets → vendor/stylesheets}/bootstrap.min.css +0 -0
  28. data/lib/rubycritic/generators/html/assets/{stylesheets → vendor/stylesheets}/font-awesome.min.css +0 -0
  29. data/lib/rubycritic/generators/html/assets/{stylesheets → vendor/stylesheets}/prettify.css +0 -0
  30. data/lib/rubycritic/generators/html/assets/{stylesheets → vendor/stylesheets}/prettify.custom_theme.css +0 -0
  31. data/lib/rubycritic/generators/html/templates/layouts/application.html.erb +14 -14
  32. data/lib/rubycritic/generators/html/view_helpers.rb +0 -12
  33. data/lib/rubycritic/source_control_systems/base.rb +1 -1
  34. data/lib/rubycritic/source_control_systems/git.rb +1 -1
  35. data/lib/rubycritic/source_control_systems/git/churn.rb +8 -2
  36. data/lib/rubycritic/version.rb +1 -1
  37. metadata +87 -81
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 652fcfc312c74fc2e3192e2ce98fb03055308ce5760d6697dd58d04eb59df508
4
- data.tar.gz: b8c845a71d1277a0e569f2a43b477fb8b399f1800c0ff420893c2bf89f447dbd
3
+ metadata.gz: 3e29663da0f7e6b712b6159000d212bc6a4857b1422058c0b5e9073cf211aabb
4
+ data.tar.gz: a735167e5d172d2fe951bbdd19fe16764246dfe6f6c632e95bad960a3bc57cbb
5
5
  SHA512:
6
- metadata.gz: fb084002ab283454294ae6a7d5e87824c5fff66b77d107f9f04fd22a10153cbc2b3ef56635371fc55037d4e8af9276f6563c39de6d3ab2c33d600d0def59b30c
7
- data.tar.gz: 456aa8aaaa6115c8fcb72430ee7db5ae5f2f94cf5bd6fa5f5ee344f95cc46bd5544e6235138a43162810916a52f501695e3e51d9d6c510bb7ddd303a696d4831
6
+ metadata.gz: 572343ee07ec87aedc9d3774e89d2ff8ba1b9acd9682f9378070e197a3fdfe173d29cf112811213c08c3f95ce596dc71894496296a051bec504c87f486981c23
7
+ data.tar.gz: f34521dff687c6cc832ba6dd6e5afd60e2f76ef5e1fefc10db5be9ad273d5110867b6459c05a5e8081bd8dbb5e97f5d64f4d60cad8360f8c808b6ad0880b4977
@@ -1,4 +1,11 @@
1
- # master [(unreleased)](https://github.com/whitesmith/rubycritic/compare/v4.5.1...master)
1
+ # main [(unreleased)](https://github.com/whitesmith/rubycritic/compare/v4.6.0...main)
2
+
3
+ # v4.6.0 / 2021-01-28 [(commits)](https://github.com/whitesmith/rubycritic/compare/v4.5.2...v4.6.0)
4
+
5
+ * [CHANGE] Fix rubocop offenses (by [@sl4vr][])
6
+ * [CHANGE] Make Github Linguist ignore vendored files (by [@sl4vr][])
7
+ * [BUGFIX] Fix directory structure of reports when comparing branches (by [@denny][])
8
+ * [BUGFIX] Restrict simplecov to versions before data format changed (by [@denny][])
2
9
 
3
10
  # v4.5.2 / 2020-08-20 [(commits)](https://github.com/whitesmith/rubycritic/compare/v4.5.1...v4.5.2)
4
11
 
@@ -8,6 +15,8 @@
8
15
 
9
16
  * [BUGFIX] Handle git --name-status Copied (C) operation (by [@rizalmuthi][])
10
17
 
18
+ * [FEATURE] Add --churn-after (only supports git) to limit churn analysis to recent history (by [@jackcasey][])
19
+
11
20
  # v4.5.0 / 2020-05-14 [(commits)](https://github.com/whitesmith/rubycritic/compare/v4.4.1...v4.5.0)
12
21
 
13
22
  * [CHANGE] Relax `launchy` version dependency requirement
@@ -348,3 +357,6 @@
348
357
  [@GeoffTidey]: https://github.com/GeoffTidey
349
358
  [@lloydwatkin]: https://github.com/lloydwatkin
350
359
  [@Flink]: https://github.com/Flink
360
+ [@jackcasey]: https://github.com/jackcasey
361
+ [@sl4vr]: https://github.com/sl4vr
362
+ [@denny]: https://github.com/denny
@@ -9,6 +9,8 @@ module RubyCritic
9
9
  class Coverage
10
10
  include Colorize
11
11
 
12
+ RESULTSET_FILENAME = '.resultset.json'
13
+
12
14
  def initialize(analysed_modules)
13
15
  @analysed_modules = analysed_modules
14
16
  @result = results.first
@@ -44,30 +46,28 @@ module RubyCritic
44
46
  @result.source_files.detect { |file| file.filename == needle }
45
47
  end
46
48
 
47
- # The path to the .resultset.json cache file
49
+ # The path to the cache file
48
50
  def resultset_path
49
- File.join(SimpleCov.coverage_path, '.resultset.json')
51
+ File.join(SimpleCov.coverage_path, RESULTSET_FILENAME)
50
52
  end
51
53
 
52
54
  def resultset_writelock
53
- File.join(SimpleCov.coverage_path, '.resultset.json.lock')
55
+ "#{resultset_path}.lock"
54
56
  end
55
57
 
56
58
  # Loads the cached resultset from JSON and returns it as a Hash,
57
59
  # caching it for subsequent accesses.
58
60
  def resultset
59
- @resultset ||= begin
60
- if (data = stored_data)
61
- begin
62
- JSON.parse(data) || {}
63
- rescue JSON::ParserError => err
64
- puts "Error: Loading .resultset.json: #{err.message}"
65
- {}
66
- end
67
- else
68
- {}
69
- end
70
- end
61
+ @resultset ||= parse_resultset(stored_data)
62
+ end
63
+
64
+ def parse_resultset(data)
65
+ return {} unless data
66
+
67
+ JSON.parse(data) || {}
68
+ rescue JSON::ParserError => err
69
+ puts "Error: Loading #{RESULTSET_FILENAME}: #{err.message}"
70
+ {}
71
71
  end
72
72
 
73
73
  # Returns the contents of the resultset cache as a string or if the file is missing or empty nil
@@ -91,15 +91,17 @@ module RubyCritic
91
91
 
92
92
  return yield unless File.exist?(resultset_writelock)
93
93
 
94
- begin
95
- @resultset_locked = true
96
- File.open(resultset_writelock, 'w+') do |file|
97
- file.flock(File::LOCK_EX)
98
- yield
99
- end
100
- ensure
101
- @resultset_locked = false
94
+ with_lock(&proc)
95
+ end
96
+
97
+ def with_lock
98
+ @resultset_locked = true
99
+ File.open(resultset_writelock, 'w+') do |file|
100
+ file.flock(File::LOCK_EX)
101
+ yield
102
102
  end
103
+ ensure
104
+ @resultset_locked = false
103
105
  end
104
106
 
105
107
  # Gets the resultset hash and re-creates all included instances
@@ -70,6 +70,12 @@ module RubyCritic
70
70
  self.minimum_score = Float(min_score)
71
71
  end
72
72
 
73
+ opts.on('--churn-after [DATE]', 'Only count churn from a certain date.',
74
+ 'The date is passed through to version control (currently git only).',
75
+ 'Example: 2017-01-01') do |churn_after|
76
+ self.churn_after = churn_after
77
+ end
78
+
73
79
  opts.on('-m', '--mode-ci [BASE_BRANCH]',
74
80
  'Use CI mode (faster, analyses diffs w.r.t base_branch (default: master))') do |branch|
75
81
  self.base_branch = branch || 'master'
@@ -110,6 +116,7 @@ module RubyCritic
110
116
  suppress_ratings: suppress_ratings,
111
117
  help_text: parser.help,
112
118
  minimum_score: minimum_score,
119
+ churn_after: churn_after,
113
120
  no_browser: no_browser,
114
121
  base_branch: base_branch,
115
122
  feature_branch: feature_branch,
@@ -121,7 +128,7 @@ module RubyCritic
121
128
  private
122
129
 
123
130
  attr_accessor :mode, :root, :formats, :formatters, :deduplicate_symlinks,
124
- :suppress_ratings, :minimum_score, :no_browser,
131
+ :suppress_ratings, :minimum_score, :churn_after, :no_browser,
125
132
  :parser, :base_branch, :feature_branch, :threshold_score
126
133
  def paths
127
134
  @argv unless @argv.empty?
@@ -13,6 +13,7 @@ module RubyCritic
13
13
  class Compare < Default
14
14
  def initialize(options)
15
15
  super
16
+ @original_config_root = Config.root
16
17
  @build_number = 0
17
18
  end
18
19
 
@@ -57,7 +58,7 @@ module RubyCritic
57
58
  def analyse_modified_files
58
59
  modified_files = Config.feature_branch_collection.where(SourceControlSystem::Git.modified_files)
59
60
  analysed_modules = AnalysedModulesCollection.new(modified_files.map(&:path), modified_files)
60
- Config.root = "#{Config.root}/compare"
61
+ Config.root = Config.compare_root_directory
61
62
  report(analysed_modules)
62
63
  end
63
64
 
@@ -85,7 +86,7 @@ module RubyCritic
85
86
  end
86
87
 
87
88
  def branch_directory(branch)
88
- "#{Config.root}/compare/#{Config.send(branch)}"
89
+ "#{@original_config_root}/compare/#{Config.send(branch)}"
89
90
  end
90
91
 
91
92
  # create a txt file with the branch score details
@@ -10,7 +10,7 @@ module RubyCritic
10
10
  :feature_branch, :base_branch_score, :feature_branch_score,
11
11
  :base_root_directory, :feature_root_directory,
12
12
  :compare_root_directory, :threshold_score, :base_branch_collection,
13
- :feature_branch_collection
13
+ :feature_branch_collection, :churn_after
14
14
 
15
15
  def set(options)
16
16
  self.mode = options[:mode] || :default
@@ -19,12 +19,17 @@ module RubyCritic
19
19
  self.suppress_ratings = options[:suppress_ratings]
20
20
  self.open_with = options[:open_with]
21
21
  self.no_browser = options[:no_browser]
22
- self.base_branch = options[:base_branch]
23
- self.feature_branch = options[:feature_branch]
24
22
  self.threshold_score = options[:threshold_score].to_i
23
+ setup_version_control(options)
25
24
  setup_formats(options)
26
25
  end
27
26
 
27
+ def setup_version_control(options)
28
+ self.base_branch = options[:base_branch]
29
+ self.feature_branch = options[:feature_branch]
30
+ self.churn_after = options[:churn_after]
31
+ end
32
+
28
33
  def setup_formats(options)
29
34
  formats = options[:formats].to_a
30
35
  self.formats = formats.empty? ? [:html] : formats
@@ -59,11 +64,15 @@ module RubyCritic
59
64
  end
60
65
 
61
66
  def self.method_missing(method, *args, &block)
62
- configuration.public_send(method, *args, &block)
67
+ if configuration.respond_to?(method)
68
+ configuration.public_send(method, *args, &block)
69
+ else
70
+ super
71
+ end
63
72
  end
64
73
 
65
74
  def self.respond_to_missing?(symbol, include_all = false)
66
- configuration.respond_to_missing?(symbol) || super
75
+ configuration.respond_to?(symbol) || super
67
76
  end
68
77
  end
69
78
  end
@@ -8,16 +8,16 @@
8
8
  <meta name="viewport" content="width=device-width, initial-scale=1">
9
9
 
10
10
  <!-- StyleSheets -->
11
- <link href="<%= stylesheet_path(:'bootstrap.min') %>" media="screen, projection, print" rel="stylesheet" type="text/css">
12
- <link href="<%= stylesheet_path(:'font-awesome.min') %>" media="screen, projection, print" rel="stylesheet" type="text/css">
13
- <link href="<%= stylesheet_path(:'prettify.custom_theme') %>" media="screen, projection, print" rel="stylesheet" type="text/css">
14
- <link href="<%= stylesheet_path(:application) %>" media="screen, projection, print" rel="stylesheet" type="text/css">
11
+ <link href="<%= asset_path("vendor/stylesheets/bootstrap.min.css") %>" media="screen, projection, print" rel="stylesheet" type="text/css">
12
+ <link href="<%= asset_path("vendor/stylesheets/font-awesome.min.css") %>" media="screen, projection, print" rel="stylesheet" type="text/css">
13
+ <link href="<%= asset_path("vendor/stylesheets/prettify.custom_theme.css") %>" media="screen, projection, print" rel="stylesheet" type="text/css">
14
+ <link href="<%= asset_path("stylesheets/application.css") %>" media="screen, projection, print" rel="stylesheet" type="text/css">
15
15
  </head>
16
16
 
17
17
  <body>
18
18
  <header class="navbar navbar-default navbar-fixed-top">
19
19
  <a href="#menu-toggle" class="btn btn-default hidden-lg visible-sm-* hidden-md visible-xs-* pull-left" id="menu-toggle"><i class="fa fa-bars" aria-hidden="true"></i></a>
20
- <a href="<%= file_path('overview.html') %>"><img src="<%= image_path('logo.png') %>" alt="Ruby Critic Logo" title="Ruby Critic Logo" width="55"><span class="logo">RUBYCRITIC</span></a>
20
+ <a href="<%= file_path('overview.html') %>"><img src="<%= asset_path('images/logo.png') %>" alt="Ruby Critic Logo" title="Ruby Critic Logo" width="55"><span class="logo">RUBYCRITIC</span></a>
21
21
  <% if Config.compare_branches_mode? %>
22
22
  <ul class="nav navbar-nav navbar-right">
23
23
  <a href="<%= @base_path %>"><span class="branch"><%= Config.base_branch %></span></a>
@@ -53,14 +53,14 @@
53
53
  </div>
54
54
 
55
55
  <!-- JavaScripts -->
56
- <%= javascript_tag(:'jquery.min') %>
57
- <%= javascript_tag(:'jquery.tablesorter.min') %>
58
- <%= javascript_tag(:'jquery.scrollTo.min') %>
59
- <%= javascript_tag(:'jquery.timeago') %>
60
- <%= javascript_tag(:'highcharts.src-4.0.1') %>
61
- <%= javascript_tag(:'prettify') %>
62
- <%= javascript_tag(:'bootstrap.min') %>
63
- <%= javascript_tag(:application) %>
64
- <%= javascript_tag(:'jquery.filtertable.min') %>
56
+ <script src="<%= asset_path("vendor/javascripts/jquery.min.js") %>"></script>
57
+ <script src="<%= asset_path("vendor/javascripts/jquery.tablesorter.min.js") %>"></script>
58
+ <script src="<%= asset_path("vendor/javascripts/jquery.scrollTo.min.js") %>"></script>
59
+ <script src="<%= asset_path("vendor/javascripts/jquery.timeago.js") %>"></script>
60
+ <script src="<%= asset_path("vendor/javascripts/highcharts.src-4.0.1.js") %>"></script>
61
+ <script src="<%= asset_path("vendor/javascripts/prettify.js") %>"></script>
62
+ <script src="<%= asset_path("vendor/javascripts/bootstrap.min.js") %>"></script>
63
+ <script src="<%= asset_path("javascripts/application.js") %>"></script>
64
+ <script src="<%= asset_path("vendor/javascripts/jquery.filtertable.min.js") %>"></script>
65
65
  </body>
66
66
  </html>
@@ -6,22 +6,10 @@ module RubyCritic
6
6
  "<time class='js-timeago' datetime='#{time}'>#{time}</time>"
7
7
  end
8
8
 
9
- def javascript_tag(file)
10
- "<script src='" + asset_path("javascripts/#{file}.js").to_s + "'></script>"
11
- end
12
-
13
- def stylesheet_path(file)
14
- asset_path("stylesheets/#{file}.css")
15
- end
16
-
17
9
  def asset_path(file)
18
10
  relative_path("assets/#{file}")
19
11
  end
20
12
 
21
- def image_path(file)
22
- asset_path("images/#{file}")
23
- end
24
-
25
13
  def file_path(file)
26
14
  relative_path(file)
27
15
  end
@@ -6,7 +6,7 @@ require 'shellwords'
6
6
  module RubyCritic
7
7
  module SourceControlSystem
8
8
  class Base
9
- @@systems = []
9
+ @@systems = [] # rubocop:disable Style/ClassVars
10
10
 
11
11
  def self.register_system
12
12
  @@systems << self
@@ -30,7 +30,7 @@ module RubyCritic
30
30
  end
31
31
 
32
32
  def churn
33
- @churn ||= Churn.new
33
+ @churn ||= Churn.new(churn_after: Config.churn_after)
34
34
  end
35
35
 
36
36
  def revisions_count(path)
@@ -21,10 +21,11 @@ module RubyCritic
21
21
  end
22
22
 
23
23
  class Churn
24
- def initialize
24
+ def initialize(churn_after: nil)
25
25
  @renames = Renames.new
26
26
  @date = nil
27
27
  @stats = {}
28
+ @churn_after = churn_after
28
29
 
29
30
  call
30
31
  end
@@ -41,12 +42,17 @@ module RubyCritic
41
42
 
42
43
  def call
43
44
  Git
44
- .git("log --all --date=iso --follow --format='format:date:%x09%ad' --name-status .")
45
+ .git(git_log_command)
45
46
  .split("\n")
46
47
  .reject(&:empty?)
47
48
  .each { |line| process_line(line) }
48
49
  end
49
50
 
51
+ def git_log_command
52
+ after_clause = @churn_after ? "--after='#{@churn_after}' " : ''
53
+ "log --all --date=iso --follow --format='format:date:%x09%ad' --name-status #{after_clause}."
54
+ end
55
+
50
56
  def process_line(line)
51
57
  operation, *rest = line.split("\t")
52
58
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubyCritic
4
- VERSION = '4.5.2'.freeze
4
+ VERSION = '4.6.0'.freeze
5
5
  end
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: 4.5.2
4
+ version: 4.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guilherme Simoes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-04 00:00:00.000000000 Z
11
+ date: 2021-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: flay
@@ -121,6 +121,9 @@ dependencies:
121
121
  - - ">="
122
122
  - !ruby/object:Gem::Version
123
123
  version: 0.17.0
124
+ - - "<"
125
+ - !ruby/object:Gem::Version
126
+ version: '0.21'
124
127
  type: :runtime
125
128
  prerelease: false
126
129
  version_requirements: !ruby/object:Gem::Requirement
@@ -128,6 +131,9 @@ dependencies:
128
131
  - - ">="
129
132
  - !ruby/object:Gem::Version
130
133
  version: 0.17.0
134
+ - - "<"
135
+ - !ruby/object:Gem::Version
136
+ version: '0.21'
131
137
  - !ruby/object:Gem::Dependency
132
138
  name: tty-which
133
139
  requirement: !ruby/object:Gem::Requirement
@@ -174,82 +180,82 @@ dependencies:
174
180
  name: aruba
175
181
  requirement: !ruby/object:Gem::Requirement
176
182
  requirements:
177
- - - "~>"
178
- - !ruby/object:Gem::Version
179
- version: '0.12'
180
183
  - - ">="
181
184
  - !ruby/object:Gem::Version
182
185
  version: 0.12.0
186
+ - - "~>"
187
+ - !ruby/object:Gem::Version
188
+ version: '0.12'
183
189
  type: :development
184
190
  prerelease: false
185
191
  version_requirements: !ruby/object:Gem::Requirement
186
192
  requirements:
187
- - - "~>"
188
- - !ruby/object:Gem::Version
189
- version: '0.12'
190
193
  - - ">="
191
194
  - !ruby/object:Gem::Version
192
195
  version: 0.12.0
196
+ - - "~>"
197
+ - !ruby/object:Gem::Version
198
+ version: '0.12'
193
199
  - !ruby/object:Gem::Dependency
194
200
  name: bundler
195
201
  requirement: !ruby/object:Gem::Requirement
196
202
  requirements:
197
- - - "~>"
198
- - !ruby/object:Gem::Version
199
- version: '2.0'
200
203
  - - ">="
201
204
  - !ruby/object:Gem::Version
202
205
  version: 2.0.0
206
+ - - "~>"
207
+ - !ruby/object:Gem::Version
208
+ version: '2.0'
203
209
  type: :development
204
210
  prerelease: false
205
211
  version_requirements: !ruby/object:Gem::Requirement
206
212
  requirements:
207
- - - "~>"
208
- - !ruby/object:Gem::Version
209
- version: '2.0'
210
213
  - - ">="
211
214
  - !ruby/object:Gem::Version
212
215
  version: 2.0.0
216
+ - - "~>"
217
+ - !ruby/object:Gem::Version
218
+ version: '2.0'
213
219
  - !ruby/object:Gem::Dependency
214
220
  name: byebug
215
221
  requirement: !ruby/object:Gem::Requirement
216
222
  requirements:
217
- - - "~>"
218
- - !ruby/object:Gem::Version
219
- version: '11.0'
220
223
  - - ">="
221
224
  - !ruby/object:Gem::Version
222
225
  version: '10.0'
226
+ - - "~>"
227
+ - !ruby/object:Gem::Version
228
+ version: '11.0'
223
229
  type: :development
224
230
  prerelease: false
225
231
  version_requirements: !ruby/object:Gem::Requirement
226
232
  requirements:
227
- - - "~>"
228
- - !ruby/object:Gem::Version
229
- version: '11.0'
230
233
  - - ">="
231
234
  - !ruby/object:Gem::Version
232
235
  version: '10.0'
236
+ - - "~>"
237
+ - !ruby/object:Gem::Version
238
+ version: '11.0'
233
239
  - !ruby/object:Gem::Dependency
234
240
  name: cucumber
235
241
  requirement: !ruby/object:Gem::Requirement
236
242
  requirements:
237
- - - "~>"
238
- - !ruby/object:Gem::Version
239
- version: '3.0'
240
243
  - - ">="
241
244
  - !ruby/object:Gem::Version
242
245
  version: 2.2.0
246
+ - - "~>"
247
+ - !ruby/object:Gem::Version
248
+ version: '3.0'
243
249
  type: :development
244
250
  prerelease: false
245
251
  version_requirements: !ruby/object:Gem::Requirement
246
252
  requirements:
247
- - - "~>"
248
- - !ruby/object:Gem::Version
249
- version: '3.0'
250
253
  - - ">="
251
254
  - !ruby/object:Gem::Version
252
255
  version: 2.2.0
256
+ - - "~>"
257
+ - !ruby/object:Gem::Version
258
+ version: '3.0'
253
259
  - !ruby/object:Gem::Dependency
254
260
  name: diff-lcs
255
261
  requirement: !ruby/object:Gem::Requirement
@@ -268,22 +274,22 @@ dependencies:
268
274
  name: fakefs
269
275
  requirement: !ruby/object:Gem::Requirement
270
276
  requirements:
271
- - - "~>"
272
- - !ruby/object:Gem::Version
273
- version: '0.10'
274
277
  - - ">="
275
278
  - !ruby/object:Gem::Version
276
279
  version: 0.10.0
280
+ - - "~>"
281
+ - !ruby/object:Gem::Version
282
+ version: '0.10'
277
283
  type: :development
278
284
  prerelease: false
279
285
  version_requirements: !ruby/object:Gem::Requirement
280
286
  requirements:
281
- - - "~>"
282
- - !ruby/object:Gem::Version
283
- version: '0.10'
284
287
  - - ">="
285
288
  - !ruby/object:Gem::Version
286
289
  version: 0.10.0
290
+ - - "~>"
291
+ - !ruby/object:Gem::Version
292
+ version: '0.10'
287
293
  - !ruby/object:Gem::Dependency
288
294
  name: mdl
289
295
  requirement: !ruby/object:Gem::Requirement
@@ -302,82 +308,82 @@ dependencies:
302
308
  name: minitest
303
309
  requirement: !ruby/object:Gem::Requirement
304
310
  requirements:
305
- - - "~>"
306
- - !ruby/object:Gem::Version
307
- version: '5.3'
308
311
  - - ">="
309
312
  - !ruby/object:Gem::Version
310
313
  version: 5.3.0
314
+ - - "~>"
315
+ - !ruby/object:Gem::Version
316
+ version: '5.3'
311
317
  type: :development
312
318
  prerelease: false
313
319
  version_requirements: !ruby/object:Gem::Requirement
314
320
  requirements:
315
- - - "~>"
316
- - !ruby/object:Gem::Version
317
- version: '5.3'
318
321
  - - ">="
319
322
  - !ruby/object:Gem::Version
320
323
  version: 5.3.0
324
+ - - "~>"
325
+ - !ruby/object:Gem::Version
326
+ version: '5.3'
321
327
  - !ruby/object:Gem::Dependency
322
328
  name: minitest-around
323
329
  requirement: !ruby/object:Gem::Requirement
324
330
  requirements:
325
- - - "~>"
326
- - !ruby/object:Gem::Version
327
- version: 0.5.0
328
331
  - - ">="
329
332
  - !ruby/object:Gem::Version
330
333
  version: 0.4.0
334
+ - - "~>"
335
+ - !ruby/object:Gem::Version
336
+ version: 0.5.0
331
337
  type: :development
332
338
  prerelease: false
333
339
  version_requirements: !ruby/object:Gem::Requirement
334
340
  requirements:
335
- - - "~>"
336
- - !ruby/object:Gem::Version
337
- version: 0.5.0
338
341
  - - ">="
339
342
  - !ruby/object:Gem::Version
340
343
  version: 0.4.0
344
+ - - "~>"
345
+ - !ruby/object:Gem::Version
346
+ version: 0.5.0
341
347
  - !ruby/object:Gem::Dependency
342
348
  name: mocha
343
349
  requirement: !ruby/object:Gem::Requirement
344
350
  requirements:
345
- - - "~>"
346
- - !ruby/object:Gem::Version
347
- version: '1.1'
348
351
  - - ">="
349
352
  - !ruby/object:Gem::Version
350
353
  version: 1.1.0
354
+ - - "~>"
355
+ - !ruby/object:Gem::Version
356
+ version: '1.1'
351
357
  type: :development
352
358
  prerelease: false
353
359
  version_requirements: !ruby/object:Gem::Requirement
354
360
  requirements:
355
- - - "~>"
356
- - !ruby/object:Gem::Version
357
- version: '1.1'
358
361
  - - ">="
359
362
  - !ruby/object:Gem::Version
360
363
  version: 1.1.0
364
+ - - "~>"
365
+ - !ruby/object:Gem::Version
366
+ version: '1.1'
361
367
  - !ruby/object:Gem::Dependency
362
368
  name: rake
363
369
  requirement: !ruby/object:Gem::Requirement
364
370
  requirements:
365
- - - "~>"
366
- - !ruby/object:Gem::Version
367
- version: '12.0'
368
371
  - - ">="
369
372
  - !ruby/object:Gem::Version
370
373
  version: 11.0.0
374
+ - - "~>"
375
+ - !ruby/object:Gem::Version
376
+ version: '12.0'
371
377
  type: :development
372
378
  prerelease: false
373
379
  version_requirements: !ruby/object:Gem::Requirement
374
380
  requirements:
375
- - - "~>"
376
- - !ruby/object:Gem::Version
377
- version: '12.0'
378
381
  - - ">="
379
382
  - !ruby/object:Gem::Version
380
383
  version: 11.0.0
384
+ - - "~>"
385
+ - !ruby/object:Gem::Version
386
+ version: '12.0'
381
387
  - !ruby/object:Gem::Dependency
382
388
  name: rubocop
383
389
  requirement: !ruby/object:Gem::Requirement
@@ -448,35 +454,35 @@ files:
448
454
  - lib/rubycritic/core/rating.rb
449
455
  - lib/rubycritic/core/smell.rb
450
456
  - lib/rubycritic/generators/console_report.rb
451
- - lib/rubycritic/generators/html/assets/fonts/FontAwesome.otf
452
457
  - lib/rubycritic/generators/html/assets/fonts/Roboto-Medium.ttf
453
458
  - lib/rubycritic/generators/html/assets/fonts/Roboto-Regular.ttf
454
- - lib/rubycritic/generators/html/assets/fonts/fontawesome-webfont.eot
455
- - lib/rubycritic/generators/html/assets/fonts/fontawesome-webfont.svg
456
- - lib/rubycritic/generators/html/assets/fonts/fontawesome-webfont.ttf
457
- - lib/rubycritic/generators/html/assets/fonts/fontawesome-webfont.woff
458
- - lib/rubycritic/generators/html/assets/fonts/fontawesome-webfont.woff2
459
- - lib/rubycritic/generators/html/assets/fonts/glyphicons-halflings-regular.eot
460
- - lib/rubycritic/generators/html/assets/fonts/glyphicons-halflings-regular.svg
461
- - lib/rubycritic/generators/html/assets/fonts/glyphicons-halflings-regular.ttf
462
- - lib/rubycritic/generators/html/assets/fonts/glyphicons-halflings-regular.woff
463
- - lib/rubycritic/generators/html/assets/fonts/glyphicons-halflings-regular.woff2
464
459
  - lib/rubycritic/generators/html/assets/images/logo.png
465
460
  - lib/rubycritic/generators/html/assets/javascripts/application.js
466
- - lib/rubycritic/generators/html/assets/javascripts/bootstrap.min.js
467
- - lib/rubycritic/generators/html/assets/javascripts/highcharts.src-4.0.1.js
468
- - lib/rubycritic/generators/html/assets/javascripts/jquery.filtertable.min.js
469
- - lib/rubycritic/generators/html/assets/javascripts/jquery.min.js
470
- - lib/rubycritic/generators/html/assets/javascripts/jquery.scrollTo.min.js
471
- - lib/rubycritic/generators/html/assets/javascripts/jquery.tablesorter.js
472
- - lib/rubycritic/generators/html/assets/javascripts/jquery.tablesorter.min.js
473
- - lib/rubycritic/generators/html/assets/javascripts/jquery.timeago.js
474
- - lib/rubycritic/generators/html/assets/javascripts/prettify.js
475
461
  - lib/rubycritic/generators/html/assets/stylesheets/application.css
476
- - lib/rubycritic/generators/html/assets/stylesheets/bootstrap.min.css
477
- - lib/rubycritic/generators/html/assets/stylesheets/font-awesome.min.css
478
- - lib/rubycritic/generators/html/assets/stylesheets/prettify.css
479
- - lib/rubycritic/generators/html/assets/stylesheets/prettify.custom_theme.css
462
+ - lib/rubycritic/generators/html/assets/vendor/fonts/FontAwesome.otf
463
+ - lib/rubycritic/generators/html/assets/vendor/fonts/fontawesome-webfont.eot
464
+ - lib/rubycritic/generators/html/assets/vendor/fonts/fontawesome-webfont.svg
465
+ - lib/rubycritic/generators/html/assets/vendor/fonts/fontawesome-webfont.ttf
466
+ - lib/rubycritic/generators/html/assets/vendor/fonts/fontawesome-webfont.woff
467
+ - lib/rubycritic/generators/html/assets/vendor/fonts/fontawesome-webfont.woff2
468
+ - lib/rubycritic/generators/html/assets/vendor/fonts/glyphicons-halflings-regular.eot
469
+ - lib/rubycritic/generators/html/assets/vendor/fonts/glyphicons-halflings-regular.svg
470
+ - lib/rubycritic/generators/html/assets/vendor/fonts/glyphicons-halflings-regular.ttf
471
+ - lib/rubycritic/generators/html/assets/vendor/fonts/glyphicons-halflings-regular.woff
472
+ - lib/rubycritic/generators/html/assets/vendor/fonts/glyphicons-halflings-regular.woff2
473
+ - lib/rubycritic/generators/html/assets/vendor/javascripts/bootstrap.min.js
474
+ - lib/rubycritic/generators/html/assets/vendor/javascripts/highcharts.src-4.0.1.js
475
+ - lib/rubycritic/generators/html/assets/vendor/javascripts/jquery.filtertable.min.js
476
+ - lib/rubycritic/generators/html/assets/vendor/javascripts/jquery.min.js
477
+ - lib/rubycritic/generators/html/assets/vendor/javascripts/jquery.scrollTo.min.js
478
+ - lib/rubycritic/generators/html/assets/vendor/javascripts/jquery.tablesorter.js
479
+ - lib/rubycritic/generators/html/assets/vendor/javascripts/jquery.tablesorter.min.js
480
+ - lib/rubycritic/generators/html/assets/vendor/javascripts/jquery.timeago.js
481
+ - lib/rubycritic/generators/html/assets/vendor/javascripts/prettify.js
482
+ - lib/rubycritic/generators/html/assets/vendor/stylesheets/bootstrap.min.css
483
+ - lib/rubycritic/generators/html/assets/vendor/stylesheets/font-awesome.min.css
484
+ - lib/rubycritic/generators/html/assets/vendor/stylesheets/prettify.css
485
+ - lib/rubycritic/generators/html/assets/vendor/stylesheets/prettify.custom_theme.css
480
486
  - lib/rubycritic/generators/html/base.rb
481
487
  - lib/rubycritic/generators/html/code_file.rb
482
488
  - lib/rubycritic/generators/html/code_index.rb
@@ -534,7 +540,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
534
540
  - !ruby/object:Gem::Version
535
541
  version: '0'
536
542
  requirements: []
537
- rubygems_version: 3.1.3
543
+ rubygems_version: 3.0.3
538
544
  signing_key:
539
545
  specification_version: 4
540
546
  summary: RubyCritic is a Ruby code quality reporter