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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 213b92143fa1ae05bd0c3ab2a94351fc6b1d990d82ff560dc4ac1f4d737a8201
4
- data.tar.gz: 8ce2ca6a8858adef25577702be473c50fcb56e7c5f5987cd934480bff5d2cfab
3
+ metadata.gz: 5997d0d9bed36c8023b64258e0aef13ffe5941ef3c7a5a79b289066e52585b56
4
+ data.tar.gz: eff45da134d5d2f0444ad558c6bdee75133b484efb305c757dce37e2b92635d3
5
5
  SHA512:
6
- metadata.gz: ede1bf2786104d0e6246d8becdc27ea0b57332fd93ce0db9ff258f63f6550cdf2ee44759852bb751fcf83e08dce759e6c1d4ed3c2836629826ace1eb95bbfc89
7
- data.tar.gz: ccc8d0a032339c59cd745f34e5ec9d3461d96f1fad35981034f6746ab31f05e7936320347fca67c1dde28f99913d2c4b5700a98c047b35cfa45ef8bb0c8bc5bb
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 00:36:01 UTC using RuboCop version 1.31.2.
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: 41
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: 16
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: 17
37
+ Max: 19
33
38
 
34
39
  # Offense count: 1
35
40
  Style/MultilineBlockChain:
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.3.4] - 2022-07-26
4
+
5
+ - Add version CLI command
6
+ - Bug fix excludes option in parents and children commands.
7
+
3
8
  ## [0.3.3] - 2022-07-26
4
9
 
5
10
  - Add special style to target_paths in mermaid output CLI.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- js_dependency (0.3.3.1)
4
+ js_dependency (0.3.4)
5
5
  pathname
6
6
  thor
7
7
  yaml
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
@@ -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].length.positive?
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].length.positive?
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JsDependency
4
- VERSION = "0.3.3.1"
4
+ VERSION = "0.3.4"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: js_dependency
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3.1
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - junara