js_dependency 0.3.3.1 → 0.3.4
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/.rubocop_todo.yml +9 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +1 -1
- data/README.md +9 -0
- data/lib/js_dependency/cli.rb +7 -2
- data/lib/js_dependency/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5997d0d9bed36c8023b64258e0aef13ffe5941ef3c7a5a79b289066e52585b56
|
|
4
|
+
data.tar.gz: eff45da134d5d2f0444ad558c6bdee75133b484efb305c757dce37e2b92635d3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f33a3de170b77efa529e03beaa39d90b98895e714cb53a06754301bee696aae3ffc4e609e218ac9d03df78ed0cef2fea521c046943459f1261791548b40a6da6
|
|
7
|
+
data.tar.gz: 294f67b0e4149cf112cf6766d36555d3a16c5f073c516b9919b8291209f603005bc81ace2d8879a6d352cc7470a4ede2f552ab07200634a358b64609f641ecd2
|
data/.rubocop_todo.yml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# This configuration was generated by
|
|
2
2
|
# `rubocop --auto-gen-config`
|
|
3
|
-
# on 2022-07-26
|
|
3
|
+
# on 2022-07-26 10:57:59 UTC using RuboCop version 1.31.2.
|
|
4
4
|
# The point is for the user to remove these configuration records
|
|
5
5
|
# one by one as the offenses are removed from the code base.
|
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
|
@@ -9,12 +9,17 @@
|
|
|
9
9
|
# Offense count: 7
|
|
10
10
|
# Configuration parameters: IgnoredMethods, CountRepeatedAttributes.
|
|
11
11
|
Metrics/AbcSize:
|
|
12
|
-
Max:
|
|
12
|
+
Max: 42
|
|
13
|
+
|
|
14
|
+
# Offense count: 1
|
|
15
|
+
# Configuration parameters: CountComments, CountAsOne.
|
|
16
|
+
Metrics/ClassLength:
|
|
17
|
+
Max: 101
|
|
13
18
|
|
|
14
19
|
# Offense count: 5
|
|
15
20
|
# Configuration parameters: IgnoredMethods.
|
|
16
21
|
Metrics/CyclomaticComplexity:
|
|
17
|
-
Max:
|
|
22
|
+
Max: 18
|
|
18
23
|
|
|
19
24
|
# Offense count: 9
|
|
20
25
|
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
|
|
@@ -29,7 +34,7 @@ Metrics/ParameterLists:
|
|
|
29
34
|
# Offense count: 5
|
|
30
35
|
# Configuration parameters: IgnoredMethods.
|
|
31
36
|
Metrics/PerceivedComplexity:
|
|
32
|
-
Max:
|
|
37
|
+
Max: 19
|
|
33
38
|
|
|
34
39
|
# Offense count: 1
|
|
35
40
|
Style/MultilineBlockChain:
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -19,6 +19,15 @@ If bundler is not being used to manage dependencies, install the gem by executin
|
|
|
19
19
|
## Usage
|
|
20
20
|
### By Command Line
|
|
21
21
|
|
|
22
|
+
#### Version
|
|
23
|
+
|
|
24
|
+
```shell
|
|
25
|
+
js_dependency version
|
|
26
|
+
# => "X.X.X"
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
#### yaml configuration file
|
|
30
|
+
|
|
22
31
|
Configuration file is `./.js_dependency.yml`. This file includes parameters for the analysis.
|
|
23
32
|
|
|
24
33
|
```yaml
|
data/lib/js_dependency/cli.rb
CHANGED
|
@@ -65,7 +65,7 @@ module JsDependency
|
|
|
65
65
|
parent_analyze_level = options[:parent_analyze_level] || args["parent_analyze_level"] || 1
|
|
66
66
|
output_path = options[:output_path] || args["output_path"] || nil
|
|
67
67
|
alias_paths = args["alias_paths"] || nil
|
|
68
|
-
excludes = if options[:excludes]
|
|
68
|
+
excludes = if options[:excludes]&.length&.positive?
|
|
69
69
|
options[:excludes]
|
|
70
70
|
elsif args["excludes"]
|
|
71
71
|
args["excludes"]
|
|
@@ -100,7 +100,7 @@ module JsDependency
|
|
|
100
100
|
child_analyze_level = options[:child_analyze_level] || args["child_analyze_level"] || 1
|
|
101
101
|
output_path = options[:output_path] || args["output_path"] || nil
|
|
102
102
|
alias_paths = args["alias_paths"] || nil
|
|
103
|
-
excludes = if options[:excludes]
|
|
103
|
+
excludes = if options[:excludes]&.length&.positive?
|
|
104
104
|
options[:excludes]
|
|
105
105
|
elsif args["excludes"]
|
|
106
106
|
args["excludes"]
|
|
@@ -117,5 +117,10 @@ module JsDependency
|
|
|
117
117
|
|
|
118
118
|
puts str
|
|
119
119
|
end
|
|
120
|
+
|
|
121
|
+
desc "version", "show version"
|
|
122
|
+
def version
|
|
123
|
+
puts JsDependency::VERSION
|
|
124
|
+
end
|
|
120
125
|
end
|
|
121
126
|
end
|