feature_map 1.2.8 → 1.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/feature_map/private/assignment_mappers/directory_assignment.rb +4 -4
- data/lib/feature_map/private/cyclomatic_complexity_calculator.rb +4 -2
- data/lib/feature_map/private/docs/index.html +96 -87
- data/lib/feature_map/private/feature_metrics_calculator.rb +4 -1
- data/lib/feature_map/private/lines_of_code_calculator.rb +0 -2
- data/lib/feature_map.rb +0 -1
- metadata +17 -6
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
# @feature Metrics Calculation
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
|
-
require 'rubocop'
|
|
5
4
|
module FeatureMap
|
|
6
5
|
module Private
|
|
7
6
|
class FeatureMetricsCalculator
|
|
@@ -47,6 +46,10 @@ module FeatureMap
|
|
|
47
46
|
|
|
48
47
|
return metrics unless file_path.end_with?('.rb')
|
|
49
48
|
|
|
49
|
+
# Lazy load the rubocop gem only when we need to process AST nodes to avoid introducing unnecessary
|
|
50
|
+
# dependencies for use cases that do not exercise this functionality.
|
|
51
|
+
require 'rubocop'
|
|
52
|
+
|
|
50
53
|
file_content = File.read(file_path)
|
|
51
54
|
source = RuboCop::ProcessedSource.new(file_content, RUBY_VERSION.to_f)
|
|
52
55
|
return metrics unless source.ast
|
data/lib/feature_map.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: feature_map
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Beyond Finance
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: code_ownership
|
|
@@ -52,6 +51,20 @@ dependencies:
|
|
|
52
51
|
- - "~>"
|
|
53
52
|
- !ruby/object:Gem::Version
|
|
54
53
|
version: '0.0'
|
|
54
|
+
- !ruby/object:Gem::Dependency
|
|
55
|
+
name: parser
|
|
56
|
+
requirement: !ruby/object:Gem::Requirement
|
|
57
|
+
requirements:
|
|
58
|
+
- - "~>"
|
|
59
|
+
- !ruby/object:Gem::Version
|
|
60
|
+
version: '3.3'
|
|
61
|
+
type: :runtime
|
|
62
|
+
prerelease: false
|
|
63
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
64
|
+
requirements:
|
|
65
|
+
- - "~>"
|
|
66
|
+
- !ruby/object:Gem::Version
|
|
67
|
+
version: '3.3'
|
|
55
68
|
- !ruby/object:Gem::Dependency
|
|
56
69
|
name: rubocop
|
|
57
70
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -247,7 +260,6 @@ metadata:
|
|
|
247
260
|
source_code_uri: https://github.com/Beyond-Finance/feature_map
|
|
248
261
|
changelog_uri: https://github.com/Beyond-Finance/feature_map/releases
|
|
249
262
|
allowed_push_host: https://rubygems.org
|
|
250
|
-
post_install_message:
|
|
251
263
|
rdoc_options: []
|
|
252
264
|
require_paths:
|
|
253
265
|
- lib
|
|
@@ -262,8 +274,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
262
274
|
- !ruby/object:Gem::Version
|
|
263
275
|
version: '0'
|
|
264
276
|
requirements: []
|
|
265
|
-
rubygems_version: 3.
|
|
266
|
-
signing_key:
|
|
277
|
+
rubygems_version: 3.6.9
|
|
267
278
|
specification_version: 4
|
|
268
279
|
summary: A gem to help identify and manage features within large Ruby and Rails applications
|
|
269
280
|
test_files: []
|