Permalink
Switch branches/tags
Nothing to show
Commits on Jun 30, 2011
  1. TABS, BE GONE!

    YorickPeterse committed Jun 30, 2011
Commits on Jun 5, 2011
  1. Use RUBY_DESCRIPTION instead of RUBY_ENGINE and friends as RUBY_ENGINE

    isn't available on Ruby 1.8.7.
    YorickPeterse committed Jun 5, 2011
  2. Added Forrst.request as a small wrapper around Forrst.oauth.request.

    This method will take care of all the headers and other future features.
    YorickPeterse committed Jun 5, 2011
  3. Fixed a missing word in the README.

    YorickPeterse committed Jun 5, 2011
  4. Release v0.1.1

    YorickPeterse committed Jun 5, 2011
  5. Cleaned up and documented some code and added the method

    Forrst::Post#comments. Currently this method can't be used as Forrst 
    requires authentication for retrieving the comments of a post but this
    is disabled until they sort their SSL issues out. Once it's available I
    can start speccing it.
    YorickPeterse committed Jun 5, 2011
  6. Updated the README with some examples and other details.

    YorickPeterse committed Jun 5, 2011
  7. Made the library compatible with JRuby, MRI 1.8 and Rubinius. Also

    changed the call to Date.parse with Date.strptime, thanks to @bougyman
    for suggesting it.
    YorickPeterse committed Jun 5, 2011
  8. Made it possible to retrieve the details of a single post. This is done

    by calling Forrst::Post[] and by passing the ID or tiny ID to the method.
    Because of this I've also renamed Forrst::User.find to Forrst::User[].
    From now on the find() method will return a collection of items whereas
    the method []() will return a single item.
    YorickPeterse committed Jun 5, 2011
  9. Properly documented all the attribute readers for Forrst::User and

    Forrst::Post.
    YorickPeterse committed Jun 5, 2011
  10. Posts can now be retrieved from a user. Each post is an instance of the

    partially complete class Forrst::Post. Fields such as "created_at" and
    "like_count" are all nicely converted to the correct type as well. Note
    that statistics such as the amount of likes and comments can be found in
    the method "statistics":
    
        posts.each do |post|
          puts post.statistics[:comments]
        end
    
    Next up is getting Forrst::Post.find implemented.
    YorickPeterse committed Jun 5, 2011
  11. Replaced Forrst::User.[] with Forrst::User.find(). Future classes such

    as Forrst::Post will need to filter results based on multiple parameters.
    Using []() as a method would make this look rather ugly:
    
        Forrst::Post[:code, :sort => :recent, :page => 1]
    
    Also removed the example from the README as I don't want to keep 
    updating it over and over again until this thing is stable enough.
    YorickPeterse committed Jun 5, 2011
  12. Updated the README.

    YorickPeterse committed Jun 5, 2011
  13. Began working on Forrst::User and implemented a few stub requests so

    Kyle's server isn't bombarded with HTTP requests.
    YorickPeterse committed Jun 5, 2011
Commits on Jun 4, 2011
  1. Initial commit.

    YorickPeterse committed Jun 4, 2011