0.0
No commit activity in last 3 years
No release in over 3 years
Stackreduce.com API Wrapper
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
~> 1.3
>= 0
>= 0

Runtime

 Project Readme

Stackreduce API Wrapper

Stackreduce gem its a Rails API Wrapper for Stackreduce.com A simple solutions for pushing your data from your rails app

Code Climate Gem Version

RDocs

You can view the Stackreduce documentation in RDoc format here:

http://rubydoc.info/github/stackreduce/stackreduce/master/frames

Issue tracker

https://github.com/stackreduce/stackreduce/issues

Getting started

Add it to your Gemfile:

gem 'stackreduce'

And then execute:

$ bundle

Or install it yourself as:

$ gem install stackreduce

Create a config file

From console run the generator:

$ rails g stackreduce:config

It will create a config file under your

config/initializers/stackreduce_config.rb

Edit your config file and add your applications id and token:

Stackreduce.configure do |config|
  config.app_id = "YOUR_APP_ID"
  config.token = "YOUR_APP_TOKEN"
end

Usage

Push a new stack:

Stackreduce.push User.all		

or create a stack with a name:

Stackreduce.push User.all, :stack => "My awesome stack"

Seed en example Stack

Push a new demo stack:

Will generate an demo stack with users named "My Users Stack"

Stackreduce.seed :users => "My Users Stack"

Will generate an demo stack with users named "My Products Stack"

Stackreduce.seed :products => "My Products Stack"

Defaults: Will generate an demo stack with users

Stackreduce.seed

Tested with

Rails 4.0.0
ruby 2.0.0p195 (2013-05-14 revision 40734) [x86_64-darwin12.3.0]

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

License

Released under the MIT license see the file License.

Created by Yannis Kolovos (https://github.com/msroot)