yard-mruby 0.2.3 → 0.3.0

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
2
  SHA1:
3
- metadata.gz: 190f5ff1d85a7da50b2cf177931e3cabb4def6c8
4
- data.tar.gz: 51db17c11ee8a3cd9f09e97f8f6681e070c61fdd
3
+ metadata.gz: f2e87468dc719ddf2a367d82684a5f4dab4a69f7
4
+ data.tar.gz: 25cc1f4efbd48e198b1b87b92a49253faf1ec8e8
5
5
  SHA512:
6
- metadata.gz: b458bfb91fde2f55187fc990206c9006dc743452d47da17db0ff4127ffcca29b3519d0a5fe7d169d14ddec8c155a6a9e0224bde9a0c64bd7a2ded62f6a6775e8
7
- data.tar.gz: 3dd0739fc2a4ad829ebb55fdc19ede5db7f9321f8bd37083cc5ebf6b5833422ed7edcdfb6285c1da6f04a9789f3ba8d446d8bb387863e6aa1965731da11cc595
6
+ metadata.gz: 4e1c24788009a967f7573404de7c76ac67d5e9ea1135d0b93142bddb6a69c259c3aa4d35af21b24b0cfa92f15f407cb1fe462d5b8411bb06f5123361555b3595
7
+ data.tar.gz: '05814977c379e0eb16a0cb126161f3d99e959a622dfc7e159ec13345412403ffaee9af7a83755e3d9f1d369f1aefa8bdfe372a8720ea2e4c5551de1db61ca91d'
@@ -4,11 +4,11 @@ module YARD::MRuby::CodeObjects
4
4
  # It groups C Functions and define macros.
5
5
  class HeaderObject < YARD::CodeObjects::NamespaceObject
6
6
  def functions
7
- children.find_all {|d| d.is_a?(FunctionObject) }
7
+ children.find_all {|d| d.is_a?(FunctionObject) }
8
8
  end
9
9
 
10
10
  def defines
11
- children.find_all {|d| d.is_a?(DefineObject) }
11
+ children.find_all {|d| d.is_a?(DefineObject) }
12
12
  end
13
13
 
14
14
  def typedefs
@@ -16,7 +16,7 @@ module YARD::MRuby::CodeObjects
16
16
  end
17
17
 
18
18
  def path
19
- self.name
19
+ self.name.to_s
20
20
  end
21
21
 
22
22
  def title
@@ -1,5 +1,5 @@
1
1
  module YARD
2
2
  module MRuby
3
- VERSION = "0.2.3"
3
+ VERSION = "0.3.0"
4
4
  end
5
5
  end
@@ -51,12 +51,12 @@ end
51
51
  # This method removes the namespace from the root node, generates the class list,
52
52
  # and then adds it back into the root node.
53
53
  #
54
- def class_list(root = Registry.root)
54
+ def class_list(root = Registry.root, tree = TreeContext.new)
55
55
  return super unless root == Registry.root
56
56
 
57
57
  include_namespace = YARD::MRuby::CodeObjects::HEADERS_ROOT
58
58
  root.instance_eval { children.delete include_namespace }
59
- out = super(root)
59
+ out = super(root, tree)
60
60
  root.instance_eval { children.push include_namespace }
61
61
  out
62
62
  end
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
19
19
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
20
  spec.require_paths = ["lib"]
21
21
 
22
- spec.add_dependency "yard", "< 0.9.0"
22
+ spec.add_dependency "yard", "~> 0.9.0"
23
23
 
24
24
  spec.add_development_dependency "bundler", "~> 1.10"
25
25
  spec.add_development_dependency "rake", "~> 10.0"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yard-mruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seba Gamboa
@@ -14,14 +14,14 @@ dependencies:
14
14
  name: yard
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "<"
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: 0.9.0
20
20
  type: :runtime
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: 0.9.0
27
27
  - !ruby/object:Gem::Dependency
@@ -188,4 +188,3 @@ signing_key:
188
188
  specification_version: 4
189
189
  summary: Generate Yard documentation for MRuby projects.
190
190
  test_files: []
191
- has_rdoc: