yard 0.8.2 → 0.8.2.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of yard might be problematic. Click here for more details.
- data/ChangeLog +17 -0
- data/README.md +7 -2
- data/lib/yard.rb +1 -1
- data/lib/yard/options.rb +1 -1
- data/lib/yard/server/commands/base.rb +2 -3
- data/lib/yard/server/commands/library_command.rb +2 -1
- data/spec/options_spec.rb +11 -0
- metadata +2 -2
data/ChangeLog
CHANGED
@@ -1,3 +1,20 @@
|
|
1
|
+
2012-06-10 Loren Segal <lsegal@soen.ca>
|
2
|
+
|
3
|
+
* ChangeLog, README.md, lib/yard.rb: Bump to 0.8.2.1
|
4
|
+
|
5
|
+
2012-06-09 Loren Segal <lsegal@soen.ca>
|
6
|
+
|
7
|
+
* lib/yard/options.rb, spec/options_spec.rb: Ensure that defaults are
|
8
|
+
inherited from parent class
|
9
|
+
|
10
|
+
2012-06-08 Loren Segal <lsegal@soen.ca>
|
11
|
+
|
12
|
+
* lib/yard/server/commands/base.rb,
|
13
|
+
lib/yard/server/commands/library_command.rb: Ensure that output is not
|
14
|
+
serialized in server templates
|
15
|
+
|
16
|
+
* README.md: Add changelog information that was omitted from release
|
17
|
+
|
1
18
|
2012-06-07 Loren Segal <lsegal@soen.ca>
|
2
19
|
|
3
20
|
* ChangeLog, README.md, lib/yard.rb: Bump to version 0.8.2
|
data/README.md
CHANGED
@@ -8,8 +8,8 @@ YARD: Yay! A Ruby Documentation Tool
|
|
8
8
|
**Contributors**: See Contributors section below
|
9
9
|
**Copyright**: 2007-2012
|
10
10
|
**License**: MIT License
|
11
|
-
**Latest Version**: 0.8.2 (codename "Shave It")
|
12
|
-
**Release Date**: June
|
11
|
+
**Latest Version**: 0.8.2.1 (codename "Shave It")
|
12
|
+
**Release Date**: June 10th 2012
|
13
13
|
|
14
14
|
Synopsis
|
15
15
|
--------
|
@@ -286,11 +286,16 @@ More options can be seen by typing `yard graph --help`, but here is an example:
|
|
286
286
|
|
287
287
|
## Changelog
|
288
288
|
|
289
|
+
- **June.9.12**: 0.8.2.1 release
|
290
|
+
- Fix a set of regressions in yard server search and dynamic generation
|
291
|
+
|
289
292
|
- **June.7.12**: 0.8.2 release
|
293
|
+
- Added progress style output in tty terminals
|
290
294
|
- Embedded mixins should ignore methods defined on module (#539)
|
291
295
|
- Fixed permalinks for embedded mixins in `yard server` (#540)
|
292
296
|
- Improve parsing in CRuby code (#543)
|
293
297
|
- Ensure Registry.resolve picks module when parsing mixins (#545)
|
298
|
+
- Fixed regression that caused various commands to not show output (#548)
|
294
299
|
- Respect current visibility when parsing class conditions (#551)
|
295
300
|
|
296
301
|
- **May.2.12**: 0.8.1 release
|
data/lib/yard.rb
CHANGED
data/lib/yard/options.rb
CHANGED
@@ -188,7 +188,7 @@ module YARD
|
|
188
188
|
names_set = {}
|
189
189
|
self.class.ancestors.each do |klass| # look at all ancestors
|
190
190
|
defaults = klass.instance_variable_get("@defaults")
|
191
|
-
|
191
|
+
next unless defaults
|
192
192
|
defaults.each do |key, value|
|
193
193
|
next if names_set[key]
|
194
194
|
names_set[key] = true
|
@@ -136,12 +136,11 @@ module YARD
|
|
136
136
|
# receive +#options+ as an argument.
|
137
137
|
# @return [String] the resulting output to display
|
138
138
|
def render(object = nil)
|
139
|
-
opts = options.merge(:serialize => false)
|
140
139
|
case object
|
141
140
|
when CodeObjects::Base
|
142
|
-
cache object.format(
|
141
|
+
cache object.format(options)
|
143
142
|
when nil
|
144
|
-
cache Templates::Engine.render(
|
143
|
+
cache Templates::Engine.render(options)
|
145
144
|
else
|
146
145
|
cache object
|
147
146
|
end
|
@@ -8,7 +8,7 @@ module YARD
|
|
8
8
|
def library; @command.library end
|
9
9
|
def single_library; @command.single_library end
|
10
10
|
def serializer; @command.serializer end
|
11
|
-
|
11
|
+
def serialize; false end
|
12
12
|
|
13
13
|
attr_accessor :command
|
14
14
|
attr_accessor :frames
|
@@ -99,6 +99,7 @@ module YARD
|
|
99
99
|
end
|
100
100
|
yardoc.send(:verify_markup_options)
|
101
101
|
yardoc.options.delete(:serializer)
|
102
|
+
yardoc.options.delete(:serialize)
|
102
103
|
options.update(yardoc.options.to_hash)
|
103
104
|
end
|
104
105
|
end
|
data/spec/options_spec.rb
CHANGED
@@ -36,6 +36,17 @@ describe YARD::Options do
|
|
36
36
|
o.reset_defaults
|
37
37
|
o.foo.should == 'FOO'
|
38
38
|
end
|
39
|
+
|
40
|
+
it "should use defaults from superclass as well" do
|
41
|
+
class ResetDefaultOptions2 < YARD::Options
|
42
|
+
default_attr :foo, 'FOO'
|
43
|
+
end
|
44
|
+
class ResetDefaultOptions3 < ResetDefaultOptions2
|
45
|
+
end
|
46
|
+
o = ResetDefaultOptions3.new
|
47
|
+
o.reset_defaults
|
48
|
+
o.foo.should == 'FOO'
|
49
|
+
end
|
39
50
|
end
|
40
51
|
|
41
52
|
describe '#delete' do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yard
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.2
|
4
|
+
version: 0.8.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-06-
|
12
|
+
date: 2012-06-10 00:00:00.000000000 -04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
description: ! " YARD is a documentation generation tool for the Ruby programming
|