<commit_before># Social Current

Makes it easy to integrate a social activity stream into your application from third party APIs. Social Current currently only supports GitHub and Twitter but feel free to contribute additional integrations.

## Installation

Add this line to your application's Gemfile:

    gem 'social_current'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install social_current

## Usage

TODO: Add usage instructions.

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Added some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request<commit_msg>Updated README with usage instructions.<commit_after># Social Current

Makes it easy to integrate a social activity stream into your application from third party APIs. Social Current currently only supports GitHub and Twitter but feel free to contribute additional integrations.

## Installation

Add this line to your application's Gemfile:

    gem 'social_current'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install social_current

## Usage

You may use Social Current directly within your view like.

```ruby
<% SocialCurrent::Stream.new({ :twitter => "tristanoneil", :github => "tristanoneil" }).each do |item| %>
  <%= item[:message] >
<% end %>
```

Though it's probably a better idea to add a method to a class or model like.

```ruby
class User < ActiveRecord::Base
  def stream
    SocialCurrent::Stream.new({ :twitter => twitter_username, :github => github_username })
  end
end
```

Then you can easily access this from within your view like.

```ruby
<% @user.stream.each do |item| %>
  <%= item[:message] >
<% end %>
```

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Added some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request
{'fraction_non_alphanumeric': 0.09297725024727992, 'fraction_numerical': 0.004945598417408506, 'mean_word_length': 4.134517766497462, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7069176', 'n_tokens_mistral': 588, 'n_tokens_neox': 540, 'n_words': 262}