yard-minitest-spec 0.1.5 → 0.1.6

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.
@@ -1,25 +1,28 @@
1
1
 
2
+ # This class handles define statements
2
3
  class YardMiniTestSpecDescribeHandler < YARD::Handlers::Ruby::Base
3
4
  handles method_call(:describe)
4
5
 
6
+ # process the define statement
5
7
  def process
6
8
  meth = statement.method_name(true).to_s
7
- mod = register ModuleObject.new(namespace, 'spec')
8
9
 
9
10
  name = statement.parameters.first.jump(:string_content).source
10
- (mod[:bob] ||= []).push name
11
- parse_block(statement.last.last, owner: mod)
12
- mod[:bob].pop
11
+ (namespace[:mtsdh] ||= []).push name
12
+ parse_block(statement.last.last, owner: namespace)
13
+ namespace[:mtsdh].pop
13
14
  nil
14
- rescue YARD::Handlers::NamespaceMissingError
15
+ rescue YARD::Handlers::Ruby::NamespaceMissingError
15
16
  end
16
17
  end
17
18
 
19
+ # This class handles it statements
18
20
  class YardMiniTestSpecItHandler < YARD::Handlers::Ruby::Base
19
21
  handles method_call(:it)
20
22
 
23
+ # process the it statement
21
24
  def process
22
- array = owner[:bob].dup
25
+ array = owner[:mtsdh].dup
23
26
 
24
27
  return nil unless array
25
28
  if array.size > 1
@@ -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.5'
10
+ s.version = '0.1.6'
11
11
 
12
12
  s.summary = "YARD plugin to list MiniTest::Spec specifications inside documentation"
13
13
  s.description = %q{
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.5
4
+ version: 0.1.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -67,4 +67,3 @@ signing_key:
67
67
  specification_version: 3
68
68
  summary: YARD plugin to list MiniTest::Spec specifications inside documentation
69
69
  test_files: []
70
- has_rdoc:
data.tar.gz.asc DELETED
@@ -1,7 +0,0 @@
1
- -----BEGIN PGP SIGNATURE-----
2
- Version: GnuPG v1.4.12 (GNU/Linux)
3
-
4
- iEYEABECAAYFAlHSMYgACgkQliSr/X1H0FzdWQCfY9kvTGJjALMHmjUiFRMPkZyG
5
- khkAnRXTtB1frp67DiCNAe9hWD2fKZAY
6
- =J7y7
7
- -----END PGP SIGNATURE-----
metadata.gz.asc DELETED
@@ -1,7 +0,0 @@
1
- -----BEGIN PGP SIGNATURE-----
2
- Version: GnuPG v1.4.12 (GNU/Linux)
3
-
4
- iEYEABECAAYFAlHSMZcACgkQliSr/X1H0Fx48gCgz2oEifGz+3/nAIE2ETDbrRXn
5
- 4y4AnRdYnpW1U3oF7CNSg6HY9UvLdUVd
6
- =jXEx
7
- -----END PGP SIGNATURE-----