reference: https://nvie.com/posts/a-successful-git-branching-model/
gitGraph TB:
commit tag: "v1.2.3" type: REVERSE
branch develop
checkout develop
commit
reference: https://nvie.com/posts/a-successful-git-branching-model/
gitGraph TB:
commit tag: "v1.2.3" type: REVERSE
branch develop
checkout develop
commit
lib_deps =
bblanchon/ArduinoJson@^6.21.2
256dpi/MQTT@^2.5.1
mqtt_handler.h
基本
require 'google_drive'
# Googleドライブセッションを開始
session = GoogleDrive::Session.from_service_account_key("/app/credentials.json")
# スプレッドシートを開く(スプレッドシートのURLを指定)
spreadsheet = session.spreadsheet_by_url("https://docs.google.com/spreadsheets/d/")
BUFFALO LUA4-U3-AGT
指すだけで使えた ドライバーのインストール不要
OS
$ cat /etc/issue
Ubuntu 22.04.1 LTS \n \l
Jest
で process.env
に依存したテストを書くには、次のような方法があります。
process.env
プロパティを手動で設定するsetupTestFrameworkScriptFile
を使用して、 Jest
が自動的に環境変数を設定するようにするsetupFiles
オプションを使用して、 Jest
で環境変数を設定するsetupFilesAfterEnv
オプションを使用して、 Jest
で環境変数を設定する上記のいずれかの方法を使用することで、Jest
で process.env
に依存したテストを書くことができます。
<% # coding: UTF-8 | |
# Generate curl options | |
curl_options = [] | |
# request | |
curl_options << "-X #{method} https://#{request.host}#{request.path}" | |
# headers | |
table = request_header_from_fixed_keys |
# --- | |
# File: wercker.yml | |
# --- | |
box: ruby:2.4.2 | |
build: | |
steps: | |
- install-packages: | |
packages: nodejs npm |
# --- | |
# File: Gemfile | |
# --- | |
# この行を追加 | |
gem 'middleman-minify-html' |
# File: spec/tasks/send_invoices_spec.rb | |
require "rails_helper" | |
describe "rake billing:send_invoices", type: :task do | |
it "Rails environment を読み込んでいること" do | |
expect(task.prerequisites).to include "environment" | |
end |
# ./cookbooks/ssh/default.rb | |
template '/etc/ssh/sshd_config' | |
service 'sshd' do | |
action %i[reload enable] | |
end |