depdump 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -2
- data/depdump.gemspec +1 -1
- data/lib/depdump.rb +1 -0
- data/lib/depdump/registry/tree.rb +1 -2
- data/lib/depdump/version.rb +1 -1
- metadata +12 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0fbba294fa454bdfb09bad8c0312a80a12a80f0a82b50b341d3f01578c5b343a
|
4
|
+
data.tar.gz: a8b0bd4d13e15aa4761b6992229659de22453c2137138c6ff37d7967cdc3b338
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e5d7c9e36006378a9e1c99b367f7de479222f690654fe93b574b964b5d6ac1b05bd630f5f6f82577fe9e12d2dff465623a91e47885a2e3b282a75243d2f2b12
|
7
|
+
data.tar.gz: 60e6d47ee17e72a47df6735c6c48c3b33ebfb397719a43ade3526567400922826e5465cf19b3aaa7f2e1facf51e8f6c14c2ff0be4022c42620539a3c105c3f9e
|
data/README.md
CHANGED
@@ -32,7 +32,7 @@ Quick start:
|
|
32
32
|
|
33
33
|
Or, specify files and directories.
|
34
34
|
|
35
|
-
$ depdump lib/
|
35
|
+
$ depdump lib/great_module.rb app
|
36
36
|
|
37
37
|
Then, the dependency graph appeared as a JSON string in stdout.
|
38
38
|
|
@@ -49,7 +49,9 @@ Then, the dependency graph appeared as a JSON string in stdout.
|
|
49
49
|
]
|
50
50
|
}
|
51
51
|
|
52
|
-
And some execution warnings are written in `depdump-error.log`.
|
52
|
+
And some execution warnings and errors are written in `depdump-error.log`.
|
53
|
+
|
54
|
+
Additionaly, option `-o [output file]` and `-f [format json/table]` are available.
|
53
55
|
|
54
56
|
## Development
|
55
57
|
|
data/depdump.gemspec
CHANGED
@@ -28,6 +28,6 @@ Gem::Specification.new do |spec|
|
|
28
28
|
|
29
29
|
spec.add_runtime_dependency "parser", "~> 2.6"
|
30
30
|
|
31
|
-
spec.add_development_dependency "bundler", "
|
31
|
+
spec.add_development_dependency "bundler", '>= 1.17.0', ">= 2.0.0"
|
32
32
|
spec.add_development_dependency "rake"
|
33
33
|
end
|
data/lib/depdump.rb
CHANGED
@@ -25,12 +25,11 @@ module Depdump
|
|
25
25
|
|
26
26
|
def resolve(partial_namespaces, entry_node)
|
27
27
|
current_node = entry_node
|
28
|
-
prev_node = nil
|
29
28
|
resolved_node = nil
|
30
29
|
|
31
30
|
while current_node && resolved_node.nil?
|
32
31
|
resolved_node = current_node.dig(partial_namespaces)
|
33
|
-
|
32
|
+
current_node = current_node&.parent
|
34
33
|
end
|
35
34
|
|
36
35
|
resolved_node
|
data/lib/depdump/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: depdump
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- upinetree
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-11-
|
11
|
+
date: 2019-11-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parser
|
@@ -28,16 +28,22 @@ dependencies:
|
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 1.17.0
|
34
|
+
- - ">="
|
32
35
|
- !ruby/object:Gem::Version
|
33
|
-
version: 2.
|
36
|
+
version: 2.0.0
|
34
37
|
type: :development
|
35
38
|
prerelease: false
|
36
39
|
version_requirements: !ruby/object:Gem::Requirement
|
37
40
|
requirements:
|
38
|
-
- - "
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: 1.17.0
|
44
|
+
- - ">="
|
39
45
|
- !ruby/object:Gem::Version
|
40
|
-
version: 2.
|
46
|
+
version: 2.0.0
|
41
47
|
- !ruby/object:Gem::Dependency
|
42
48
|
name: rake
|
43
49
|
requirement: !ruby/object:Gem::Requirement
|