diff --git a/Gemfile b/Gemfile index 22d7634..ae4b309 100644 --- a/Gemfile +++ b/Gemfile @@ -1,4 +1,4 @@ -source :rubygems +source 'https://rubygems.org' gem 'sinatra' gem 'faraday' diff --git a/Gemfile.lock b/Gemfile.lock index 0b03431..f7d70e2 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,30 +1,32 @@ GEM - remote: http://rubygems.org/ + remote: https://rubygems.org/ specs: daemons (1.1.9) - eventmachine (1.0.0) - faraday (0.8.4) - multipart-post (~> 1.1) - foreman (0.61.0) - thor (>= 0.13.6) - multipart-post (1.1.5) - newrelic_rpm (3.5.4.34) - rack (1.5.0) - rack-protection (1.3.2) + dotenv (1.0.2) + eventmachine (1.0.7) + faraday (0.9.1) + multipart-post (>= 1.2, < 3) + foreman (0.77.0) + dotenv (~> 1.0.2) + thor (~> 0.19.1) + multipart-post (2.0.0) + newrelic_rpm (3.10.0.279) + rack (1.6.0) + rack-protection (1.5.3) rack - shotgun (0.9) + shotgun (0.9.1) rack (>= 1.0) - sinatra (1.3.3) - rack (~> 1.3, >= 1.3.6) - rack-protection (~> 1.2) - tilt (~> 1.3, >= 1.3.3) - thin (1.5.0) - daemons (>= 1.0.9) - eventmachine (>= 0.12.6) - rack (>= 1.0.0) - thor (0.17.0) - tilt (1.3.3) - xml-simple (1.1.2) + sinatra (1.4.5) + rack (~> 1.4) + rack-protection (~> 1.4) + tilt (~> 1.3, >= 1.3.4) + thin (1.6.3) + daemons (~> 1.0, >= 1.0.9) + eventmachine (~> 1.0) + rack (~> 1.0) + thor (0.19.1) + tilt (1.4.1) + xml-simple (1.1.5) PLATFORMS ruby diff --git a/public/cache.manifest b/public/cache.manifest deleted file mode 100644 index b9f9856..0000000 --- a/public/cache.manifest +++ /dev/null @@ -1,21 +0,0 @@ -CACHE MANIFEST -# rev 8 - -NETWORK: -/ -/now.json -/weekend.json - -CACHE: -images/loader.gif - -fonts/fontawesome.eot -fonts/fontawesome.svg -fonts/fontawesome.ttf -fonts/fontawesome.woff - -stylesheets/main.css - -javascripts/build.js - -javascripts/libs/require.js diff --git a/public/fonts/fontawesome.dev.svg b/public/fonts/fontawesome.dev.svg deleted file mode 100644 index 616f352..0000000 --- a/public/fonts/fontawesome.dev.svg +++ /dev/null @@ -1,17 +0,0 @@ - - - - -This is a custom SVG font generated by IcoMoon. - - - - - - - - - - - - \ No newline at end of file diff --git a/public/fonts/fontawesome.eot b/public/fonts/fontawesome.eot deleted file mode 100644 index c3c6203..0000000 Binary files a/public/fonts/fontawesome.eot and /dev/null differ diff --git a/public/fonts/fontawesome.svg b/public/fonts/fontawesome.svg deleted file mode 100644 index 6cc8dcf..0000000 --- a/public/fonts/fontawesome.svg +++ /dev/null @@ -1,17 +0,0 @@ - - - - -This is a custom SVG font generated by IcoMoon. - - - - - - - - - - - - \ No newline at end of file diff --git a/public/fonts/fontawesome.ttf b/public/fonts/fontawesome.ttf deleted file mode 100644 index 5081210..0000000 Binary files a/public/fonts/fontawesome.ttf and /dev/null differ diff --git a/public/fonts/fontawesome.woff b/public/fonts/fontawesome.woff deleted file mode 100644 index c0cf9d4..0000000 Binary files a/public/fonts/fontawesome.woff and /dev/null differ diff --git a/public/images/apple-touch-icon-114x114.png b/public/images/apple-touch-icon-114x114.png deleted file mode 100644 index 5a3efa5..0000000 Binary files a/public/images/apple-touch-icon-114x114.png and /dev/null differ diff --git a/public/images/apple-touch-icon-57x57.png b/public/images/apple-touch-icon-57x57.png deleted file mode 100644 index 891b5a4..0000000 Binary files a/public/images/apple-touch-icon-57x57.png and /dev/null differ diff --git a/public/images/apple-touch-startup-image-320x460.png b/public/images/apple-touch-startup-image-320x460.png deleted file mode 100644 index fbf2448..0000000 Binary files a/public/images/apple-touch-startup-image-320x460.png and /dev/null differ diff --git a/public/images/apple-touch-startup-image-640x1096.png b/public/images/apple-touch-startup-image-640x1096.png deleted file mode 100644 index d7d9fde..0000000 Binary files a/public/images/apple-touch-startup-image-640x1096.png and /dev/null differ diff --git a/public/images/apple-touch-startup-image-640x920.png b/public/images/apple-touch-startup-image-640x920.png deleted file mode 100644 index 2dcf26d..0000000 Binary files a/public/images/apple-touch-startup-image-640x920.png and /dev/null differ diff --git a/public/images/ios/now.png b/public/images/ios/now.png deleted file mode 100644 index 4e74bfa..0000000 Binary files a/public/images/ios/now.png and /dev/null differ diff --git a/public/images/ios/weekend.png b/public/images/ios/weekend.png deleted file mode 100644 index eb030fe..0000000 Binary files a/public/images/ios/weekend.png and /dev/null differ diff --git a/public/images/loader.gif b/public/images/loader.gif deleted file mode 100644 index ba64930..0000000 Binary files a/public/images/loader.gif and /dev/null differ diff --git a/public/images/loader@2x.gif b/public/images/loader@2x.gif deleted file mode 100644 index e647494..0000000 Binary files a/public/images/loader@2x.gif and /dev/null differ diff --git a/public/images/reload.png b/public/images/reload.png deleted file mode 100644 index a54934e..0000000 Binary files a/public/images/reload.png and /dev/null differ diff --git a/public/javascripts/app.js b/public/javascripts/app.js deleted file mode 100644 index fc60e22..0000000 --- a/public/javascripts/app.js +++ /dev/null @@ -1,23 +0,0 @@ -define(['backbone', - 'mustache', - 'collections/lines', - 'views/chrome', - 'views/main', - 'views/line_list'], -function(Backbone, Mustache, LinesCollection, Chrome, Main, LineList) { - return { - initialize: function() { - - lines = new LinesCollection; - - // initialise chrome. this will render appropriate navbar and tabbar for the platform. - chrome = new Chrome({ collection: lines }); - - main = new Main({ collection: lines }); - lineList = new LineList({ collection: lines }); - //lines.url = lines.urls.now; - - lines.fetch(); - } - }; -}); diff --git a/public/javascripts/build.js b/public/javascripts/build.js deleted file mode 100644 index 0a05fd2..0000000 --- a/public/javascripts/build.js +++ /dev/null @@ -1,20 +0,0 @@ -({ - name: 'main', - out: 'main_compiled.js', - paths: { - zepto: 'libs/zepto.min', - underscore: 'libs/underscore', - backbone: 'libs/backbone', - mustache: 'libs/mustache', - text: 'libs/text' - }, - shim: { - underscore: { - exports: '_' - }, - backbone: { - deps: ["underscore", "zepto"], - exports: "Backbone" - } - } -}) diff --git a/public/javascripts/collections/lines.js b/public/javascripts/collections/lines.js deleted file mode 100644 index d94660d..0000000 --- a/public/javascripts/collections/lines.js +++ /dev/null @@ -1,15 +0,0 @@ -define(['backbone', 'models/line'], function(Backbone, Line) { - - var LinesCollection = Backbone.Collection.extend({ - url: "/now.json", - urls: { - now: "/now.json", - weekend: "/weekend.json" - }, - - model: Line, - }); - - return LinesCollection; - -}); diff --git a/public/javascripts/libs/NavigationBar.js b/public/javascripts/libs/NavigationBar.js deleted file mode 100644 index d5b2b30..0000000 --- a/public/javascripts/libs/NavigationBar.js +++ /dev/null @@ -1,148 +0,0 @@ -function NavigationBar() { - this.leftButtonCallback = null; - this.rightButtonCallback = null; -} - -/** - * Create a navigation bar. - * - * @param style: One of "BlackTransparent", "BlackOpaque", "Black" or "Default". The latter will be used if no style is given. - */ -NavigationBar.prototype.create = function(style, options) -{ - options = options || {}; - if(!("style" in options)) - options.style = style || "Default"; - - cordova.exec("NavigationBar.create", options); -}; - -/** - * Must be called before any other method in order to initialize the plugin. - */ -NavigationBar.prototype.init = function() -{ - cordova.exec("NavigationBar.init"); -}; - -NavigationBar.prototype.resize = function() { - cordova.exec("NavigationBar.resize"); -}; - -/** - * Assign either title or image to the left navigation bar button, and assign the tap callback -*/ -NavigationBar.prototype.setupLeftButton = function(title, image, onselect, options) -{ - this.leftButtonCallback = onselect; - cordova.exec("NavigationBar.setupLeftButton", title || "", image || "", options || {}); -}; - -/** - * @param options: May contain the key "animated" (boolean) - */ -NavigationBar.prototype.hideLeftButton = function(options) -{ - options = options || {} - if(!("animated" in options)) - options.animated = false - - cordova.exec("NavigationBar.hideLeftButton", options) -}; - -NavigationBar.prototype.setLeftButtonTitle = function(title) -{ - cordova.exec("NavigationBar.setLeftButtonTitle", title) -}; - -NavigationBar.prototype.showLeftButton = function(options) -{ - options = options || {} - if(!("animated" in options)) - options.animated = false - - cordova.exec("NavigationBar.showLeftButton", options) -}; - -/** - * Internal function called by the plugin - */ -NavigationBar.prototype.leftButtonTapped = function() -{ - if(typeof(this.leftButtonCallback) === "function") - this.leftButtonCallback() -}; - -/** - * Assign either title or image to the right navigation bar button, and assign the tap callback -*/ -NavigationBar.prototype.setupRightButton = function(title, image, onselect, options) -{ - this.rightButtonCallback = onselect; - cordova.exec("NavigationBar.setupRightButton", title || "", image || "", options || {}); -}; - - -NavigationBar.prototype.hideRightButton = function(options) -{ - options = options || {} - if(!("animated" in options)) - options.animated = false - - cordova.exec("NavigationBar.hideRightButton", options) -}; - -NavigationBar.prototype.setRightButtonTitle = function(title) -{ - cordova.exec("NavigationBar.setRightButtonTitle", title) -}; - -NavigationBar.prototype.showRightButton = function(options) -{ - options = options || {} - if(!("animated" in options)) - options.animated = false - - cordova.exec("NavigationBar.showRightButton", options) -}; - -/** - * Internal function called by the plugin - */ -NavigationBar.prototype.rightButtonTapped = function() -{ - if(typeof(this.rightButtonCallback) === "function") - this.rightButtonCallback() -}; - -NavigationBar.prototype.setTitle = function(title) -{ - cordova.exec("NavigationBar.setTitle", title); -}; - -NavigationBar.prototype.setLogo = function(imageURL) -{ - cordova.exec("NavigationBar.setLogo", imageURL); -}; - -/** - * Shows the navigation bar. Make sure you called create() first. - */ -NavigationBar.prototype.show = function() { - cordova.exec("NavigationBar.show"); -}; - -/** - * Hides the navigation bar. Make sure you called create() first. - */ -NavigationBar.prototype.hide = function() { - - cordova.exec("NavigationBar.hide"); -}; - -cordova.addConstructor(function() -{ - if(!window.plugins) - window.plugins = {} - window.plugins.navigationBar = new NavigationBar() -}); diff --git a/public/javascripts/libs/TabBar.js b/public/javascripts/libs/TabBar.js deleted file mode 100644 index e75e91d..0000000 --- a/public/javascripts/libs/TabBar.js +++ /dev/null @@ -1,158 +0,0 @@ -/* - This code is adapted from the work of: - Created by Michael Nachbaur on 13/04/09. - Copyright 2009 Decaf Ninja Software. All rights reserved. - MIT licensed - - API cleaned up and improved by Andreas Sommer (https://github.com/AndiDog/phonegap-ios-tabbar-plugin). -*/ - -function TabBar() { - this.tag = 0; - this.callbacks = {}; - this.selectedItem = null; -} - -/** - * Create a native tab bar that can have tab buttons added to it which can respond to events. - * - * @param options Additional options: - * - selectedImageTintColorRgba: Tint color for selected items (defaults to standard light blue), must define the - * color as string e.g. '255,0,0,128' for 50% transparent red. This is only supported on iOS 5 or newer. - * - tintColorRgba: Tint color for the bar itself (value as above) - */ -TabBar.prototype.create = function(options) { - cordova.exec("TabBar.create", options || {}); -}; - -/** - * Create a new tab bar item for use on a previously created tab bar. Use ::showTabBarItems to show the new item on the tab bar. - * - * If the supplied image name is one of the labels listed below, then this method will construct a tab button - * using the standard system buttons. Note that if you use one of the system images, that the \c title you supply will be ignored. - * - * Tab Buttons - * - tabButton:More - * - tabButton:Favorites - * - tabButton:Featured - * - tabButton:TopRated - * - tabButton:Recents - * - tabButton:Contacts - * - tabButton:History - * - tabButton:Bookmarks - * - tabButton:Search - * - tabButton:Downloads - * - tabButton:MostRecent - * - tabButton:MostViewed - * @param {String} name internal name to refer to this tab by - * @param {String} [title] title text to show on the tab, or null if no text should be shown - * @param {String} [image] image filename or internal identifier to show, or null if now image should be shown - * @param {Object} [options] Options for customizing the individual tab item - * - \c badge value to display in the optional circular badge on the item; if null or unspecified, the badge will be hidden - */ -TabBar.prototype.createItem = function(name, label, image, options) { - - var tag = this.tag++; - if (options && 'onSelect' in options && typeof(options['onSelect']) == 'function') { - this.callbacks[tag] = {'onSelect':options.onSelect,'name':name}; - //delete options.onSelect; - } - - cordova.exec("TabBar.createItem", name, label, image, tag, options); -}; - -/** - * Function to detect currently selected tab bar item - * @see createItem - * @see showItems - */ -TabBar.prototype.getSelectedItem = function() { - return this.selectedItem; -}; - -/** - * Hide a tab bar. The tab bar has to be created first. - */ -TabBar.prototype.hide = function(animate) { - if (animate === undefined || animate === null) - animate = true; - cordova.exec("TabBar.hide", {animate: animate}); -}; - -/** - * Must be called before any other method in order to initialize the plugin. - */ -TabBar.prototype.init = function() -{ - cordova.exec("TabBar.init"); -}; - -/** - * Internal function called when a tab bar item has been selected. - * @param {Number} tag the tag number for the item that has been selected - */ -TabBar.prototype.onItemSelected = function(tag) -{ - this.selectedItem = tag; - if (typeof(this.callbacks[tag].onSelect) == 'function') - this.callbacks[tag].onSelect(this.callbacks[tag].name); -}; - -TabBar.prototype.resize = function() { - cordova.exec("TabBar.resize"); -}; - -/** - * Manually select an individual tab bar item, or nil for deselecting a currently selected tab bar item. - * @param {String} tabName the name of the tab to select, or null if all tabs should be deselected - * @see createItem - * @see showItems - */ -TabBar.prototype.selectItem = function(tab) { - cordova.exec("TabBar.selectItem", tab); -}; - -/** - * Show a tab bar. The tab bar has to be created first. - * @param {Object} [options] Options indicating how the tab bar should be shown: - * - \c height integer indicating the height of the tab bar (default: \c 49) - * - \c position specifies whether the tab bar will be placed at the \c top or \c bottom of the screen (default: \c bottom) - */ -TabBar.prototype.show = function(options) { - cordova.exec("TabBar.show", options || {}); -}; - -/** - * Show previously created items on the tab bar - * @param {String} arguments... the item names to be shown - * @param {Object} [options] dictionary of options, notable options including: - * - \c animate indicates that the items should animate onto the tab bar - * @see createItem - * @see create - */ -TabBar.prototype.showItems = function() { - var parameters = [ "TabBar.showItems" ]; - for (var i = 0; i < arguments.length; i++) { - parameters.push(arguments[i]); - } - cordova.exec.apply(this, parameters); -}; - -/** - * Update an existing tab bar item to change its badge value. - * @param {String} name internal name used to represent this item when it was created - * @param {Object} options Options for customizing the individual tab item - * - \c badge value to display in the optional circular badge on the item; if null or unspecified, the badge will be hidden - */ -TabBar.prototype.updateItem = function(name, options) { - if (!options) options = {}; - cordova.exec("TabBar.updateItem", name, options); -}; - -cordova.addConstructor(function() -{ - if(!window.plugins) - window.plugins = {}; - - window.plugins.tabBar = new TabBar(); -}); diff --git a/public/javascripts/libs/backbone.js b/public/javascripts/libs/backbone.js deleted file mode 100644 index d4b0314..0000000 --- a/public/javascripts/libs/backbone.js +++ /dev/null @@ -1,42 +0,0 @@ -// Backbone.js 0.9.10 - -// (c) 2010-2012 Jeremy Ashkenas, DocumentCloud Inc. -// Backbone may be freely distributed under the MIT license. -// For all details and documentation: -// http://backbonejs.org -(function(){var n=this,B=n.Backbone,h=[],C=h.push,u=h.slice,D=h.splice,g;g="undefined"!==typeof exports?exports:n.Backbone={};g.VERSION="0.9.10";var f=n._;!f&&"undefined"!==typeof require&&(f=require("underscore"));g.$=n.jQuery||n.Zepto||n.ender;g.noConflict=function(){n.Backbone=B;return this};g.emulateHTTP=!1;g.emulateJSON=!1;var v=/\s+/,q=function(a,b,c,d){if(!c)return!0;if("object"===typeof c)for(var e in c)a[b].apply(a,[e,c[e]].concat(d));else if(v.test(c)){c=c.split(v);e=0;for(var f=c.length;e< -f;e++)a[b].apply(a,[c[e]].concat(d))}else return!0},w=function(a,b){var c,d=-1,e=a.length;switch(b.length){case 0:for(;++d=b);this.root=("/"+this.root+"/").replace(I,"/");b&&this._wantsHashChange&&(this.iframe=g.$('