This file contains 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
# frozen_string_literal: true | |
def show_backtrace | |
puts | |
puts '=' * 80 | |
Thread.list.each do |thr| | |
description = thr == Thread.main ? 'Main thread' : thr.inspect | |
puts | |
puts "#{description} backtrace: " | |
puts thr.backtrace.join("\n") |
This file contains 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
:chapter-label: | |
:icons: font | |
:lang: en | |
:sectanchors: | |
:sectlinks: | |
:sectnums: | |
:source-highlighter: highlightjs | |
:toc: left | |
:toclevels: 2 |
This file contains 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
# frozen_string_literal: true | |
require 'rspec/retry' | |
RSpec.configure do |config| | |
if ENV['RAKSUL_AD_RSPEC_RETRY']&.match?(/true/i) | |
# show retry status in spec process | |
config.verbose_retry = true | |
# show exception that triggers a retry if verbose_retry is set to true | |
config.display_try_failure_messages = true |
This file contains 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
# frozen_string_literal: true | |
require 'action_dispatch/system_testing/test_helpers/screenshot_helper' | |
module ActionDispatch::SystemTesting::TestHelpers::ScreenshotHelper | |
LINUX_MAX_FILE_NAME_LENGTH = 255 | |
EXT_NAME = '.png' | |
# https://github.com/rails/rails/blob/a3ecf4ff1dbb92259e1627bdd09546211f25d906/actionpack/lib/action_dispatch/system_testing/test_helpers/screenshot_helper.rb#L24 | |
def take_screenshot |
This file contains 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
<template lang="pug"> | |
.vertical-slide(ref="self", :style="{height: height + 'px'}") | |
transition( | |
name="-expand", | |
v-on:before-enter="beforeEnter", | |
v-on:enter="enter", | |
v-on:before-leave="beforeLeave", | |
v-on:leave="leave") | |
.content( | |
v-for="state in states", |
This file contains 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
{ | |
"plugins": { | |
"postcss-flexbugs-fixes": true, | |
"autoprefixer": { | |
"grid": true, | |
"browsers": [ | |
"last 2 versions", | |
"IE >= 10", | |
"Android >= 5", | |
"last 2 ios version" |
This file contains 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
type: | |
type: enum | |
required: true | |
description: 'commit type' | |
values: | |
- | |
name: feat | |
description: 'when implementing function' | |
- | |
name: fix |
This file contains 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
emoji: | |
type: enum | |
required: true | |
description: 'commit type' | |
values: | |
- | |
name: ':heavy_plus_sign:' | |
description: 'Feature: when implementing function' | |
- | |
name: ':sunny:' |
This file contains 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
githubIssueNum: | |
type: string | |
required: false | |
description: 'github issue number' | |
prefix: 'close #' | |
subject: | |
type: string | |
required: true | |
description: 'The subject contains succinct description of the change' | |
githubIssueUrl: |