I hereby claim:
- I am aflatter on github.
- I am aflatter (https://keybase.io/aflatter) on keybase.
- I have a public key ASBYWX2aLIubpZMajGoWwIjWI0XiIPkqUEU2Dq8eAuZdxQo
To claim this, I am signing this object:
| require 'bundler' | |
| require 'erb' | |
| # Generates a Nix expression for bundler-managed dependencies. | |
| module Bundix | |
| class << self | |
| def run(gemfile = './Gemfile', lockfile = 'Gemfile.lock') | |
| gems = resolve_deps(gemfile, lockfile) | |
| checksums = compute_checksums(gems) | |
| write_expr(gems, checksums) |
| require 'scrypt' | |
| module Virtus | |
| class Attribute | |
| class Password < ::Virtus::Attribute | |
| primitive SCrypt::Password | |
| def coerce(value) | |
| value ? SCrypt::Password.new(value) : nil | |
| rescue SCrypt::Errors::InvalidHash |
| # An empty hash does not result in creating a new instance of the type. | |
| # Required because that's what we get back from the relation. | |
| class OptionalCoercer | |
| def initialize(type) | |
| @type = type | |
| end | |
| def call(value) | |
| return unless value | |
| value.values.any? ? type.new(value) : nil |
I hereby claim:
To claim this, I am signing this object: