Permalink
Switch branches/tags
Nothing to show
Commits on Apr 26, 2009
  1. Documented interaction between .get and base_uri.

    runpaint committed Apr 26, 2009
    If a user specifies a base_uri with a trailing slash, he may think he can pass
    .get a path without the leading slash under the belief that the path is simply
    appended to the base URI. In reality, when the base_uri is normalised the
    trailing slash is removed, breaking this assumption.
    
    I have expanded the Rdoc for the .get method to explain this gotcha, although
    we should probably do more. It may make sense to always concatenate the
    base_uri and path unless the path starts with a protocol specification.
  2. lib/httparty.rb: Fixed typo in .headers RDoc.

    runpaint committed Apr 26, 2009
    The RDoc for the .headers method described it as setting the base_uri.
    Corrected the description.
  3. lib/httparty.rb: Improve HTTParty::Unsuported msg.

    runpaint committed Apr 26, 2009
    If an unsupported format is specified a HTTParty::Unsupported exception is
    raised along with an error message enumerating the allowed formats. Valid
    formats are specified as symbols, e.g. :yaml, but the error message
    stringifies the symbols. This can be misleading.
    
    For example, if a user specifies `format
    'yaml'` he is confronted with an error message reading "Must be one of:
    json, xml, html, yaml, plain". From his perspective, his format is in this
    list, so the error is confusing.
    
    This patch simply modifies the error message to read "Must be one of: :json,
    :xml, :html, :yaml, :plain", which is hopefully clearer.
Commits on Apr 23, 2009
  1. Prepped for 0.4.3 release.

    jnunemaker committed Apr 23, 2009
Commits on Apr 2, 2009
  1. Fixed failing spec.

    jnunemaker committed Apr 2, 2009
  2. Switched to crack rubyforge gem from jnunemaker-crack github gem as r…

    jnunemaker committed Apr 2, 2009
    …ubyforge project was finally approved.
  3. Updated history.

    jnunemaker committed Apr 2, 2009
Commits on Mar 30, 2009
  1. HTTParty.baseuri should not modify the parameters.

    Matt Scilipoti committed with jnunemaker Mar 3, 2009
    HTTParty.baseuri is modifying the passed parameters.  This can cause
    unexpected "side-effects".  For example: if you pass a value from a
    configuration hash, the value in the configuratiuon hash is changed.
    
    Signed-off-by: John Nunemaker <nunemaker@gmail.com>
  2. only show the acceptable format one time per format on exception

    jgeiger committed with jnunemaker Mar 5, 2009
    Signed-off-by: John Nunemaker <nunemaker@gmail.com>
  3. allow a format :plain option

    jgeiger committed with jnunemaker Mar 5, 2009
    Signed-off-by: John Nunemaker <nunemaker@gmail.com>
  4. Fixing the response code is a string issue in the story steps too.

    jqr committed with jnunemaker Feb 20, 2009
    Signed-off-by: John Nunemaker <nunemaker@gmail.com>
  5. Forcing code to a Fixnum/Integer.

    jqr committed with jnunemaker Feb 20, 2009
    Signed-off-by: John Nunemaker <nunemaker@gmail.com>
Commits on Mar 29, 2009
  1. Prepped for 0.4.0 release.

    jnunemaker committed Mar 29, 2009
  2. Now using crack for xml and json parsing instead of bundling that in …

    jnunemaker committed Mar 29, 2009
    …HTTParty. Hopefully panic will not ensue.
Commits on Feb 11, 2009
  1. Prepped for 0.3.1 release.

    jnunemaker committed Feb 11, 2009
  2. Updated history

    jnunemaker committed Feb 11, 2009
  3. Moved character encoding test from core_extensions_spec.rb into hash_…

    plusplus committed with jnunemaker Feb 1, 2009
    …spec.rb and deleted now redundant core_extensions_spac.rb
    
    Signed-off-by: John Nunemaker <nunemaker@gmail.com>
  4. Added yaml response parsing

    mfilej committed with jnunemaker Feb 2, 2009
    Signed-off-by: John Nunemaker <nunemaker@gmail.com>
Commits on Jan 31, 2009
  1. Prepped for 0.3.0 release.

    jnunemaker committed Jan 31, 2009
  2. updated history

    jnunemaker committed Jan 31, 2009
  3. Doc updates

    jnunemaker committed Jan 31, 2009
  4. updated manifest

    jnunemaker committed Jan 31, 2009
  5. Documentation updates.

    jnunemaker committed Jan 31, 2009
  6. Added multiple specs and fixed bug where snake_case was not defined f…

    jnunemaker committed Jan 31, 2009
    …or string.
    
    Hash, String and HTTParty::XML all got spec additions.
  7. Removed as buggery spec as it is no longer needed.

    jnunemaker committed Jan 31, 2009
    Was only needed when I had Hash#from_xml method but
    that is long gone.