jsduck 3.11.1 → 3.11.2

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
@@ -220,7 +220,6 @@ task :ext4 => :sass do
220
220
  runner = JsDuckRunner.new
221
221
  runner.add_ext4
222
222
  runner.add_debug
223
- runner.add_options("--tests")
224
223
  runner.run
225
224
 
226
225
  system("cp -r #{EXT_BUILD} #{OUT_DIR}/extjs-build")
@@ -233,8 +232,7 @@ task :sdk => :sass do
233
232
  "--output", OUT_DIR,
234
233
  "--config", "#{SDK_DIR}/extjs/docs/config.json",
235
234
  "--examples-base-url", "extjs-build/examples/",
236
- "--seo",
237
- "--tests"
235
+ "--seo"
238
236
  )
239
237
  runner.add_debug
240
238
  runner.add_comments('ext-js', '4')
@@ -250,8 +248,7 @@ task :touch2 => :sass do
250
248
  "--output", OUT_DIR,
251
249
  "--config", "#{SDK_DIR}/touch/docs/config.json",
252
250
  "--examples-base-url", "touch-build/examples/production/",
253
- "--seo",
254
- "--tests"
251
+ "--seo"
255
252
  )
256
253
 
257
254
  runner.add_debug
data/js-classes/String.js CHANGED
@@ -949,7 +949,7 @@
949
949
  *
950
950
  * The following example displays the string "sencha":
951
951
  *
952
- * var upperText="sencha";
952
+ * var upperText="SENCHA";
953
953
  * document.write(upperText.toLocaleLowerCase());
954
954
  *
955
955
  * @return {String} Returns value of the string in lowercase.
data/jsduck.gemspec CHANGED
@@ -2,8 +2,8 @@ Gem::Specification.new do |s|
2
2
  s.required_rubygems_version = ">= 1.3.5"
3
3
 
4
4
  s.name = 'jsduck'
5
- s.version = '3.11.1'
6
- s.date = '2012-07-26'
5
+ s.version = '3.11.2'
6
+ s.date = '2012-08-07'
7
7
  s.summary = "Simple JavaScript Duckumentation generator"
8
8
  s.description = "Documentation generator for Sencha JS frameworks"
9
9
  s.homepage = "https://github.com/senchalabs/jsduck"
@@ -205,10 +205,7 @@ module JsDuck
205
205
  end
206
206
 
207
207
  # Appends Ext4 options parameter to each event parameter list.
208
- # But only when we are dealing with Ext4 codebase.
209
208
  def append_ext4_event_options
210
- return unless ext4?
211
-
212
209
  options = {
213
210
  :tagname => :param,
214
211
  :name => "eOpts",
data/lib/jsduck/app.rb CHANGED
@@ -124,7 +124,9 @@ module JsDuck
124
124
  agr.create_global_class
125
125
  agr.remove_ignored_classes
126
126
  agr.create_accessors
127
- agr.append_ext4_event_options
127
+ if @opts.ext4_events == true || (@opts.ext4_events == nil && agr.ext4?)
128
+ agr.append_ext4_event_options
129
+ end
128
130
  agr.result
129
131
  end
130
132
 
@@ -163,14 +165,15 @@ module JsDuck
163
165
  class_formatter.include_types = !@opts.export
164
166
  # Format all doc-objects in parallel
165
167
  formatted_classes = @parallel.map(@relations.classes) do |cls|
166
- Logger.instance.log("Markdown formatting #{cls[:name]}")
168
+ files = cls[:files].map {|f| f[:filename] }.join(" ")
169
+ Logger.instance.log("Markdown formatting #{cls[:name]}", files)
167
170
  begin
168
171
  {
169
172
  :doc => class_formatter.format(cls.internal_doc),
170
173
  :images => doc_formatter.images
171
174
  }
172
175
  rescue
173
- Logger.instance.fatal("Error while formatting #{cls[:name]}", $!)
176
+ Logger.instance.fatal("Error while formatting #{cls[:name]} #{files}", $!)
174
177
  exit(1)
175
178
  end
176
179
  end
@@ -12,6 +12,7 @@ module JsDuck
12
12
  attr_accessor :output_dir
13
13
  attr_accessor :ignore_global
14
14
  attr_accessor :external_classes
15
+ attr_accessor :ext4_events
15
16
 
16
17
  # Customizing output
17
18
  attr_accessor :title
@@ -73,9 +74,10 @@ module JsDuck
73
74
  # Special anything-goes type
74
75
  "Mixed",
75
76
  ]
