Coder Social home page Coder Social logo

chameleon's People

Contributors

armstrjare avatar ejdraper avatar jgoggles avatar lenidot avatar patrickod 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

Watchers

 avatar  avatar  avatar  avatar

chameleon's Issues

JSON Support

By possibly determining format from URI widget_name.json?key=blah and having XML as default.

Errors returned to geckoboard are always 500 errors

When an error is raised in the chameleon controller, raise is used with a string, which never gets caught and leads to a 500 error and (by default) rails will return a html error page of some sort, which geckoboard cannot understand. Geckoboard then shows the user the error "Sorry, server error", which makes it difficult to know what has gone wrong.

In the geckoboard documentation it's possible to return an xml document on 403, 404 and 500 errors, that looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<root>
    <error>Access denied.</error>
</root>

Which (I believe) geckoboard can understand and give a human-readable answer to the end user, when combined with the appropriate status code.

API key passed by HTTP basic auth not checked

When adding a custom widget on the geckoboard website, there is an API key field in the form. According to the geckoboard developer docs this is passed via HTTP basic auth as the username. However, chameleon only checks params[:key] (or params[key_parameter]) for the key, meaning that to use chameleon you have to do a workaround of using a GET request and entering the key as a query string parameter.

geckoboard custom widget form

Ideally chameleon should support both methods. It wouldn't be hard to check the HTTP basic auth by using authenticate_or_request_with_http_basic from the controller.

Rails 4 Support

Chameleon uses "match" when routing, which has been removed from rails4.

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.