https://docs.ruby-lang.org/ja/latest/class/Rake=3a=3aTestTask.html
rake test TESTOPTS=--verbose
rake test TEST=path/to/test_target.rb
https://docs.ruby-lang.org/ja/latest/method/Rake=3a=3aTestTask/i/options.html
https://docs.ruby-lang.org/ja/latest/class/Rake=3a=3aTestTask.html
rake test TESTOPTS=--verbose
rake test TEST=path/to/test_target.rb
https://docs.ruby-lang.org/ja/latest/method/Rake=3a=3aTestTask/i/options.html
find . -user root -not -path "./tmp/*" -exec sudo chown $(whoami):$(whoami) {} \
function init(e) { | |
const props = PropertiesService.getScriptProperties().getProperties(); | |
if (props.SLACK_VERIFICATION_TOKEN != e.parameter.token) { | |
throw new Error('Invalid token'); | |
} | |
const params = parseParams(e.parameter.text); | |
return { props, params }; |
#!/bin/bash | |
# This script is for the following tutorial procedure. | |
# https://cloud.google.com/ruby/rails/run?hl=ja#gcloud_5 | |
# | |
# Setup | |
# | |
# gloud auth login | |
# gloud config set project PROJECT_ID |
$ find . -type f -name "*.rb" -or -name "Rakefile" -print0 | xargs -0 sed -i "1i# frozen_string_literal: true\n" |
{% raw %} | |
```yml | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ env.RUBY_VERSION }} | |
``` | |
{% endraw %} |
Dockerイメージを actions/cache
でキャッシュし、docker pull をスキップして高速化しようとしたときの .github/workflows/test.yml
。
詳細は https://www.hidakatsuya.dev/2022/06/11/try-to-make-github-action-faster.html を参照。
https://github.com/thinreports/thinreports-section-editor の Vue2 形式のコンポーネントを CompositionAPI に一括で変換するための Ruby スクリプト。
あくまで https://github.com/thinreports/thinreports-section-editor のコンポーネントの移行のための使い捨てのスクリプト。 元のコードのインデント規則やコードスタイルなど、一定の前提の下で動作するものであり、汎用性は一切考慮していない。