yard-js 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/yard-js/handlers/class_handler.rb +4 -2
- data/lib/yard-js/version.rb +1 -1
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d1c246db24c2339915fd136b29683167153806b9
|
4
|
+
data.tar.gz: ff8a4e2c3fe7a3155e46767beb2ddbc89c32d6ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14fb694d49bd364ea2a1c2750e5aacb80dd53c94ea43849d693dff6954ec964ce536f9595289fd914a5397c64b09f25daa89363d4e674ab150d52127863ac839
|
7
|
+
data.tar.gz: dde762ad74b4b03e9fadef0c6602c8cd8e615eb18c4c7ac7a6bf06be62cf75d96b63f86f56b05f535ec39e614611e3526cf18fd015cb22bdbc725f87f5abb69a
|
data/README.md
CHANGED
@@ -74,7 +74,7 @@ To generate documentation for a project, change into the project directory
|
|
74
74
|
and type:
|
75
75
|
|
76
76
|
```sh
|
77
|
-
$ yard -m markdown -e /path/to/yard-js/lib/yard-js
|
77
|
+
$ bundle exec yard -m markdown -e /path/to/yard-js/lib/yard-js.rb
|
78
78
|
```
|
79
79
|
|
80
80
|
To take advantage of class detection you will also need to customize the
|
@@ -34,8 +34,10 @@ module YARDJS
|
|
34
34
|
return unless statement.callee.source =~
|
35
35
|
YARDJS.options.update_class_expression
|
36
36
|
|
37
|
-
|
38
|
-
|
37
|
+
statement.comments ||= parser.extra_state.comments
|
38
|
+
name = statement.args.first.source.gsub(/\.prototype/, '')
|
39
|
+
ns = register YARD::CodeObjects::ClassObject.new(:root, name)
|
40
|
+
|
39
41
|
parse_block(statement.args.last.properties, :namespace => ns)
|
40
42
|
end
|
41
43
|
end
|
data/lib/yard-js/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yard-js
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Loren Segal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-06-25 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email: lsegal@soen.ca
|
@@ -16,16 +16,20 @@ executables: []
|
|
16
16
|
extensions: []
|
17
17
|
extra_rdoc_files: []
|
18
18
|
files:
|
19
|
+
- LICENSE.txt
|
20
|
+
- README.md
|
21
|
+
- lib/yard-js.rb
|
22
|
+
- lib/yard-js/code_objects.rb
|
19
23
|
- lib/yard-js/code_objects/event_object.rb
|
20
24
|
- lib/yard-js/code_objects/property_object.rb
|
21
|
-
- lib/yard-js/code_objects.rb
|
22
25
|
- lib/yard-js/core_ext/parsejs.rb
|
26
|
+
- lib/yard-js/core_ext/yard.rb
|
23
27
|
- lib/yard-js/core_ext/yard/code_objects.rb
|
24
28
|
- lib/yard-js/core_ext/yard/registry.rb
|
25
29
|
- lib/yard-js/core_ext/yard/tags.rb
|
26
30
|
- lib/yard-js/core_ext/yard/templates.rb
|
27
31
|
- lib/yard-js/core_ext/yard/yardoc.rb
|
28
|
-
- lib/yard-js/
|
32
|
+
- lib/yard-js/handlers.rb
|
29
33
|
- lib/yard-js/handlers/base.rb
|
30
34
|
- lib/yard-js/handlers/class_handler.rb
|
31
35
|
- lib/yard-js/handlers/comment_handler.rb
|
@@ -33,12 +37,10 @@ files:
|
|
33
37
|
- lib/yard-js/handlers/instance_method_handler.rb
|
34
38
|
- lib/yard-js/handlers/mixin_handler.rb
|
35
39
|
- lib/yard-js/handlers/module_handler.rb
|
36
|
-
- lib/yard-js/handlers.rb
|
37
40
|
- lib/yard-js/parser.rb
|
38
41
|
- lib/yard-js/plugin.rb
|
39
42
|
- lib/yard-js/tags.rb
|
40
43
|
- lib/yard-js/version.rb
|
41
|
-
- lib/yard-js.rb
|
42
44
|
- templates/default/class/setup.rb
|
43
45
|
- templates/default/fulldoc/html/css/highlight.github.css
|
44
46
|
- templates/default/fulldoc/html/css/style.css
|
@@ -62,8 +64,6 @@ files:
|
|
62
64
|
- templates/default/tags/callback.erb
|
63
65
|
- templates/default/tags/setup.rb
|
64
66
|
- templates/default/tags/value.erb
|
65
|
-
- LICENSE.txt
|
66
|
-
- README.md
|
67
67
|
- yard-js.gemspec
|
68
68
|
homepage: http://github.com/lsegal/yard-js
|
69
69
|
licenses: []
|
@@ -74,17 +74,17 @@ require_paths:
|
|
74
74
|
- lib
|
75
75
|
required_ruby_version: !ruby/object:Gem::Requirement
|
76
76
|
requirements:
|
77
|
-
- -
|
77
|
+
- - ">="
|
78
78
|
- !ruby/object:Gem::Version
|
79
79
|
version: '0'
|
80
80
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
81
81
|
requirements:
|
82
|
-
- -
|
82
|
+
- - ">="
|
83
83
|
- !ruby/object:Gem::Version
|
84
84
|
version: '0'
|
85
85
|
requirements: []
|
86
86
|
rubyforge_project:
|
87
|
-
rubygems_version: 2.
|
87
|
+
rubygems_version: 2.2.2
|
88
88
|
signing_key:
|
89
89
|
specification_version: 4
|
90
90
|
summary: YARD plugin for documenting JavaScript source code
|