Skip to content

Instantly share code, notes, and snippets.

View jwaldrip's full-sized avatar
:octocat:

Jason Waldrip jwaldrip

:octocat:
View GitHub Profile
@jwaldrip
jwaldrip / output.log
Last active February 8, 2018 19:43
Fastlane Output
INFO [2018-02-08 12:34:11.52]: ▸ ❌ Code Signing Error: "assessmentmobile" requires a provisioning profile. Select a provisioning profile for the "Release" build configuration in the project editor.
INFO [2018-02-08 12:34:11.58]: ▸ ** ARCHIVE FAILED **
INFO [2018-02-08 12:34:11.58]: ▸ The following build commands failed:
INFO [2018-02-08 12:34:11.58]: ▸ Check dependencies
INFO [2018-02-08 12:34:11.58]: ▸ (1 failure)
ERROR [2018-02-08 12:34:11.60]: Exit status: 65
INFO [2018-02-08 12:34:11.67]: ▸ === BUILD TARGET assessmentmobile OF PROJECT assessmentmobile WITH CONFIGURATION Release ===
INFO [2018-02-08 12:34:11.67]: ▸ Check dependencies
INFO [2018-02-08 12:34:11.67]: ▸ Code Signing Error: "assessmentmobile" requires a provisioning profile. Select a provisioning profile for the "Release" build configuration in the project editor.
INFO [2018-02-08 12:34:11.67]: ▸ Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 11.2'
@jwaldrip
jwaldrip / Bundle React Native code and images.log
Created February 5, 2018 22:49
Output of Bundle React Native code and images
PhaseScriptExecution Bundle\ React\ Native\ code\ and\ images /Users/jwaldrip/Library/Developer/Xcode/DerivedData/assessmentmobile-gclzpoieihtsafcgyabjumbcfreu/Build/Intermediates.noindex/assessmentmobile.build/Release-iphonesimulator/assessmentmobile.build/Script-00DD1BFF1BD5951E006B06BC.sh
cd /Users/jwaldrip/dev/src/github.com/commercialtribe/assessment-mobile/ios
export ACTION=build
export AD_HOC_CODE_SIGNING_ALLOWED=YES
export ALTERNATE_GROUP=staff
export ALTERNATE_MODE=u+w,go-w,a+rX
export ALTERNATE_OWNER=jwaldrip
export ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES=NO
export ALWAYS_SEARCH_USER_PATHS=NO
export ALWAYS_USE_SEPARATE_HEADERMAPS=NO
def self.reserved_value?(value, checks = 0)
return true if YAML::RESERVED_VALUES.includes?(value)
just_value = value.ljust(5, 'x')
case {just_value[0], just_value[1], just_value[2], just_value[3], just_value[4]}
when {.ascii_number?, .ascii_number?, .ascii_number?, .ascii_number?, '-'}
(Time::Format::ISO_8601_DATE_TIME.parse(value) rescue false)
when {.ascii_number?, _, _, _, _},
{'-', .ascii_number?, _, _, _},
{'+', .ascii_number?, _, _, _},
{'.', .ascii_number?, _, _, _},
<style ref='stylized'>
#stylized-785246 > span {
color: black;
}
#stylized-785246 > span:hover {
color: blue;
}
#stylized-785246:hover {
background-color: blue;
}
class Foo
def to_s
end
unsealed private def patch_me
end
def cant_patch_me
end
end
@jwaldrip
jwaldrip / release.rb
Created April 20, 2017 20:15
Release code to github
#!/usr/bin/env ruby
require 'bundler/setup'
require 'date'
require 'net/https'
require 'json'
TRUTHY_STRINGS = %w(t true y yes 1).flat_map do |str|
[str.downcase, str.upcase, str.capitalize]
end.uniq

Command Used: ios beta

Output/Log

DEBUG [2017-03-23 15:53:22.45]: Checking if there are any plugins that should be loaded...
INFO [2017-03-23 15:53:22.47]: -------------------------------------------------
INFO [2017-03-23 15:53:22.47]: --- Step: Verifying required fastlane version ---
INFO [2017-03-23 15:53:22.47]: -------------------------------------------------
INFO [2017-03-23 15:53:22.47]: Your fastlane version 2.22.0 matches the minimum requirement of 2.22.0  ✅
cli53 export commercialtribe.com \
| grep --invert-match -E "AWS|NS|SOA" \
| sed -E "s/(MX|CNAME)(.+)/\1\2./" \
| gcloud dns record-sets import -z commercialtribe-com --delete-all-existing --zone-file-format /dev/stdin
  1. The request enters the server: https://github.com/brandfolder/jsonapionify/blob/master/lib/jsonapionify/api/server.rb#L15-L17

  2. The resouce and id (if present) are identified and used to lookup a resource. https://github.com/brandfolder/jsonapionify/blob/master/lib/jsonapionify/api/server.rb#L31-L41

  3. The resource is found by its name. Resource definitions are not converted to classes until they are called the first time. When defining a resource you are actually just defining a block that is eventually passed to Class.new(parent, &resource block) https://github.com/brandfolder/jsonapionify/blob/master/lib/jsonapionify/api/base/resource_definitions.rb#L11-L23

Keybase proof

I hereby claim:

  • I am jwaldrip on github.
  • I am jwaldrip (https://keybase.io/jwaldrip) on keybase.
  • I have a public key whose fingerprint is 3B95 13A7 057D E96E FA49 F103 0DC2 02A3 22A5 D30F

To claim this, I am signing this object: