View patchtree-1.js
// KeyChain:: Array<mixed>
// Before:: mixed
// After:: Mixed
// Replacements:: Map<Before, After>
// patchTree:: (Map<KeyChain, Replacements>) => Object => Object
View .hyper.js
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// Choose either "stable" for receiving highly polished,
// or "canary" for less polished but more frequent updates
updateChannel: 'stable',
View gist:eb5cf8331abb76371469e7c0d29234d2
[1] pry(main)> module Behavior
[1] pry(main)* extend ActiveSupport::Concern
[1] pry(main)*
[1] pry(main)* included do
[1] pry(main)* add(1)
[1] pry(main)* end
[1] pry(main)*
[1] pry(main)* class_methods do
[1] pry(main)* def add(value)
[1] pry(main)* @value = value
View add_to_cart_operation.rb
# NOTE: Each task is a map function wrapped in a HOC for handling the return data.
# The annotation of each task is `state -> mixed | state | exception` and the HOC is
# `state -> (state -> mixed | exception) -> state`. `error` is like a task, but instead:
# `exception -> mixed` wrapped in a HOC that matches `exception -> (exception -> mixed) -> exception`.
class AddToCartOperation < ApplicationOperation
task :check_for_missing_product
task :carbon_copy_cart_item
task :lock
task :persist
View challenge.rb
require "set"
require "rspec/autorun"
GRAPH = Hash.new { |accumulated, key| accumulated[key] = Set.new}
LIBRARIES = Set.new
def depend(subject, *dependencies)
GRAPH[subject].merge(dependencies)
dependencies.each(&GRAPH.method(:[]))
end
View README.md

smart_params

  • Build
  • Downloads
  • Version

Work smart, not strong. This gem gives developers an easy to understand and easy to maintain schema for request parameters. Meant as a drop-in replacement for strong_params.

View gist:81c70c7c7dbad8cde10dd45543ce046e
SmartParams
returns as json (FAILED - 1)
Failures:
1) SmartParams returns as json
Failure/Error:
expect(
CreateAccountSchema.new({
data: {
View README.md

smart_params

  • Build
  • Downloads
  • Version

Work smart, not strong. This gem gives developers an easy to understand and easy to maintain schema for request parameters. Meant as a drop-in replacement for strong_params.

View reducers.js
export {default as updateInput} from "./updateInput"
export {default as submitAccount} from "./submitAccount"
View a
/usr/local/Cellar/ruby/2.5.0/bin/ruby -I/usr/local/lib/ruby/gems/2.5.0/gems/rspec-core-3.7.1/lib:/usr/local/lib/ruby/gems/2.5.0/gems/rspec-support-3.7.1/lib /usr/local/lib/ruby/gems/2.5.0/gems/rspec-core-3.7.1/exe/rspec --pattern lib/\*\*\{,/\*/\*\*\}/\*_spec.rb
JSONAPI::Realizer::Action::Create
#call
with a good payload and good headers
creates a model (FAILED - 1)
Failures:
1) JSONAPI::Realizer::Action::Create#call with a good payload and good headers creates a model