constree 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/constree.gemspec +1 -1
- data/lib/constree/node.rb +3 -1
- data/lib/constree/version.rb +1 -1
- metadata +5 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 693722766c01345820780cf89237dd09ccd37694804c93110d5319ddcbb6342d
|
4
|
+
data.tar.gz: 6ebbea44b57efecbe35ffacf3edf08251c6f9599cd0621996400b077aba759a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bbc9b456a79675d4a73de1e275dc3c835a6d3407947048065f6bc8e83ed6dacdb67b8c1f85813df76364c1d6de3542c577f5d28a9848f864754db1d98de206e5
|
7
|
+
data.tar.gz: 5d3e360dde618693120f04518fb259f7e53fadac5e437427f993dd616262d1b14d63124da665ad01e37066160e7adcf0154248f275e12b72cd2b2c455b3cc3a0
|
data/constree.gemspec
CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
21
21
|
spec.require_paths = ["lib"]
|
22
22
|
|
23
|
-
spec.add_development_dependency "bundler", "
|
23
|
+
spec.add_development_dependency "bundler", "> 1.13"
|
24
24
|
spec.add_development_dependency "rake", "~> 10.0"
|
25
25
|
spec.add_development_dependency "minitest", "~> 5.0"
|
26
26
|
|
data/lib/constree/node.rb
CHANGED
@@ -40,7 +40,9 @@ module Constree
|
|
40
40
|
end
|
41
41
|
|
42
42
|
def type
|
43
|
-
|
43
|
+
return "→ #{ref.full_name}" if ref
|
44
|
+
return "(#{constant.class.to_s})" unless Class === constant
|
45
|
+
"< " + constant.ancestors[1..].map(&:to_s).join(" < ")
|
44
46
|
end
|
45
47
|
|
46
48
|
def not_yet? seen
|
data/lib/constree/version.rb
CHANGED
metadata
CHANGED
@@ -1,27 +1,27 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: constree
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ken
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.13'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.13'
|
27
27
|
- !ruby/object:Gem::Dependency
|
@@ -106,8 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
106
106
|
- !ruby/object:Gem::Version
|
107
107
|
version: '0'
|
108
108
|
requirements: []
|
109
|
-
|
110
|
-
rubygems_version: 2.4.8
|
109
|
+
rubygems_version: 3.2.3
|
111
110
|
signing_key:
|
112
111
|
specification_version: 4
|
113
112
|
summary: recursively show the structure of constants in a module
|