ejdraper / chameleon Goto Github PK
View Code? Open in Web Editor NEWRails engine to let you easily build Geckoboard widgets.
License: MIT License
Rails engine to let you easily build Geckoboard widgets.
License: MIT License
By possibly determining format from URI widget_name.json?key=blah
and having XML as default.
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.
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.
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.
Chameleon uses "match" when routing, which has been removed from rails4.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.