altmetric / embiggen

A Ruby library to expand shortened URLs
https://rubygems.org/gems/embiggen
MIT License
124 stars 6 forks source link

Simplify shorteners API to only include? #13

Closed mudge closed 8 years ago

mudge commented 8 years ago

GitHub: #2

Allow users to supply their own object for Embiggen::Configuration.shorteners that only responds to include? to determine whether a URI is shortened or not.

This replaces the current Set implementation with a ShortenerList class that has the same API (to keep testing simple) but exposes a custom include? method.