Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Answers the age-old question, "Where does a Redditor comment the most?"
Ruby Cucumber
Failed to load latest commit information.
bin Create skeleton application runner
features Feature spec for sorting subreddit tallies by most comments
lib Release v0.1.7
spec Encapsulate different sorting algorithms in classes
.gitignore Ignore tmp/ directory
Gemfile Revert "Optionally install the Nyan cat formatter for rspec"
LICENSE.txt Fix `gem build` deprecation warnings
README.textile README: Fix alignment
Rakefile Rakefile: Remove test:server task
usaidwat.gemspec

README.textile

usaidwat

Are you a Redditor? Do you use Ruby? Do you want to view the subreddits in which a particular user commonly posts? If you answered “yes” to all three of these questions, then usaidwat is the gem for you!

Installation

usaidwat can be installed via RubyGems:

$ gem install usaidwat

Usage

A usaidwat binary is installed with the gem. usaidwat will analyze a user’s last 100 comments and provide statistics.

To list a Redditor’s comments, simply plug in a username:

$ usaidwat jedberg

To list a count of subreddits in which a user has posted, pass the -t flag:

$ usaidwat -t jedberg

You will see output like the following:

AskReddit              7
blog                  26
Frugal                 3
Random_Acts_Of_Pizza  11
TheoryOfReddit         3
apple                  1
comics                 1
entertainment          4
fffffffuuuuuuuuuuuu    2
funny                 15
geek                   1
movies                 1
pics                   1
politics               4
programming            1
sex                    1
space                  1
technology             2
unitedkingdom         12
videos                 1
wikipedia              2

Which indicates that jedberg has commented in /r/funny 15 times (out of his last 100 comments).

To see the comments for a specific subreddit, tack on that subreddit:

$ usaidwat jedberg funny

All the comments for the given subreddit will be printed.

Testing

Test suites can be run with RSpec and Cucumber.

Something went wrong with that request. Please try again.