2020-01-01から1ヶ月間の記事一覧

rubyのclientでスプレッドシート書き込み&データ追記のメモ

require 'google/apis/sheets_v4' require 'googleauth' require 'fileutils' range = "NewSheet:A1" spreadsheet_id = "foobar_id" credentials_file_path = "/path/to/cred.json" service = Google::Apis::SheetsV4::SheetsService.new service.client_opt…

Gemfileでgit souce使うやついつも忘れるので

git_source(:github_repo) do |repo_name| github_token = 'xxx' "https://#{github_token}@github.com/#{repo_name}.git" end gem 'embulk-output-foo', github_repo: 'shase/embulk-output-foo' こんなかんじ TOKENを環境変数で渡してあげたいときはこんな…