I hereby claim:
- I am martinstreicher on github.
- I am martinstreicher (https://keybase.io/martinstreicher) on keybase.
- I have a public key ASA48hi-YA9SlOV7DlZt_vEOvMW9jzLyOLqNCC0w2qta_go
To claim this, I am signing this object:
# frozen_string_literal: true | |
# | |
# Example usage: | |
# result = Gizmo.call(**params) | |
# result.success? ? succeed_path : failure_path | |
# This service class: | |
# Is based on the Interactor gem | |
# * Validates its parameters using ActiveRecord pieces |
# frozen_string_literal: true | |
require "net/http" | |
module Client | |
RequestError = Class.new(StandardError) | |
class Request | |
DEFAULT_HOSTNAME = "localhost" | |
DEFAULT_PORT = 80 |
I hereby claim:
To claim this, I am signing this object:
# | |
# Setup | |
export MYSQL_DIR="$HOME/mysql-5.7" | |
export MYSQL_PORT="3307" | |
export MYSQL_SOCKET="$MYSQL_DIR/socket/mysqld.sock" | |
export PATH="$MYSQL_DIR/bin:$PATH" | |
export RAILS_ENV=test | |
\curl -sSL https://raw.githubusercontent.com/codeship/scripts/master/packages/mysql-5.7.sh | bash -s | |
# If `.ruby-version` file is present, RVM will set Ruby to the declared version. | |
if [ -f .ruby-version ]; then rvm use $(cat .ruby-version) --install; fi |
module Middleware | |
SquelchedException = Class.new Exception | |
class SidekiqExceptionHandler | |
def call(worker, job, queue) | |
yield | |
rescue Exception => exception | |
notify exception, job, ignore: ignore_exception?(exception) | |
raise SquelchedException | |
end |
define([ | |
'mapbox-gl-supported' | |
], function( | |
isMapboxGlSupported | |
) { | |
// the function that will load the map code and initialize | |
// the map, or if the map code has been loaded, just | |
// initialize the map. | |
var loadAndInitMap; |
class Device < ActiveRecord::Base | |
belongs_to :participant | |
validates :participant, presence: true | |
validates :provider, presence: true | |
validates :serial_number, presence: true, uniqueness: { scope: :provider } | |
validates :serial_number, format: { with: /\A\d{15}\z/, message: 'IMEI must be 15 digits'}, | |
if: lambda { |d| d.provider == 'bodytrace' } | |
before_validation :normalize |
[webmock] Handling request: [get https://maps.google.com/maps/api/geocode/json?address=613%20Wolf%20Crescent,Lake%20Mandychester,New%20Hampshire&sensor=false] (disabled: false) | |
[webmock] Identified request type (recordable) for [get https://maps.google.com/maps/api/geocode/json?address=613%20Wolf%20Crescent,Lake%20Mandychester,New%20Hampshire&sensor=false] | |
[webmock] Handling request: [get https://maps.google.com/maps/api/geocode/json?address=9341%20Wiegand%20Gardens,Wavabury,New%20York&sensor=false] (disabled: false) | |
[webmock] Identified request type (recordable) for [get https://maps.google.com/maps/api/geocode/json?address=9341%20Wiegand%20Gardens,Wavabury,New%20York&sensor=false] | |
[Cassette: 'cms/sms_08'] Initialized with options: {:record=>:once, :match_requests_on=>[:uri, :method], :allow_unused_http_interactions=>true, :serialize_with=>:yaml, :persist_with=>:file_system, :allow_playback_repeats=>false} | |
[webmock] Handling request: [get https://maps.google.com/maps/api/geocode/json?address=469%20Bill%20Tra |
Colossal:emerald strike$ rvm install jruby-9.0.0.0.pre2 --disable-binary | |
jruby-9.0.0.0.pre2 - #removing src/jruby-9.0.0.0.pre2.. | |
Checking requirements for osx. | |
Requirements installation successful. | |
$JAVA_HOME was empty, setting up JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home, if it fails try setting JAVA_HOME to something sane and try again. | |
HEAD is now at cb96d72 Bump for version | |
Previous HEAD position was cb96d72... Bump for version | |
Switched to branch 'master' | |
Your branch is up-to-date with 'origin/master'. | |
From git://github.com/jruby/jruby |
{"formulary_id"=>"F05421", "custom_value"=>"Lantus Solostar subcutaneous PreferredRx Peanuts"}, {"formulary_id"=>"F05422", "custom_value"=>"Lantus Solostar subcutaneous SuperRx Peanuts"}], "step1_brand_name"=>"Lantus Solostar subcutaneous", "step1_generic_name"=>"Lantus Solostar subcutaneous", "epdrug"=>{"epdrug_id"=>"9", "formulary_ids_arry"=>["F05421", "F05422"], "med_ids_arry"=>[551714], "step2"=>"Peanuts", "custom_msg_hash"=>[{"formulary_id"=>"F05421", "custom_value"=>"Lantus Solostar subcutaneous PreferredRx Peanuts"}, {"formulary_id"=>"F05422", "custom_value"=>"Lantus Solostar subcutaneous SuperRx Peanuts"}], "step1_brand_name"=>"Lantus Solostar subcutaneous", "step1_generic_name"=>"Lantus Solostar subcutaneous"}} |