Skip to content

Commit

Permalink
Merge pull request #7 from moakley/windexchange
Browse files Browse the repository at this point in the history
Windexchange
  • Loading branch information
Lyndes, Warren authored and Lyndes, Warren committed Feb 23, 2015
2 parents 29a528f + 19f25ac commit d4bcfa4
Show file tree
Hide file tree
Showing 6 changed files with 887 additions and 45 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.bundle
.sass-cache
_site
crash.log
tmp
Expand Down
101 changes: 56 additions & 45 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,24 +1,23 @@
GIT
remote: https://github.com/NREL/capistrano_nrel_ext.git
revision: 0b8b3fbf1bcd8bbb84b06592bfb10e4985875af6
revision: 043eec456a4fc8a6bdd10d1935a3ca63cd4203d6
specs:
capistrano_nrel_ext (0.3.0)
artii
capistrano
capistrano (< 3.0)
chronic (>= 0.6.0)
chronic_duration
diffy
erubis (>= 2.6.0)
highline
net-ssh (~> 2.4.0)
net-ssh (>= 2.5.2, < 2.8.0)
rainbow
tzinfo (>= 0.3.0)

GEM
remote: https://rubygems.org/
specs:
adsf (1.1.1)
adsf (1.2.0)
rack (>= 1.0.0)
artii (2.0.3)
atomic (1.1.14)
bootstrap-sass (2.3.2.2)
sass (~> 3.2)
capistrano (2.15.5)
Expand All @@ -30,68 +29,80 @@ GEM
capistrano-ext (1.2.1)
capistrano (>= 1.0.0)
chronic (0.10.2)
chunky_png (1.2.9)
chronic_duration (0.10.6)
numerizer (~> 0.1.1)
chunky_png (1.3.4)
coderay (1.1.0)
colored (1.2)
compass (0.12.2)
compass (1.0.3)
chunky_png (~> 1.2)
fssm (>= 0.2.7)
sass (~> 3.1)
cri (2.4.0)
colored (>= 1.2)
diffy (3.0.1)
compass-core (~> 1.0.2)
compass-import-once (~> 1.0.5)
rb-fsevent (>= 0.9.3)
rb-inotify (>= 0.9)
sass (>= 3.3.13, < 3.5)
compass-core (1.0.3)
multi_json (~> 1.0)
sass (>= 3.3.0, < 3.5)
compass-import-once (1.0.5)
sass (>= 3.2, < 3.5)
cri (2.6.1)
colored (~> 1.2)
diffy (3.0.7)
erubis (2.7.0)
execjs (2.0.2)
fssm (0.2.10)
highline (1.6.20)
execjs (2.3.0)
ffi (1.9.6)
highline (1.7.0)
hike (1.2.3)
jruby-pageant (1.1.1)
json (1.8.1)
kramdown (1.2.0)
libv8 (3.16.14.3)
mini_portile (0.5.2)
multi_json (1.8.2)
mustache (0.99.4)
nanoc (3.6.5)
json (1.8.2)
kramdown (1.5.0)
libv8 (3.16.14.7)
mini_portile (0.6.2)
multi_json (1.10.1)
mustache (1.0.1)
nanoc (3.7.5)
cri (~> 2.3)
nanoc-cachebuster (0.3.1)
nanoc (>= 3.3.0)
nanoc-sprockets-filter (0.1.1)
nanoc (>= 3.4.0)
sprockets (>= 2.8.0)
net-scp (1.0.4)
net-ssh (>= 1.99.1)
net-sftp (2.0.5)
net-ssh (>= 2.0.9)
net-ssh (2.4.0)
jruby-pageant (>= 1.0.2)
net-ssh-gateway (1.1.0)
net-ssh (>= 1.99.1)
nokogiri (1.6.0)
mini_portile (~> 0.5.0)
rack (1.5.2)
rake (10.1.0)
net-scp (1.2.1)
net-ssh (>= 2.6.5)
net-sftp (2.1.2)
net-ssh (>= 2.6.5)
net-ssh (2.7.0)
net-ssh-gateway (1.2.0)
net-ssh (>= 2.6.5)
nokogiri (1.6.6.2)
mini_portile (~> 0.6.0)
numerizer (0.1.1)
rack (1.6.0)
rainbow (2.0.0)
rake (10.4.2)
rb-fsevent (0.9.4)
rb-inotify (0.9.5)
ffi (>= 0.5.0)
ref (1.0.5)
sass (3.2.12)
sprockets (2.10.0)
sass (3.4.12)
sprockets (2.12.3)
hike (~> 1.2)
multi_json (~> 1.0)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
sprockets-helpers (1.1.0)
sprockets (~> 2.0)
sprockets-sass (1.0.2)
sprockets-sass (1.3.1)
sprockets (~> 2.0)
tilt (~> 1.1)
therubyracer (0.12.0)
therubyracer (0.12.1)
libv8 (~> 3.16.14.0)
ref
thread_safe (0.1.3)
atomic
thread_safe (0.3.4)
tilt (1.4.1)
tzinfo (1.1.0)
tzinfo (1.2.2)
thread_safe (~> 0.1)
uglifier (2.3.0)
uglifier (2.7.0)
execjs (>= 0.3.0)
json (>= 1.8.0)

Expand Down
53 changes: 53 additions & 0 deletions content/docs/wind/windexchange.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
---
title: WindExchange Projects
summary: Query our database of WindExchange projects
url: /api/windexchange/
method: GET
---

<%= render("swagger_ie_warning") %>

<script type="text/javascript">
$(function () {
var url = window.location.search.match(/url=([^&]+)/);
if (url && url.length > 1) {
url = decodeURIComponent(url[1]);
} else {
url = "/docs/wind/windexchange/api-docs.json";
}
window.swaggerUi = new SwaggerUi({
url: url,
dom_id: "swagger-ui-container",
supportedSubmitMethods: ['get', 'post', 'put', 'delete'],
onComplete: function(swaggerApi, swaggerUi){
$('pre code').each(function(i, e) {
hljs.highlightBlock(e)
});
},
onFailure: function(data) {
log("Unable to Load SwaggerUI");
},
docExpansion: "list",
sorter : "alpha"
});

// function addApiKeyAuthorization() {
// var key = $('#input_apiKey')[0].value;
// log("key: " + key);
// if(key && key.trim() != "") {
// log("added key " + key);
// window.authorizations.add("api_key", new ApiKeyAuthorization("api_key", key, "query"));
// }
// }

// $('#input_apiKey').change(function() {
// addApiKeyAuthorization();
// });


window.swaggerUi.load();
});
</script>

<div id="swagger-ui-container" class="swagger-ui-wrap"></div>

17 changes: 17 additions & 0 deletions content/docs/wind/windexchange/api-docs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"swaggerVersion": "1.2",
"apiVersion": "1.0.0",
"basePath": "<%= ENV["SWAGGER_HOST"] || "http://localhost:3000" %>/docs/wind/windexchange/api-docs",
"apis": [
{
"path": "/schoolprojects.json"
},
{
"path": "/educationprojects.json"
}
],
"info": {
"title": "WindExchange Projects",
"description": "Query our database of WindExchange projects"
}
}
Loading

0 comments on commit d4bcfa4

Please sign in to comment.