View rubocop-todo-corrector.yml
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
name: rubocop-todo-corrector | |
on: | |
pull_request: | |
types: | |
- closed | |
workflow_dispatch: | |
inputs: | |
cop_name: | |
description: Pass cop name if you want to pick a specific cop. |
View Redirector.json
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
{ | |
"createdBy": "Redirector v3.5.3", | |
"createdAt": "2022-05-05T22:35:21.668Z", | |
"redirects": [ | |
{ | |
"description": "GitHub Docs ja to en", | |
"exampleUrl": "https://docs.github.com/ja/repositories/creating-and-managing-repositories/creating-a-template-repository", | |
"exampleResult": "https://docs.github.com/en//repositories/creating-and-managing-repositories/creating-a-template-repository", | |
"error": null, | |
"includePattern": "https://docs.github.com/ja($|/.*)", |
View gcloud_oidc_setup.sh
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
#!/bin/bash | |
set -eu | |
set -o pipefail | |
# Set these 2 variables. | |
PROJECT_ID="godolog-example-15" # e.g. godolog-example | |
GITHUB_REPO="r7kamura/godolog-example" # e.g. r7kamura/godolog-example | |
SERVICE_ACCOUNT_ID="google-drive-reader" | |
SERVICE_ACCOUNT_EMAIL="${SERVICE_ACCOUNT_ID}@${PROJECT_ID}.iam.gserviceaccount.com" |
View get_json_then_convert_it_to_xml.rb
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
require 'bundler/inline' | |
gemfile do | |
source 'https://rubygems.org' | |
gem 'activesupport' | |
gem 'builder' | |
gem 'faraday' | |
gem 'faraday_middleware' | |
end |
View convert_json_to_xml.rb
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
require 'bundler/inline' | |
gemfile do | |
source 'https://rubygems.org' | |
gem 'activesupport' | |
gem 'builder' | |
end | |
require 'active_support/core_ext/array/conversions' |
View factory_bot_factories_spec.rb
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
require 'rails_helper' | |
RSpec.describe 'FactoryBot factory' do | |
FactoryBot.factories.each do |factory| | |
describe factory.name.inspect do | |
it 'creates valid record' do | |
expect { FactoryBot::Linter.new([factory]).lint! }.not_to raise_error | |
end | |
end | |
end |
View active_record_bidirectional_accepts_nested_for_test.rb
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 'bundler/inline' | |
gemfile do | |
source 'https://rubygems.org' | |
gem 'activerecord', '6.0.3.4' | |
gem 'sqlite3' | |
end |
View i18n_symbol_reference_feature_example.rb
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
require 'i18n' | |
require 'yaml' | |
I18n.backend.store_translations( | |
:en, | |
YAML.load(<<-YAML) | |
activerecord: | |
attributes: | |
user: | |
status: |
View rename_factories_to_plurals.rb
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
require 'bundler/inline' | |
gemfile do | |
source 'https://rubygems.org' | |
gem 'activesupport' | |
end | |
require 'active_support/inflector' | |
require 'pathname' |
NewerOlder