yard-minitest-spec 0.1.4 → 0.1.5
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.
- data/ChangeLog +7 -0
- data/lib/yard-minitest-spec/handler.rb +3 -0
- data/yard-minitest-spec.gemspec +3 -3
- data.tar.gz.asc +7 -0
- metadata +2 -1
- metadata.gz.asc +7 -0
data/ChangeLog
ADDED
@@ -10,6 +10,7 @@ class YardMiniTestSpecDescribeHandler < YARD::Handlers::Ruby::Base
|
|
10
10
|
(mod[:bob] ||= []).push name
|
11
11
|
parse_block(statement.last.last, owner: mod)
|
12
12
|
mod[:bob].pop
|
13
|
+
nil
|
13
14
|
rescue YARD::Handlers::NamespaceMissingError
|
14
15
|
end
|
15
16
|
end
|
@@ -20,6 +21,7 @@ class YardMiniTestSpecItHandler < YARD::Handlers::Ruby::Base
|
|
20
21
|
def process
|
21
22
|
array = owner[:bob].dup
|
22
23
|
|
24
|
+
return nil unless array
|
23
25
|
if array.size > 1
|
24
26
|
last = array.pop
|
25
27
|
start = array.join('::')
|
@@ -54,5 +56,6 @@ class YardMiniTestSpecItHandler < YARD::Handlers::Ruby::Base
|
|
54
56
|
log.warn text unless namespace[:duplicate] and namespace[:duplicate][name]
|
55
57
|
( namespace[:duplicate] ||= {} )[name] = true
|
56
58
|
end
|
59
|
+
nil
|
57
60
|
end
|
58
61
|
end
|
data/yard-minitest-spec.gemspec
CHANGED
@@ -7,7 +7,7 @@ require 'yard-minitest-spec'
|
|
7
7
|
|
8
8
|
Gem::Specification.new do |s|
|
9
9
|
s.name = "yard-minitest-spec"
|
10
|
-
s.version = '0.1.
|
10
|
+
s.version = '0.1.5'
|
11
11
|
|
12
12
|
s.summary = "YARD plugin to list MiniTest::Spec specifications inside documentation"
|
13
13
|
s.description = %q{
|
@@ -23,8 +23,8 @@ Gem::Specification.new do |s|
|
|
23
23
|
s.require_paths = ["lib"]
|
24
24
|
s.rubyforge_project = "yard-minitest-spec"
|
25
25
|
s.rubygems_version = "1.8.11"
|
26
|
-
s.files =
|
27
|
-
s.files
|
26
|
+
s.files = 'ChangeLog'
|
27
|
+
s.files += Dir['lib/*/*.rb'] + Dir['lib/*.rb']
|
28
28
|
s.files += Dir['*.gemspec']
|
29
29
|
s.files += Dir['examples/*']
|
30
30
|
s.files += Find.find('templates').select{ |f| f if FileTest.file?(f) }
|
data.tar.gz.asc
ADDED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yard-minitest-spec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -34,6 +34,7 @@ executables: []
|
|
34
34
|
extensions: []
|
35
35
|
extra_rdoc_files: []
|
36
36
|
files:
|
37
|
+
- ChangeLog
|
37
38
|
- lib/yard-minitest-spec/handler.rb
|
38
39
|
- lib/yard-minitest-spec.rb
|
39
40
|
- yard-minitest-spec.gemspec
|