No description or website provided.
HTML Ruby CSS
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
images
javascripts
lib/homeflow
spec
stylesheets
Gemfile
Guardfile
LICENSE.txt
Rakefile
homeflow_api.gemspec
index.html
params.json
readMe.md

readMe.md

homeflow_api

The homeflow_api gem provides homeflow api v2 functions from ruby. This is alpha quality software and is in active development.

Install

gem 'dry_ice', '0.1.1'

gem 'homeflow_api', :git => 'git://github.com/homeflow/homeflow_api.git'

Initializer

Pop this in /config/initializers/homeflow.rb. Replace XXXXX for your API key.

require 'homeflow/api'
require 'dry_ice'

Homeflow::API.configure do |config|
  config.api_key = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
  config.source = 'http://index1.homeflow.co.uk'
end

module Homeflow
  module API
    class Request
      include HTTParty::DryIce
      cache Rails.cache, {:serialize => false}
    end
  end
end

Contributing to homeflow_api

  • Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
  • Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
  • Fork the project
  • Start a feature/bugfix branch
  • Commit and push until you are happy with your contribution
  • Make sure to add tests for it. This is important so we don't break it in a future version unintentionally.
  • Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or it is otherwise necessary, that is fine, but please isolate to its own commit so we can cherry-pick around it.

Copyright

Copyright (c) 2011 Homeflow. See LICENSE.txt for further details.