77
+ @ext4_events = nil
76
78
  @meta_tag_paths = []
77
79
 
78
- @version = "3.11.1"
80
+ @version = "3.11.2"
79
81
 
80
82
  # Customizing output
81
83
  @title = "Ext JS - Sencha Docs"
@@ -157,6 +159,14 @@ module JsDuck
157
159
  @external_classes += classes
158
160
  end
159
161
 
162
+ opts.on('--[no-]ext4-events',
163
+ "Appends extra options parameter that all Ext events have.",
164
+ "The default is to auto-detect if we're using Ext JS 4",
165
+ "based on whether the code uses Ext.define.",
166
+ "Use this option to override the auto-detection.", " ") do |e|
167
+ @ext4_events = e
168
+ end
169
+
160
170
  opts.on('--builtin-classes',
161
171
  "Includes docs for JavaScript builtin classes.", " ") do
162
172
  read_filenames(@root_dir + "/js-classes")
@@ -0,0 +1,14 @@
1
+ require "jsduck/meta_tag"
2
+
3
+ module JsDuck::Tag
4
+ # Implementation of @chainable tag
5
+ class Chainable < JsDuck::MetaTag
6
+ def initialize
7
+ @name = "chainable"
8
+ @key = :chainable
9
+ @signature = {:long => "chainable", :short => "&gt;"} # show small right-arrow
10
+ @boolean = true
11
+ end
12
+ end
13
+ end
14
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jsduck
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.11.1
4
+ version: 3.11.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-07-26 00:00:00.000000000 Z
13
+ date: 2012-08-07 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rdiscount
@@ -117,8 +117,6 @@ extra_rdoc_files: []
117
117
  files:
118
118
  - .gitignore
119
119
  - COPYING
120
- - Gemfile
121
- - Gemfile.lock
122
120
  - README.md
123
121
  - Rakefile
124
122
  - bin/compare
@@ -189,6 +187,7 @@ files:
189
187
  - lib/jsduck/tag/abstract.rb
190
188
  - lib/jsduck/tag/aside.rb
191
189
  - lib/jsduck/tag/author.rb
190
+ - lib/jsduck/tag/chainable.rb
192
191
  - lib/jsduck/tag/deprecated.rb
193
192
  - lib/jsduck/tag/docauthor.rb
194
193
  - lib/jsduck/tag/hide.rb
data/Gemfile DELETED
@@ -1,4 +0,0 @@
1
- source :rubygems
2
-
3
- gemspec
4
-
data/Gemfile.lock DELETED
@@ -1,41 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- jsduck (3.10.5)
5
- json
6
- parallel
7
- rdiscount
8
-
9
- GEM
10
- remote: http://rubygems.org/
11
- specs:
12
- chunky_png (1.2.5)
13
- compass (0.12.1)
14
- chunky_png (~> 1.2)
15
- fssm (>= 0.2.7)
16
- sass (~> 3.1)
17
- diff-lcs (1.1.3)
18
- fssm (0.2.9)
19
- json (1.7.3)
20
- parallel (0.5.16)
21
- rake (0.9.2.2)
22
- rdiscount (1.6.8)
23
- rspec (2.10.0)
24
- rspec-core (~> 2.10.0)
25
- rspec-expectations (~> 2.10.0)
26
- rspec-mocks (~> 2.10.0)
27
- rspec-core (2.10.0)
28
- rspec-expectations (2.10.0)
29
- diff-lcs (~> 1.1.3)
30
- rspec-mocks (2.10.1)
31
- sass (3.1.18)
32
-
33
- PLATFORMS
34
- ruby
35
- x86-mingw32
36
-
37
- DEPENDENCIES
38
- compass
39
- jsduck!
40
- rake
41
- rspec