Skip to content


Subversion checkout URL

You can clone with
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/ `parse'
    		from /Users/ `parse_stream'
    		from /Users/ `parse'
    		from /Users/ `load'
    		from (irb):2
    		from /Users/ `<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

    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.

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

  2. Display super and subclasses.

  3. Make timestamping optional.

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

  2. "Namespace" image assets.

Commits on May 14, 2010
  1. Prune assets.

  2. Add custom assets option.

  3. Remove :doc_url option.

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

    …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.

  2. Add JSON generator.

  3. Add optional json api.

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

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

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