Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Branch: master
Commits on May 18, 2012
  1. @kristjan

    Add Foursquare/recent

    kristjan authored
  2. @kristjan
Commits on May 17, 2012
  1. @kristjan

    Add Instagram media and feed

    kristjan authored
    Media is yours, feed is your friends'. An obvious pattern emerging could be
    something like
        class Singly::Service::Instagram
          endpoints :feed, :media
  2. @kristjan

    Add Foursquare checkins

    kristjan authored
    Services inherit from `Singly::Service` so they have a shared way of referencing
    the client and building their path.
Commits on May 9, 2012
  1. @kristjan

    Basic API Client with /profiles endpoint

    kristjan authored
    `Singly::Client#profiles` returns profile data for the user associated with an
    `access_token`, or else raises an exception when no token is present.
    Fake API responses will be available in
    `spec/fixtures/*api_path/:response_code.json`, where `api_path` parallels the
    path on the server. This should leave a straightforward way to record responses
    in the future (you can pipe them straight from curl whenever they need
    creating/updating). Delegating everything to `StubApi` also leaves an easy way
    to shut off stubbing in the future to test against the real API, though the
    specs would need to test the format of things rather than specific data, and
    we'd need a real `access_token`.
  2. @kristjan

    Handle successful/failed HTTP responses

    kristjan authored
    If the request is successful, its body will be parsed as JSON and returned.
    Otherwise, a `Net::HTTPError` is raised containing the error text and
    `Net::HTTPResponse` object.
    `WebMock` is used to specify responses. For sake of simple implementation and
    consistent tests, it's used in the request generator tests as well, returning a
    simple JSON object to check. All real web requests are disabled by
    `WebMock.disable_net_connect!`, which lets us verify the proper URL is
    generated, as well as prevents hits to any real server. The URL stubs are
    repetetive, but nice and explicit.
  3. @kristjan

    Basic easy API accessibility

    kristjan authored
    This is done as a module for the upcoming `Client` to include so each client can
    produce their own `access_token` and, if they need to,`api_base`.
Commits on May 8, 2012
  1. @kristjan

    Gem framework

    kristjan authored
Something went wrong with that request. Please try again.