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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 2b4aa8167f394c7265f6325354ec3a8dfed64638
4
- data.tar.gz: 0a005655a766ab96486bb4d4166f5db39e74747c
2
+ SHA256:
3
+ metadata.gz: 693722766c01345820780cf89237dd09ccd37694804c93110d5319ddcbb6342d
4
+ data.tar.gz: 6ebbea44b57efecbe35ffacf3edf08251c6f9599cd0621996400b077aba759a5
5
5
  SHA512:
6
- metadata.gz: 0ca3134b3db7cc7a179e6b076bcdce01ae1b102151a47e9985cc66e4aaea0b343fb875e8e0ce636091b0bf7e005310a7402c29bc83dc1712a01a435ef0062729
7
- data.tar.gz: c6624630d6bdecf2b78c80ce427e9cb76fe4d50b1c28cce71750a9b8e1771f5c687e0a38fe812dd4c98cf5043db31e620ac40bded681cc0a44753525b3802157
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", "~> 1.13"
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
- ref ? "→ #{ref.full_name}" : "(#{constant.class.to_s})"
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
@@ -1,3 +1,3 @@
1
1
  module Constree
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
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.3
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: 2017-02-20 00:00:00.000000000 Z
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
- rubyforge_project:
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