I hereby claim:
- I am suweller on github.
- I am suweller (https://keybase.io/suweller) on keybase.
- I have a public key whose fingerprint is A0A2 7C72 616A 1DCB DA01 1E33 B373 EBDA 3CD8 CADC
To claim this, I am signing this object:
| # Work around for brew | |
| # https://console.workbrew.com/documentation/troubleshooting#how-do-i-fix-my-code-zsh-code-completions | |
| # | |
| # - Attempts to only intercept breaking brew invocations | |
| # - Uses sudo to claim homebrew files to current user | |
| # - Uses sudo to lend homebrew files to workbrew user | |
| # - Uses NerdFont icons to dress up the prompts | |
| local workbrew_bleed=( | |
| /opt/homebrew/share/zsh |
I hereby claim:
To claim this, I am signing this object:
| RSpec::Matchers.define :inherit_from do |superclass| | |
| match do |klass| | |
| klass.class.ancestors.include? superclass | |
| end | |
| failure_message_for_should do |klass| | |
| "expected #{klass.class.name} to inherit from #{superclass}" | |
| end | |
| failure_message_for_should_not do |klass| |
| class window.DataToggle | |
| get: (str) -> | |
| $("##{str}") | |
| ids: (type, e) -> | |
| $(e).attr("data-#{type}").split(' ') | |
| constructor: -> | |
| _self = @ | |
| _self.data_show(_self, $(e).parent()) for e in $('[data-show]') | |
| _self.data_hide(_self, $(e).parent()) for e in $('[data-hide]') |
| module I18n | |
| class SuicidalMissingTranslationData < RuntimeError; end | |
| class << self | |
| def translate_with_suicidal_exceptions(*args) | |
| translate_without_suicidal_exceptions(*args) | |
| rescue I18n::MissingTranslationData => e | |
| if %w(test cucumber).include? ENV['RAILS_ENV'] | |
| raise I18n::SuicidalMissingTranslationData, e | |
| elsif %(staging production).include? ENV['RAILS_ENV'] |
| module ActionView | |
| module Helpers | |
| module TranslationHelper | |
| # Override translate method to consider translate_scope. | |
| def translate(key, options = {}) | |
| I18n.translate(key, {:raise => I18n.raise_on_missing, :scope => (translate_scope.dup << options.delete(:add_scope)).compact}.merge(options)) | |
| end | |
| alias :t :translate | |
| # Append scopes to the current translation scope. |