yard-components 0.0.0 → 0.0.1

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.0
1
+ 0.0.1
@@ -10,6 +10,11 @@ class MultiComponentSystem
10
10
  class SecondComponent
11
11
  end
12
12
 
13
+ # @component first
14
+ # @component second
15
+ class UseBothComponents
16
+ end
17
+
13
18
  # This description should not appear in the component docs
14
19
  class Integration
15
20
  # This method description should appear in "first" component docs
@@ -1,5 +1,5 @@
1
1
  <% n = 1 %>
2
2
  <% @items.each do |item| %>
3
- <li class="r<%= n %>"><%= linkify "component:#{item}" %></li>
3
+ <li class="r<%= n %>"><%= linkify "component:#{item}", item %></li>
4
4
  <% n = n == 2 ? 1 : 2 %>
5
5
  <% end %>
@@ -37,9 +37,9 @@ def components
37
37
  Registry.each do |code_object|
38
38
  code_object.tags.select{|t| t.tag_name == 'component'}.each do |tag|
39
39
  if [:class, :module].include?(code_object.type)
40
- @components[tag.tag_name][:classes_and_modules] << code_object
40
+ @components[tag.text][:classes_and_modules] << code_object
41
41
  else
42
- @components[tag.tag_name][:other] << code_object
42
+ @components[tag.text][:other] << code_object
43
43
  end
44
44
  end
45
45
  end
@@ -0,0 +1,85 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{yard-components}
8
+ s.version = "0.0.1"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Daniel Higginbotham"]
12
+ s.date = %q{2011-03-24}
13
+ s.description = %q{Allows use of the @component tag to pull related methods and classes into one file}
14
+ s.email = %q{daniel@flyingmachinestudios.com}
15
+ s.extra_rdoc_files = [
16
+ "LICENSE.txt",
17
+ "README.md"
18
+ ]
19
+ s.files = [
20
+ ".document",
21
+ ".rspec",
22
+ ".yardopts",
23
+ "Gemfile",
24
+ "Gemfile.lock",
25
+ "LICENSE.txt",
26
+ "README.md",
27
+ "Rakefile",
28
+ "VERSION",
29
+ "example/multi-component-system.rb",
30
+ "lib/yard-components.rb",
31
+ "spec/spec_helper.rb",
32
+ "spec/yard-components_spec.rb",
33
+ "templates/default/component/html/body.erb",
34
+ "templates/default/component/html/header.erb",
35
+ "templates/default/component/html/setup.rb",
36
+ "templates/default/fulldoc/html/full_list.erb",
37
+ "templates/default/fulldoc/html/full_list_components.erb",
38
+ "templates/default/fulldoc/html/js/app.js",
39
+ "templates/default/fulldoc/html/setup.rb",
40
+ "templates/default/layout/html/search.erb",
41
+ "templates/default/layout/html/setup.rb",
42
+ "yard-components.gemspec"
43
+ ]
44
+ s.homepage = %q{http://github.com/flyingmachine/yard-components}
45
+ s.licenses = ["MIT"]
46
+ s.require_paths = ["lib"]
47
+ s.rubygems_version = %q{1.3.7}
48
+ s.summary = %q{Add the concept of 'components' to YARD}
49
+ s.test_files = [
50
+ "spec/spec_helper.rb",
51
+ "spec/yard-components_spec.rb"
52
+ ]
53
+
54
+ if s.respond_to? :specification_version then
55
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
56
+ s.specification_version = 3
57
+
58
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
59
+ s.add_runtime_dependency(%q<yard>, [">= 0"])
60
+ s.add_runtime_dependency(%q<bluecloth>, [">= 0"])
61
+ s.add_development_dependency(%q<rspec>, ["~> 2.3.0"])
62
+ s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
63
+ s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
64
+ s.add_development_dependency(%q<rcov>, [">= 0"])
65
+ s.add_development_dependency(%q<ruby-debug>, [">= 0"])
66
+ else
67
+ s.add_dependency(%q<yard>, [">= 0"])
68
+ s.add_dependency(%q<bluecloth>, [">= 0"])
69
+ s.add_dependency(%q<rspec>, ["~> 2.3.0"])
70
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
71
+ s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
72
+ s.add_dependency(%q<rcov>, [">= 0"])
73
+ s.add_dependency(%q<ruby-debug>, [">= 0"])
74
+ end
75
+ else
76
+ s.add_dependency(%q<yard>, [">= 0"])
77
+ s.add_dependency(%q<bluecloth>, [">= 0"])
78
+ s.add_dependency(%q<rspec>, ["~> 2.3.0"])
79
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
80
+ s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
81
+ s.add_dependency(%q<rcov>, [">= 0"])
82
+ s.add_dependency(%q<ruby-debug>, [">= 0"])
83
+ end
84
+ end
85
+
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yard-components
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 0
10
- version: 0.0.0
9
+ - 1
10
+ version: 0.0.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Daniel Higginbotham
@@ -154,6 +154,7 @@ files:
154
154
  - templates/default/fulldoc/html/setup.rb
155
155
  - templates/default/layout/html/search.erb
156
156
  - templates/default/layout/html/setup.rb
157
+ - yard-components.gemspec
157
158
  has_rdoc: true
158
159
  homepage: http://github.com/flyingmachine/yard-components
159
160
  licenses: