yard 0.8.4 → 0.8.4.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 CHANGED
@@ -1,6 +1,21 @@
1
+ 2013-02-05 Loren Segal <lsegal@soen.ca>
2
+
3
+ * ChangeLog, README.md, lib/yard/version.rb: Bump to 0.8.4.1
4
+
5
+ * lib/yard/code_objects/base.rb: Fix regression in loading codeobjects from
6
+ db An instance variable in CodeObjects::Base was renamed (@docstring to
7
+ @base_docstring). Although this did not affect newly generated projects, it
8
+ broke the ability to properly load up yardoc databases generated with
9
+ versions prior to 0.8.4. For backwards compatibility, this ivar has been
10
+ named back so that existing databases can still be loaded via YARD. Fixes
11
+ #648
12
+
1
13
  2013-02-04 Loren Segal <lsegal@amazon.com>
2
14
 
3
- * LICENSE, README.md, docs/WhatsNew.md, lib/yard/version.rb: Bump to 0.8.4
15
+ * README.md: Fix README formatting
16
+
17
+ * ChangeLog, LICENSE, README.md, docs/WhatsNew.md, lib/yard/version.rb: Bump
18
+ to 0.8.4
4
19
 
5
20
  2013-02-01 Loren Segal <lsegal@amazon.com>
6
21
 
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-2013
10
10
  **License**: MIT License
11
- **Latest Version**: 0.8.4
12
- **Release Date**: February 4th 2013
11
+ **Latest Version**: 0.8.4.1
12
+ **Release Date**: February 5th 2013
13
13
 
14
14
  Synopsis
15
15
  --------
@@ -286,6 +286,9 @@ More options can be seen by typing `yard graph --help`, but here is an example:
286
286
 
287
287
  ## Changelog
288
288
 
289
+ - **February.5.13**: 0.8.4.1 release
290
+ - Fix regression that broke loading of existing yardoc dbs (#648)
291
+
289
292
  - **February.4.13**: 0.8.4 release
290
293
  - Add `-B/--bind` switch to yard server (#593, #608)
291
294
  - Add CodeObjects::Base#title for plugins to customize how object
@@ -140,6 +140,8 @@ module YARD
140
140
  # @return [Docstring] the documentation string
141
141
  # @since 0.8.4
142
142
  attr_reader :base_docstring
143
+ undef base_docstring
144
+ def base_docstring; @docstring end
143
145
 
144
146
  # Marks whether or not the method is conditionally defined at runtime
145
147
  # @return [Boolean] true if the method is conditionally defined at runtime
@@ -220,7 +222,7 @@ module YARD
220
222
  @visibility = :public
221
223
  @tags = []
222
224
  @docstrings = {}
223
- @base_docstring = Docstring.new('', self)
225
+ @docstring = Docstring.new('', self)
224
226
  @namespace = nil
225
227
  self.namespace = namespace
226
228
  yield(self) if block_given?
@@ -237,7 +239,7 @@ module YARD
237
239
  ivar = "@#{ivar}"
238
240
  other.instance_variable_set(ivar, instance_variable_get(ivar))
239
241
  end
240
- other.docstring = @base_docstring.to_raw
242
+ other.docstring = @docstring.to_raw
241
243
  other
242
244
  end
243
245
 
@@ -372,8 +374,8 @@ module YARD
372
374
  # @return [Docstring] the documentation string
373
375
  def docstring(locale = I18n::Locale.default)
374
376
  if locale.nil?
375
- @base_docstring.resolve_reference
376
- return @base_docstring
377
+ @docstring.resolve_reference
378
+ return @docstring
377
379
  end
378
380
 
379
381
  if locale.is_a?(String)
@@ -395,9 +397,9 @@ module YARD
395
397
  def docstring=(comments)
396
398
  @docstrings.clear
397
399
  if Docstring === comments
398
- @base_docstring = comments
400
+ @docstring = comments
399
401
  else
400
- @base_docstring = Docstring.new(comments, self)
402
+ @docstring = Docstring.new(comments, self)
401
403
  end
402
404
  end
403
405
 
@@ -525,7 +527,7 @@ module YARD
525
527
  # @since 0.8.4
526
528
  def add_tag(*tags)
527
529
  @docstrings.clear
528
- @base_docstring.add_tag(*tags)
530
+ @docstring.add_tag(*tags)
529
531
  end
530
532
 
531
533
  # @return whether or not this object is a RootObject
@@ -551,7 +553,7 @@ module YARD
551
553
  # @since 0.8.0
552
554
  def copyable_attributes
553
555
  vars = instance_variables.map {|ivar| ivar.to_s[1..-1] }
554
- vars -= %w(base_docstring docstrings namespace name path)
556
+ vars -= %w(docstring docstrings namespace name path)
555
557
  vars
556
558
  end
557
559
 
@@ -569,13 +571,13 @@ module YARD
569
571
  end
570
572
 
571
573
  def translate_docstring(locale)
572
- @base_docstring.resolve_reference
573
- return @base_docstring if locale.nil?
574
+ @docstring.resolve_reference
575
+ return @docstring if locale.nil?
574
576
 
575
- text = I18n::Text.new(@base_docstring)
577
+ text = I18n::Text.new(@docstring)
576
578
  localized_text = text.translate(locale)
577
579
  docstring = Docstring.new(localized_text, self)
578
- docstring.add_tag(*@base_docstring.tags)
580
+ docstring.add_tag(*@docstring.tags)
579
581
  docstring
580
582
  end
581
583
  end
@@ -1,3 +1,3 @@
1
1
  module YARD
2
- VERSION = "0.8.4"
2
+ VERSION = "0.8.4.1"
3
3
  end
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.4
4
+ version: 0.8.4.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: 2013-02-04 00:00:00.000000000 Z
12
+ date: 2013-02-05 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: ! " YARD is a documentation generation tool for the Ruby programming
15
15
  language.\n It enables the user to generate consistent, usable documentation