This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function() { | |
| var Observable, Queue, Worker, eyes, util, _; | |
| var __hasProp = Object.prototype.hasOwnProperty, __extends = function(child, parent) { | |
| for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } | |
| function ctor() { this.constructor = child; } | |
| ctor.prototype = parent.prototype; | |
| child.prototype = new ctor; | |
| child.__super__ = parent.prototype; | |
| return child; | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function() { | |
| var Observable, Queue, Worker, eyes, util, _; | |
| var __hasProp = Object.prototype.hasOwnProperty, __extends = function(child, parent) { | |
| for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } | |
| function ctor() { this.constructor = child; } | |
| ctor.prototype = parent.prototype; | |
| child.prototype = new ctor; | |
| child.__super__ = parent.prototype; | |
| return child; | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # author: jonathan soeder | |
| # copyright: jonathan soeder 2011 | |
| # | |
| # the Queue class subscribes to a redis channel waiting for jobs to process | |
| # the Queue creates X number of workers of a specified class | |
| # which shift messages off of the queue and process it | |
| # publishing the results to another channel | |
| _ = global._ or require("underscore")._ | |
| util = require "util" | |
| eyes = require "eyes" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function() { | |
| var Observable, Queue, Worker, util, _; | |
| var __hasProp = Object.prototype.hasOwnProperty, __extends = function(child, parent) { | |
| for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } | |
| function ctor() { this.constructor = child; } | |
| ctor.prototype = parent.prototype; | |
| child.prototype = new ctor; | |
| child.__super__ = parent.prototype; | |
| return child; | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # author: jonathan soeder | |
| # copyright: jonathan soeder 2011 | |
| # | |
| # the Queue class subscribes to a redis channel waiting for jobs to process | |
| # the Queue creates X number of workers of a specified class | |
| # which shift messages off of the queue and process it | |
| # publishing the results to another channel | |
| _ = global._ or require("underscore")._ | |
| util = require "util" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'spec_helper' | |
| describe ReadingsController do | |
| include Devise::TestHelpers | |
| before(:all) do | |
| sandbox = WMX::Sandbox.new | |
| @receipt = Factory.create :receipt | |
| @user = @receipt.user | |
| @section = sandbox.create_section_with_readings(1, :content_package => @receipt.content_package) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'wmx/sandbox' | |
| require 'wmx/client/request' | |
| require 'json' | |
| Given /an API client exists/ do | |
| @api_client = WMX::Sandbox.new.create_client | |
| @api_user = @api_client.user | |
| @api_content_package = @api_client.content_package | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo apt-get -y install git-core build-essential | |
| sudo apt-get -y install php5 libapache2-mod-php5 | |
| sudo apt-get -y install apache2 | |
| sudo apt-get -y install php5-mysql php5-curl php5-gd php5-idn php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-mhash php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl php5-json | |
| sudo apt-get -y install zlib1g-dev libssl-dev libreadline5-dev libxml2-dev libsqlite3-dev | |
| sudo apt-get -y install ruby rubygems | |
| sudo apt-get -y install libmysqlclient-dev |