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 ADDED
@@ -0,0 +1,7 @@
1
+ 2013-07-01 G. Allen Morris III <gam3@gam3.net>
2
+
3
+ * Use namespace when looking for :describe
4
+ * Add logging for undefined methods
5
+ * Added ChangeLog file
6
+ * Signed gem file with pgp key
7
+
@@ -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
@@ -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.4'
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 = Dir['ChangeLog']
27
- s.files = Dir['lib/*/*.rb'] + Dir['lib/*.rb']
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
@@ -0,0 +1,7 @@
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 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
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
metadata.gz.asc ADDED
@@ -0,0 +1,7 @@
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-----