Giter VIP home page Giter VIP logo

shorturl's Introduction

Photo of Robby Russell

Robby (on Rails) Russell

#WEโ™ฅ๏ธRAILS

Bonjour! My name is Robby (he/him). I'm the CEO of Planet Argon, a company that guides organizations with existing Ruby on Rails applications to help make them better and more maintainable.

Here are a few random details about me:

Get in touch

A Few of my Articles

A Few Podcast Episodes that I've been a guest on

shorturl's People

Contributors

bpaul avatar postmodern avatar robbyrussell avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

shorturl's Issues

shorturl doesn't work with ruby 1.9

There's a case statement in Service#call that uses a syntax that Ruby 1.9 doesn't support:

  response = case @method
             when :post: http.post(@action, "#{@field}=#{CGI.escape(url)}")
             when :get: http.get("#{@action}?#{@field}=#{CGI.escape(url)}")
             end

should be

  response = case @method
             when :post then http.post(@action, "#{@field}=#{CGI.escape(url)}")
             when :get then http.get("#{@action}?#{@field}=#{CGI.escape(url)}")
             end

shorturl no longer works with bit.ly

bit.ly changed their home page. Therefore shorturl's web scraping no longer works.

Switching to the official API seems to be impossible, since an API key or login is required.

Also adopting the scraping approach to their new layout is possible but not that simple. Since they only shorten urls for requests with a valid session cookie, two separate requests would be needed.

RSpec / YARD?

I normally use RSpec and YARD in my projects. Would you be opposed to switching from test-unit to RSpec or RDoc to YARD?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.