Giter Site home page Giter Site logo

badfruit's People

Contributors

brianmichel avatar brookemckim avatar egtann avatar johncolvin avatar neiled avatar rcuyegkeng avatar royalts avatar shaungehring avatar tacomanator avatar tagrudev 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

badfruit's Issues

No Documentation For Gem

There is currently no documentation for this gem. I'd love for there to be an RDOC or something that people could read through to get more info.

film genre and alternate_ids not working properly

For a project of mine I need the genres and the IMDB ID associated with movies. The API returns both, but bf.movies.search_by_name("Hackers")[0].genres just returns nil and bf.movies.search_by_name("Hackers")[0].alternate_ids throws a NoMethodError.

BadFruit should throw an error when the rate limits are hit

One more suggestion: It would be great if BadFruit threw a proper error when one of the rate limits is hit. As it is now, once you make more than 10,000 requests to the API per day BadFruit just throws a TypeError because the JSON parser can't deal with the near-empty response body:

{
    "error": "Account Over Rate Limit"
}

It would be great if BadFruit detected this event, either by checking for a 403 Error or by actually looking at the response header, which looks like this, when the above TypeError occurs:

{
    "accept-ranges": "bytes",
    "content-type": "application/json",
    "date": "Fri, 16 Mar 2012 14:16:54 GMT",
    "retry-after": "35984",
    "server": "Mashery Proxy",
    "x-mashery-error-code": "ERR_403_DEVELOPER_OVER_RATE",
    "x-mashery-responder": "proxylb-p-us-east-1d-07.mashery.com",
    "content-length": "35",
    "connection": "Close"
}

BadFruit::Movie.info triggers API call

After using BadFruit for a bit, it seems that every call to BadFruit::Movie.info triggers an entirely new request to the API. Needless to say, this causes an enormous amount of unnecessary traffic. It seems to me that if you stored the raw JSON output in the object, then this could be entirely avoided.

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.