jsduck 4.10.3 → 4.10.4

Sign up to get free protection for your applications and to get access to all the features.
data/jsduck.gemspec CHANGED
@@ -2,7 +2,7 @@ Gem::Specification.new do |s|
2
2
  s.required_rubygems_version = ">= 1.3.5"
3
3
 
4
4
  s.name = 'jsduck'
5
- s.version = '4.10.3'
5
+ s.version = '4.10.4'
6
6
  s.date = Time.new.strftime('%Y-%m-%d')
7
7
  s.summary = "Simple JavaScript Duckumentation generator"
8
8
  s.description = "Documentation generator for Sencha JS frameworks"
@@ -156,7 +156,9 @@ module JsDuck
156
156
  # Creates classes for orphans that have :owner property defined,
157
157
  # and then inserts orphans to these classes.
158
158
  def classify_orphans
159
- @orphans.each do |orph|
159
+ # Clone the orphans array first to avoid problems with
160
+ # #inster_orphan method deleting items from @orphans array.
161
+ @orphans.clone.each do |orph|
160
162
  if orph[:owner]
161
163
  class_name = orph[:owner]
162
164
  if !@classes[class_name]
@@ -67,7 +67,7 @@ module JsDuck
67
67
  # normal Markdown, which often causes nested <pre>-blocks.
68
68
  #
69
69
  # To prevent this, we always add extra newline before <pre>.
70
- input.gsub!(/([^\n])<pre>/, "\\1\n<pre>")
70
+ input.gsub!(/([^\n])<pre>((<code>)?$)/, "\\1\n<pre>\\2")
71
71
 
72
72
  # But we remove trailing newline after <pre> to prevent
73
73
  # code-blocks beginning with empty line.
@@ -94,7 +94,7 @@ module JsDuck
94
94
  @ext4_events = nil
95
95
  @meta_tag_paths = []
96
96
 
97
- @version = "4.10.3"
97
+ @version = "4.10.4"
98
98
 
99
99
  # Customizing output
100
100
  @title = "Documentation - JSDuck"
@@ -24,9 +24,9 @@ module JsDuck
24
24
  end
25
25
  end
26
26
 
27
- # add all local members, but skip constructors
27
+ # add all local members, but skip hidden members and constructors
28
28
  cls[:members].each do |m|
29
- list << member_node(m, cls) unless m[:name] == ClassName.short(cls[:name])
29
+ list << member_node(m, cls) unless m[:meta][:hide] || constructor?(m)
30
30
  end
31
31
  end
32
32
 
@@ -42,6 +42,10 @@ module JsDuck
42
42
 
43
43
  private
44
44
 
45
+ def constructor?(m)
46
+ m[:tagname] == :method && m[:name] == "constructor"
47
+ end
48
+
45
49
  def alias_node(key, name, cls)
