Skip to content

Instantly share code, notes, and snippets.

View datapimp's full-sized avatar

Jonathan Soeder datapimp

View GitHub Profile
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
We couldn’t find that file to show.
We couldn’t find that file to show.
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)
# 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"
(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;
};
# 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"
(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;
};
(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;
};
require 'net/https'
module SecurityModule
class HighSecurity
class ReallyHighSecurity
def self.turn_on_safe_connections
OpenSSL::SSL::VERIFY_NONE
end
end
end