yard 0.9.6 → 0.9.7
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.
Potentially problematic release.
This version of yard might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -1
- data/lib/yard/registry_resolver.rb +1 -0
- data/lib/yard/version.rb +1 -1
- data/spec/examples.txt +1772 -1771
- data/spec/registry_spec.rb +8 -0
- metadata +2 -2
data/spec/registry_spec.rb
CHANGED
@@ -278,6 +278,14 @@ RSpec.describe YARD::Registry do
|
|
278
278
|
expect(proxy.type).to eq :method
|
279
279
|
end
|
280
280
|
|
281
|
+
it "does not return proxy on original namespace if path is anchored to root" do
|
282
|
+
YARD.parse_string "module Foo; class Bar; def baz; end end end"
|
283
|
+
proxy = Registry.resolve(P('Foo::Bar#baz'), '::Bar', true, true)
|
284
|
+
expect(proxy.path).to eq('Bar')
|
285
|
+
expect(proxy.namespace).to equal(Registry.root)
|
286
|
+
expect(proxy.type).to eq(:proxy)
|
287
|
+
end
|
288
|
+
|
281
289
|
it "only checks 'Path' in lookup on root namespace" do
|
282
290
|
expect(Registry).to receive(:at).once.with('Test').and_return(true)
|
283
291
|
Registry.resolve(Registry.root, "Test")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yard
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Loren Segal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01-
|
11
|
+
date: 2017-01-09 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |2
|
14
14
|
YARD is a documentation generation tool for the Ruby programming language.
|