46
50
  return {
47
51
  :name => name,
metadata CHANGED
@@ -1,168 +1,160 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: jsduck
3
- version: !ruby/object:Gem::Version
4
- version: 4.10.3
3
+ version: !ruby/object:Gem::Version
4
+ hash: 31
5
5
  prerelease:
6
+ segments:
7
+ - 4
8
+ - 10
9
+ - 4
10
+ version: 4.10.4
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Rene Saarsoo
9
14
  - Nick Poulden
10
15
  autorequire:
11
16
  bindir: bin
12
17
  cert_chain: []
13
- date: 2013-05-24 00:00:00.000000000 Z
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
18
+
19
+ date: 2013-06-04 00:00:00 Z
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
16
22
  name: rdiscount
17
- requirement: !ruby/object:Gem::Requirement
18
- none: false
19
- requirements:
20
- - - ! '>='
21
- - !ruby/object:Gem::Version
22
- version: '0'
23
- type: :runtime
24
23
  prerelease: false
25
- version_requirements: !ruby/object:Gem::Requirement
26
- none: false
27
- requirements:
28
- - - ! '>='
29
- - !ruby/object:Gem::Version
30
- version: '0'
31
- - !ruby/object:Gem::Dependency
32
- name: json
33
- requirement: !ruby/object:Gem::Requirement
24
+ requirement: &id001 !ruby/object:Gem::Requirement
34
25
  none: false
35
- requirements:
36
- - - ! '>='
37
- - !ruby/object:Gem::Version
38
- version: '0'
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ hash: 3
30
+ segments:
31
+ - 0
32
+ version: "0"
39
33
  type: :runtime
34
+ version_requirements: *id001
35
+ - !ruby/object:Gem::Dependency
36
+ name: json
40
37
  prerelease: false
41
- version_requirements: !ruby/object:Gem::Requirement
42
- none: false
43
- requirements:
44
- - - ! '>='
45
- - !ruby/object:Gem::Version
46
- version: '0'
47
- - !ruby/object:Gem::Dependency
48
- name: parallel
49
- requirement: !ruby/object:Gem::Requirement
38
+ requirement: &id002 !ruby/object:Gem::Requirement
50
39
  none: false
51
- requirements:
52
- - - ! '>='
53
- - !ruby/object:Gem::Version
54
- version: '0'
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ hash: 3
44
+ segments:
45
+ - 0
46
+ version: "0"
55
47
  type: :runtime
48
+ version_requirements: *id002
49
+ - !ruby/object:Gem::Dependency
50
+ name: parallel
56
51
  prerelease: false
57
- version_requirements: !ruby/object:Gem::Requirement
58
- none: false
59
- requirements:
60
- - - ! '>='
61
- - !ruby/object:Gem::Version
62
- version: '0'
63
- - !ruby/object:Gem::Dependency
64
- name: execjs
65
- requirement: !ruby/object:Gem::Requirement
52
+ requirement: &id003 !ruby/object:Gem::Requirement
66
53
  none: false
67
- requirements:
68
- - - ! '>='
69
- - !ruby/object:Gem::Version
70
- version: '0'
54
+ requirements:
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ hash: 3
58
+ segments:
59
+ - 0
60
+ version: "0"
71
61
  type: :runtime
62
+ version_requirements: *id003
63
+ - !ruby/object:Gem::Dependency
64
+ name: execjs
72
65
  prerelease: false
73
- version_requirements: !ruby/object:Gem::Requirement
66
+ requirement: &id004 !ruby/object:Gem::Requirement
74
67
  none: false
75
- requirements:
76
- - - ! '>='
77
- - !ruby/object:Gem::Version
78
- version: '0'
79
- - !ruby/object:Gem::Dependency
80
- name: therubyracer
81
- requirement: !ruby/object:Gem::Requirement
82
- none: false
83
- requirements:
84
- - - ! '>='
85
- - !ruby/object:Gem::Version
86
- version: 0.10.0
68
+ requirements:
69
+ - - ">="
70
+ - !ruby/object:Gem::Version
71
+ hash: 3
72
+ segments:
73
+ - 0
74
+ version: "0"
87
75
  type: :runtime
76
+ version_requirements: *id004
77
+ - !ruby/object:Gem::Dependency
78
+ name: therubyracer
88
79
  prerelease: false
89
- version_requirements: !ruby/object:Gem::Requirement
80
+ requirement: &id005 !ruby/object:Gem::Requirement
90
81
  none: false
91
- requirements:
92
- - - ! '>='
93
- - !ruby/object:Gem::Version
82
+ requirements:
83
+ - - ">="
84
+ - !ruby/object:Gem::Version
85
+ hash: 55
86
+ segments:
87
+ - 0
88
+ - 10
89
+ - 0
94
90
  version: 0.10.0
95
- - !ruby/object:Gem::Dependency
96
- name: dimensions
97
- requirement: !ruby/object:Gem::Requirement
98
- none: false
99
- requirements:
100
- - - ! '>='
101
- - !ruby/object:Gem::Version
102
- version: '0'
103
91
  type: :runtime
92
+ version_requirements: *id005
93
+ - !ruby/object:Gem::Dependency
94
+ name: dimensions
104
95
  prerelease: false
105
- version_requirements: !ruby/object:Gem::Requirement
96
+ requirement: &id006 !ruby/object:Gem::Requirement
106
97
  none: false
107
- requirements:
108
- - - ! '>='
109
- - !ruby/object:Gem::Version
110
- version: '0'
111
- - !ruby/object:Gem::Dependency
98
+ requirements:
99
+ - - ">="
100
+ - !ruby/object:Gem::Version
101
+ hash: 3
102
+ segments:
103
+ - 0
104
+ version: "0"
105
+ type: :runtime
106
+ version_requirements: *id006
107
+ - !ruby/object:Gem::Dependency
112
108
  name: rspec
113
- requirement: !ruby/object:Gem::Requirement
114
- none: false
115
- requirements:
116
- - - ! '>='
117
- - !ruby/object:Gem::Version
118
- version: '0'
119
- type: :development
120
109
  prerelease: false
121
- version_requirements: !ruby/object:Gem::Requirement
110
+ requirement: &id007 !ruby/object:Gem::Requirement
122
111
  none: false
123
- requirements:
124
- - - ! '>='
125
- - !ruby/object:Gem::Version
126
- version: '0'
127
- - !ruby/object:Gem::Dependency
128
- name: rake
129
- requirement: !ruby/object:Gem::Requirement
130
- none: false
131
- requirements:
132
- - - ! '>='
133
- - !ruby/object:Gem::Version
134
- version: '0'
112
+ requirements:
113
+ - - ">="
114
+ - !ruby/object:Gem::Version
115
+ hash: 3
116
+ segments:
117
+ - 0
118
+ version: "0"
135
119
  type: :development
120
+ version_requirements: *id007
121
+ - !ruby/object:Gem::Dependency
122
+ name: rake
136
123
  prerelease: false
137
- version_requirements: !ruby/object:Gem::Requirement
124
+ requirement: &id008 !ruby/object:Gem::Requirement
138
125
  none: false
139
- requirements:
140
- - - ! '>='
141
- - !ruby/object:Gem::Version
142
- version: '0'
143
- - !ruby/object:Gem::Dependency
144
- name: compass
145
- requirement: !ruby/object:Gem::Requirement
146
- none: false
147
- requirements:
148
- - - ! '>='
149
- - !ruby/object:Gem::Version
150
- version: '0'
126
+ requirements:
127
+ - - ">="
128
+ - !ruby/object:Gem::Version
129
+ hash: 3
130
+ segments:
131
+ - 0
132
+ version: "0"
151
133
  type: :development
134
+ version_requirements: *id008
135
+ - !ruby/object:Gem::Dependency
136
+ name: compass
152
137
  prerelease: false
153
- version_requirements: !ruby/object:Gem::Requirement
138
+ requirement: &id009 !ruby/object:Gem::Requirement
154
139
  none: false
155
- requirements:
156
- - - ! '>='
157
- - !ruby/object:Gem::Version
158
- version: '0'
140
+ requirements:
141
+ - - ">="
142
+ - !ruby/object:Gem::Version
143
+ hash: 3
144
+ segments:
145
+ - 0
146
+ version: "0"
147
+ type: :development
148
+ version_requirements: *id009
159
149
  description: Documentation generator for Sencha JS frameworks
160
150
  email: rene.saarsoo@sencha.com
161
- executables:
151
+ executables:
162
152
  - jsduck
163
153
  extensions: []
154
+
164
155
  extra_rdoc_files: []
165
- files:
156
+
157
+ files:
166
158
  - .gitignore
167
159
  - .travis.yml
168
160
  - COPYING
@@ -670,9 +662,9 @@ files:
670
662
  - template-min/index-template.html
671
663
  - template-min/README.md
672
664
  - template-min/eg-iframe.html
673
- - template-min/app-332b7369400bec160c54b69bc46a0a8c.js
674
665
  - template-min/index.php
675
- - template-min/resources/css/app-c8e1f59f40e720cb5379f7041379119a.css
666
+ - template-min/app-2a09dc1c9acadab58e390b770a9565d0.js
667
+ - template-min/resources/css/app-0b2d94a756da271cc9ed4a65f4837560.css
676
668
  - template-min/resources/images/link-green-standard.png
677
669
  - template-min/resources/images/class-m.png
678
670
  - template-min/resources/images/singleton-m.png
@@ -727,26 +719,38 @@ files:
727
719
  - template-min/mobile-redirect.js
728
720
  homepage: https://github.com/senchalabs/jsduck
729
721
  licenses: []
722
+
730
723
  post_install_message:
731
724
  rdoc_options: []
732
- require_paths:
725
+
726
+ require_paths:
733
727
  - lib
734
- required_ruby_version: !ruby/object:Gem::Requirement
728
+ required_ruby_version: !ruby/object:Gem::Requirement
735
729
  none: false
736
- requirements:
737
- - - ! '>='
738
- - !ruby/object:Gem::Version
739
- version: '0'
740
- required_rubygems_version: !ruby/object:Gem::Requirement
730
+ requirements:
731
+ - - ">="
732
+ - !ruby/object:Gem::Version
733
+ hash: 3
734
+ segments:
735
+ - 0
736
+ version: "0"
737
+ required_rubygems_version: !ruby/object:Gem::Requirement
741
738
  none: false
742
- requirements:
743
- - - ! '>='
744
- - !ruby/object:Gem::Version
739
+ requirements:
740
+ - - ">="
741
+ - !ruby/object:Gem::Version
742
+ hash: 17
743
+ segments:
744
+ - 1
745
+ - 3
746
+ - 5
745
747
  version: 1.3.5
746
748
  requirements: []
749
+
747
750
  rubyforge_project: jsduck
748
751
  rubygems_version: 1.8.24
749
752
  signing_key:
750
753
  specification_version: 3
751
754
  summary: Simple JavaScript Duckumentation generator
752
755
  test_files: []
756
+