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
| 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
| # 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
| (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" | |
| 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, 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
| require 'net/https' | |
| module SecurityModule | |
| class HighSecurity | |
| class ReallyHighSecurity | |
| def self.turn_on_safe_connections | |
| OpenSSL::SSL::VERIFY_NONE | |
| end | |
| end | |
| end |