RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Submit a post

You can use basic HTML markup (e.g. <a>) or Markdown.
Note that your post may be edited to suit the format of the site.

As you are not logged in, you will be
directed via GitHub to signup or sign in

Post Preview

Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.

Integration tests vs. Bogus

Bogus verifies that you only stub real method calls. There must be a context in which the stubbed method acts the way you stubbed it, or Bogus will fail your tests. Therefore Bogus checks the contract between mocked components – something that you would usually use integration tests for. [more inside]

Actually good content detection with LanguageFilter

I just created the language_filter gem, which detects and optionally filters multiple categories of language. I’ve seen a few gems that already try to offer this - most notably tjackiw’s obscenity and intridea’s profanity_filter. This gem is based on the former, but is completely refactored and offers many improvements, including the creation multiple, independent filters; simpler configuration; a diverse and growing set of pre-packaged matchlists (for not only profanity, but also sexual, violent, and hateful content); more robust whitelist handling; and much more.

Loading older posts