This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// If on JDK 9+, verify project cross-compiles on its 'sourceCompatible' JVM version (see https://github.com/melix/mrjar-gradle/blob/master/jdks.gradle) | |
if (project.hasProperty('crossCompile')) { | |
if (JavaVersion.current().java9Compatible) { | |
project.afterEvaluate { | |
tasks.withType(JavaCompile) { | |
def version = compat(sourceCompatibility) | |
project.logger.info("Configuring $name to use --release $version") | |
options.compilerArgs.addAll(['--release', version]) | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Services | Team | Infra dependencies | In Staging | In Production | |
---|---|---|---|---|---|
Redis | <> | N/A | done | done | |
Kafka | <> | N/A | done | done | |
Cadence | <> | N/A | done | done | |
... | ... | ... | ... | ... | |
Monolith | <> | MySQL, MongoDB, Kafka... | done | <JIRA ticket> | |
Candidate Portal | <> | DataDog, Sentry | done | <JIRA ticket> | |
Communicator | <> | Flagr, Kafka | done | <JIRA ticket> | |
Search | <> | AWS Elasticsearch | done | <JIRA ticket> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## POST /invitations | |
gateway_route_body(->(o) { o.country }) | |
params do | |
requires :candidate_id, type: String | |
requires :package, type: String | |
optional :tags, type: Array[String] | |
... | |
end | |
post '/' do | |
... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stages: | |
- build | |
... | |
- deploy_staging | |
- deploy_staging_eu | |
- deploy_production | |
- deploy_production_eu |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Account < ActiveRecord::Base | |
regional_replicable | |
... | |
end | |
class Candidate < ActiveRecord::Base | |
... | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def requires_time_freezing(time = Time.now) | |
before { Timecop.freeze(time) } | |
after { Timecop.return } | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PackagesV1Spec::LIST /v1/packages::account with sub-accounts | |
[platform/checkr/spec/api/packages_v1_spec.rb:149] | |
Minitest::Assertion: --- expected | |
+++ actual | |
@@ -1 +1 @@ | |
-["motor_vehicle_973769", "health_screening_511139"] | |
+["health_screening_511139", "motor_vehicle_973769"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FactoryBot.define do | |
factory :account do | |
name 'Checkr test' | |
uri_name 'checkr-test' | |
transient do | |
packages nil | |
test_packages nil | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## "Pattern matching (for use in case/switch statements) | |
## is a feature allowing deep matching of structured values" | |
# version 2.6.5 | |
> {chicago: :cubs, stlouis: :cardinals, denver: :rockies} => {stlouis:} #=> SyntaxError | |
> 1 in 1 #=> SyntaxError | |
> 0 in 1 #=> SyntaxError | |
# version 3.0.1 | |
> {chicago: :cubs, stlouis: :cardinals, denver: :rockies} => {stlouis:} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Sorbet | |
# typed: true | |
extend T::Sig | |
sig {params(name: String).returns(Integer)} | |
def main(name) | |
puts "Hello, #{name}!" | |
name.length | |
end |
OlderNewer