Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Library for defining, matching and parsing internet "memes"
Ruby
branch: master

boop

latest commit c21768e679
@audy authored
Failed to load latest commit information.
lib removed version.rb
spec changed name
.gitignore added *.gem for #9
.rspec removed nyancatformatter
.ruby-version added .ruby-version for development
.travis.yml added .travis.yml
Gemfile removed jeweler, closes #7
license.md added license
memetron.gemspec updated memetron gemspec
readme.md boop

readme.md

Memelicious

Build
Status

Identify and parse internet "memes" in Ruby.

Installation

gem install memelicious

or add to your Gemfile:

gem 'memelicious'

How

require 'memelicious'

Memelicious::Matcher.match('A wild Ruby library appears')
# => [Memelicious::Pokemon, 'Ruby Library']

Define memes using the DSL

module Memelicious
  class SeanBean < Meme
    # define meme as a regular expression
    matcher /Prepare yourself,? (.*) are coming/i

    # provide some test cases
    should_match "prepare yourself, the automatically generated memes are coming"
    and_return "the automatically generated memes"

    should_not_match "this isn't an example of the Sean Bean meme"
  end
end

Contributing Memes

Submit a pull request with your meme and at least one positive example.

Plz test thusly: bundle exec rspec.

Why?

For the lulz.

boop

Something went wrong with that request. Please try again.