Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Apr 30, 2014
  1. @savetheclocktower

    Fix YAML parsing issue that emerged in Ruby 1.9.

    savetheclocktower authored savetheclocktower committed
    In 1.8.7:
    
    	irb(main):001:0> require 'yaml'
    	=> true
    	irb(main):007:0> YAML.load('foo: [?]')
    	=> {"foo"=>["?"]}
    
    In 1.9.3:
    
    	irb(main):002:0> YAML.load('foo: [?]')
    	Psych::SyntaxError: (<unknown>): did not find expected ',' or ']' while parsing a flow sequence at line 1 column 6
    		from /Users/andrew.dupont/.rbenv/versions/1.9.3-p392/lib/ruby/1.9.1/psych.rb:203:in `parse'
    		from /Users/andrew.dupont/.rbenv/versions/1.9.3-p392/lib/ruby/1.9.1/psych.rb:203:in `parse_stream'
    		from /Users/andrew.dupont/.rbenv/versions/1.9.3-p392/lib/ruby/1.9.1/psych.rb:151:in `parse'
    		from /Users/andrew.dupont/.rbenv/versions/1.9.3-p392/lib/ruby/1.9.1/psych.rb:127:in `load'
    		from (irb):2
    		from /Users/andrew.dupont/.rbenv/versions/1.9.3-p392/bin/irb:12:in `<main>'
    
    In PDoc, `?` can be an argument type and a return type. When it's an argument type, we end up with `types: [?]` in the YAML file, and though that was OK before Psych existed, it's not OK now. This was preventing documentation from being generated from at least Ruby 1.9.3 onward.
    
    The solution is to put quotes around the types so that YAML knows we mean for them to be strings.
    
    This ends up not being a problem for the return type (`return_value` in the YAML) because it ends up being escaped, as are most of the values in the YAML output.
Commits on Sep 27, 2012
  1. Merge pull request #5 from victor-homyakov/patch-1

    authored
    Properly closed HTML paragraph tag
Commits on Sep 26, 2012
  1. @victor-homyakov
Commits on Apr 7, 2011
  1. @gf3

    Bumped version.

    gf3 authored
Commits on Nov 4, 2010
  1. @savetheclocktower

    Add ability to customize the text of the "view source code" anchor. M…

    savetheclocktower authored
    …ove the anchor to below the name of the object.
Commits on Sep 3, 2010
  1. @gf3

    updated: Ruby 1.9.2 compatibility.

    gf3 authored committed
    * Compatibility with ruby 1.9.
    * Maintinging compat. with ruby 1.8.
    * Added utf-8 encoding comments.
    * Changed how bindings are used/passed in `page.rb`.
Commits on May 22, 2010
  1. Light refactoring.

    authored
Commits on May 21, 2010
Commits on May 18, 2010
  1. Handle mixins.

    authored
  2. Display super and subclasses.

    authored
  3. Make timestamping optional.

    authored
Commits on May 17, 2010
  1. @jcoglan
Commits on May 15, 2010
  1. "Namespace" JS and CSS assets.

    authored
  2. "Namespace" image assets.

    authored
Commits on May 14, 2010
  1. Prune assets.

    authored
  2. Add custom assets option.

    authored
  3. Remove :doc_url option.

    authored
  4. Add :index_header, :header and :footer options. Remove :copyright_not…

    authored
    …ice option. Amend templates accordingly.
Commits on May 13, 2010
  1. Make file/directory name generation case sensitive.

    Ryan Johnson authored committed
Commits on May 11, 2010
  1. Add Pythonesque generator.

    authored
  2. Add JSON generator.

    authored
  3. Add optional json api.

    authored
Commits on May 10, 2010
  1. Fix to_hash implementation.

    authored
  2. Fix a couple of to_hash methods which were mistakenly returning objec…

    authored
    …ts rather than those object's ids.
Something went wrong with that request. Please try again.