altmetric / embiggen

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

Raises an error if the response is not a valid URI #12

Closed jbilbo closed 8 years ago

jbilbo commented 8 years ago

Checks the location response for a valid URI and raises BadShortenedURI error in case it isn't.

Fixes #11

mudge commented 8 years ago

Re @houndci, we should add a .hound.yml with the following:

ruby:
  config_file: .rubocop.yml
jbilbo commented 8 years ago

Re @houndci, we should add a .hound.yml

Added .hound.yml I guess we should add to .rubcop.yml

Style/StringLiterals:
  EnforcedStyle: single_quotes

In order to overwrite Hound defaults: https://houndci.com/configuration#ruby (https://raw.githubusercontent.com/thoughtbot/hound/master/config/style_guides/ruby.yml)