wpdoc 0.2.21 → 0.2.22

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/Rakefile CHANGED
@@ -28,8 +28,8 @@ begin
28
28
  gem.email = "voloko@gmail.com"
29
29
  gem.homepage = "http://github.com/dxw/wpdoc"
30
30
  gem.authors = ["Volodya Kolesnikov"]
31
- # rdoc may also be required if it didn't come with Ruby for you
32
-
31
+ gem.add_dependency("rdoc", "= 2.4.3")
32
+
33
33
  if defined?(JRUBY_VERSION)
34
34
  gem.platform = Gem::Platform.new(['universal', 'java', nil])
35
35
  gem.add_dependency("json_pure", ">= 1.1.3")
@@ -1,5 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 2
4
- :patch: 21
5
- :build:
4
+ :patch: 22
@@ -8,15 +8,3 @@ end
8
8
 
9
9
  require "wpdoc/generator/shtml"
10
10
  require "wpdoc/c_parser_fix"
11
-
12
- unless defined? SDOC_FIXED_RDOC_OPTIONS
13
- SDOC_FIXED_RDOC_OPTIONS = 1
14
- class RDoc::Options
15
- alias_method :rdoc_initialize, :initialize
16
-
17
- def initialize
18
- rdoc_initialize
19
- @generator = RDoc::Generator::SHtml
20
- end
21
- end
22
- end
@@ -67,7 +67,7 @@ class RDoc::Generator::SHtml
67
67
  end
68
68
  @github_url_cache = {}
69
69
 
70
- template = @options.template || 'direct'
70
+ template = 'direct'
71
71
 
72
72
  templ_dir = self.class.template_dir template
73
73
 
@@ -209,9 +209,7 @@ class RDoc::Generator::SHtml
209
209
  }.flatten.sort{ |a, b| a.name == b.name ? a.parent.full_name <=> b.parent.full_name : a.name <=> b.name }.select { |method|
210
210
  method.document_self
211
211
  }
212
- unless @options.show_all
213
- list = list.find_all {|m| m.visibility == :public || m.visibility == :protected || m.force_documentation }
214
- end
212
+ list = list.find_all {|m| m.visibility == :public || m.visibility == :protected || m.force_documentation }
215
213
 
216
214
  list.each do |method|
217
215
  index[:searchIndex].push( search_string(method.name) + '()' )
@@ -278,6 +276,7 @@ class RDoc::Generator::SHtml
278
276
  ### Strip comments on a space after 100 chars
279
277
  def snippet(str)
280
278
  str ||= ''
279
+ str = str.to_s
281
280
  if str =~ /^(?>\s*)[^\#]/
282
281
  content = str
283
282
  else
@@ -26,9 +26,7 @@
26
26
 
27
27
  <%
28
28
  list = context.method_list
29
- unless @options.show_all
30
- list = list.find_all {|m| m.visibility == :public || m.visibility == :protected || m.force_documentation }
31
- end
29
+ list = list.find_all {|m| m.visibility == :public || m.visibility == :protected || m.force_documentation }
32
30
  %>
33
31
  <% unless list.empty? %>
34
32
  <div class="sectiontitle">Functions</div>
@@ -118,7 +116,7 @@
118
116
  next if visibilities.empty?
119
117
  visibilities.each do |visibility, methods|
120
118
  next if methods.empty?
121
- next unless @options.show_all || visibility == :public || visibility == :protected || methods.any? {|m| m.force_documentation }
119
+ next unless visibility == :public || visibility == :protected || methods.any? {|m| m.force_documentation }
122
120
  %>
123
121
  <div class="sectiontitle"><%= type.capitalize %> <%= visibility.to_s.capitalize %> functions</div>
124
122
  <% methods.each do |method| %>
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wpdoc
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
4
+ hash: 59
5
+ prerelease:
5
6
  segments:
6
7
  - 0
7
8
  - 2
8
- - 21
9
- version: 0.2.21
9
+ - 22
10
+ version: 0.2.22
10
11
  platform: ruby
11
12
  authors:
12
13
  - Volodya Kolesnikov
@@ -14,24 +15,40 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2011-03-25 00:00:00 -04:00
18
- default_executable:
18
+ date: 2012-03-05 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
- name: json
21
+ name: rdoc
22
22
  prerelease: false
23
23
  requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - "="
27
+ - !ruby/object:Gem::Version
28
+ hash: 25
29
+ segments:
30
+ - 2
31
+ - 4
32
+ - 3
33
+ version: 2.4.3
34
+ type: :runtime
35
+ version_requirements: *id001
36
+ - !ruby/object:Gem::Dependency
37
+ name: json
38
+ prerelease: false
39
+ requirement: &id002 !ruby/object:Gem::Requirement
24
40
  none: false
25
41
  requirements:
26
42
  - - ">="
27
43
  - !ruby/object:Gem::Version
44
+ hash: 21
28
45
  segments:
29
46
  - 1
30
47
  - 1
31
48
  - 3
32
49
  version: 1.1.3
33
50
  type: :runtime
34
- version_requirements: *id001
51
+ version_requirements: *id002
35
52
  description:
36
53
  email: voloko@gmail.com
37
54
  executables:
@@ -77,7 +94,6 @@ files:
77
94
  - lib/wpdoc/helpers.rb
78
95
  - lib/wpdoc/merge.rb
79
96
  - lib/wpdoc/templatable.rb
80
- has_rdoc: true
81
97
  homepage: http://github.com/dxw/wpdoc
82
98
  licenses: []
83
99
 
@@ -91,6 +107,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
91
107
  requirements:
92
108
  - - ">="
93
109
  - !ruby/object:Gem::Version
110
+ hash: 3
94
111
  segments:
95
112
  - 0
96
113
  version: "0"
@@ -99,13 +116,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
99
116
  requirements:
100
117
  - - ">="
101
118
  - !ruby/object:Gem::Version
119
+ hash: 3
102
120
  segments:
103
121
  - 0
104
122
  version: "0"
105
123
  requirements: []
106
124
 
107
125
  rubyforge_project:
108
- rubygems_version: 1.3.7
126
+ rubygems_version: 1.7.2
109
127
  signing_key:
110
128
  specification_version: 3
111
129
  summary: rdoc html with javascript search index.