0.0
No commit activity in last 3 years
No release in over 3 years
stackoverfeeds is a full RoR gem that let you show your Stackoverflow activity in a fancy way with minimal configuration.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.0
~> 2.14.1
~> 1.3.9

Runtime

~> 1.1.0
>= 3.2.0
~> 1.6.7
~> 0.9.2
 Project Readme

Stackoverfeeds

Stackoverfeeds is a full RoR gem that let you show your personal stackoverflow activity in a fancy way with minimal configuration. It:

  • Is a full Rails engine
  • Can be added like a gem in your RoR application
  • Is a complete MVC solution
  • Offers you a predefined view (Stackoverflow like style) that displays your Stackoverflow activity
  • Based on feedshub (https://github.com/VAIRIX/feedshub)

Benefits

This solution fits very well for everyone who wants to give more visibility to their company or maybe themselves.

Installation

You can add it to your Gemfile with:

gem 'stackoverfeeds'

Then run the bundle command to install it

bundle install

After you install Feedshub, you need to run the generator

rails generate stackoverfeeds:install

The generator will copy:

  • Necessary migrations
  • Assets you can customize
  • Environment configurations

Also, it will add environment variables in your application.rb file in order to load Stackoverfeeds.

The last step is run the migrations

rake db:migrate

Configuration

To customize the behaviour of the gem you have to edit /config/stackoverfeeds/config.yml

  #Set your user assigned number from Stackoverflow
  user_number: '3470100'

  #Set your user name from Stackoverflow
  user_name: 'vairix'

  #Set the default number of feeds to retrieve (if no amount set by parameter)
  feeds_number: '10'

  #Set the theme to the Stackoverflow flair to show on top of the activities
  theme: 'default'

And also edit /config/stackoverfeeds/schedule.rb to customize the period of feeds updates. Feedshub use whenever Gem to schedule the updates of feeds. For more information visit https://github.com/javan/whenever

To generate the schedule task, run:

RAILS_ENV=your_environment rake stackoverfeeds:schedule

You need to do this to keep updated feeds.

How to integrate it?

The integration is done using a helper that will render the public activity wherever you want in the view. In order to do it you have to:

Include the helper reference in the view controller

helper Stackoverfeeds::StackoverfeedsHelper

In your view, call the helper as shown below

<%= stackoverflow_feeds %>

By calling the helper without parameter, it will display the number of feeds specified in the configuration and with all activities collapsed. You can add two parameters (ie.:<%= stackoverflow_feeds(50, true) %>) to specify the number of feeds to show in the view, and the display mode (activities collapsed or expanded). In non extended mode, each activity summary is retrieve on demand.

Screenshots

This is the default style of Feedshub.

Feeds

License

Copyright 2014 VAIRIX

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.