Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/audy/memelicious
Parser of internet memes
https://github.com/audy/memelicious
parser
Last synced: about 1 month ago
JSON representation
Parser of internet memes
- Host: GitHub
- URL: https://github.com/audy/memelicious
- Owner: audy
- License: mit
- Created: 2011-10-16T04:23:18.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2015-06-08T21:47:41.000Z (over 9 years ago)
- Last Synced: 2024-10-09T20:24:15.833Z (about 1 month ago)
- Topics: parser
- Language: Ruby
- Homepage:
- Size: 230 KB
- Stars: 18
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
# Memelicious
[![Build
Status](https://travis-ci.org/audy/memelicious.svg?branch=master)](https://travis-ci.org/audy/memelicious)Identify and parse internet "memes" in Ruby. The Ruby gem formely known as
memetron (I had to change the name because some meanie stole the gem on
RubyGems.org).## Installation
`gem install memelicious`
or add to your `Gemfile`:
```ruby
gem 'memelicious'
```## How
```ruby
require 'memelicious'Memelicious::Matcher.match('A wild Ruby library appears')
# => [Memelicious::Pokemon, 'Ruby Library']
```## Define memes using the DSL
```ruby
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