masayuki14 / workshop

OSSの開発に未参加または参加したことはあるけどまだ自信がない人を後押しするワークショップ用のリポジトリー
1 stars 4 forks source link

OSS Gate Workshop: Kyoto: 2017-05-10: nishizuka: hubot: Work log #3

Closed nishizuka closed 7 years ago

nishizuka commented 7 years ago

This is a work log of a "OSS Gate workshop". "OSS Gate workshop" is an activity to increase OSS developers. Here's been discussed in Japanese. Thanks.

作業ログ作成時の説明

以下のテンプレートを埋めてタイトルに設定します。埋め方例はスクロールすると見えてきます。

OSS Gate Workshop: ${LOCATION}: ${YEAR}-${MONTH}-${DAY}: ${アカウント名}: ${OSS名}: Work log

タイトル例↓:

OSS Gate Workshop: Tokyo: 2017-01-16: kou: Rabbit: Work log

OSS Gateワークショップ関連情報

nishizuka commented 7 years ago

もっと活用したいので、特に要望があるわけではないが、機能の知見を広げたいので hubot を選択

nishizuka commented 7 years ago

ソースは、ここ

https://github.com/github/hubot

nishizuka commented 7 years ago

公式サイト https://hubot.github.com/

masayuki14 commented 7 years ago

こんにちは。サポーターです:smile:

nishizuka commented 7 years ago

英語で読み込んでいくと時間がかかりそうなので、Google神に翻訳を頼んで短縮

https://translate.google.com/translate?sl=en&tl=ja&js=y&prev=_t&hl=ja&ie=UTF-8&u=https%3A%2F%2Fhubot.github.com%2F&edit-text=

nishizuka commented 7 years ago

Blog もあるみたいなんで、今後はチェックしよう。 https://github.com/blog

RSSリーダーも、生活のメジャーではなくなってしまったので、どうやってこれをウォッチしていくかが課題。

nishizuka commented 7 years ago

インストールしてみよう。 ソースに先にいったら、RADEME.md にドキュメントのリンクがなくて、迷ったが公式のトップからドキュメントにリンクがあった。

https://hubot.github.com/docs/

nishizuka commented 7 years ago

% npm install -g yo generator-hubot

%  npm install -g yo generator-hubot
nishizuka commented 7 years ago

Mac のディレクトリで悩む

nishizuka commented 7 years ago

Mac がピュア過ぎて、色々と初めから。

nishizuka commented 7 years ago

node から入れる。 http://qiita.com/akakuro43/items/600e7e4695588ab2958d

nishizuka commented 7 years ago
$ brew install nodebrew
nishizuka commented 7 years ago
$ nodebrew install-binary latest
nishizuka commented 7 years ago
nishizuka@spookies-no-MacBook-Pro ~/Applications> nodebrew install-binary latest
Fetching: https://nodejs.org/dist/v7.10.0/node-v7.10.0-darwin-x64.tar.gz
Warning: Failed to create the file
Warning: /Users/nishizuka/.nodebrew/src/v7.10.0/node-v7.10.0-darwin-x64.tar.gz:
Warning:  No such file or directory

curl: (23) Failed writing body (0 != 941)
download failed: https://nodejs.org/dist/v7.10.0/node-v7.10.0-darwin-x64.tar.gz
nishizuka commented 7 years ago

手順をかっ飛ばしたのか、エラー。なので、エラーをググる。 https://www.google.co.jp/search?q=nodebrew+no+such+file+or+directory&rlz=1C5CHFA_enJP706JP706&oq=nodebrew+no+su&aqs=chrome.1.69i57j0.9442j0j1&sourceid=chrome&ie=UTF-8

nishizuka commented 7 years ago

OSS Gateやって写真取るなら、寝癖ぐらいなおしてくるべきだた。

nishizuka commented 7 years ago

http://qiita.com/TakaakiOno/items/1868a1c2644b84c2cb09 多分、解決

nishizuka commented 7 years ago
nishizuka@spookies-no-MacBook-Pro ~> mkdir -p .nodebrew/src
nishizuka commented 7 years ago

えいっ

nishizuka@spookies-no-MacBook-Pro ~> nodebrew install-binary latest
Fetching: https://nodejs.org/dist/v7.10.0/node-v7.10.0-darwin-x64.tar.gz
###########################################                               59.8%
nishizuka commented 7 years ago

@masayuki14 どうも、よろしくお願いします。インストールを待ってます。

nishizuka commented 7 years ago

他の人は、何する人ぞ。

4 #6 #5 #2

nishizuka commented 7 years ago

インストール完了してた。 実行パスを通す export PATH=$PATH:/Users/xxxxx/.nodebrew/current/bin

masayuki14 commented 7 years ago

英語で読み込んでいくと時間がかかりそうなので、Google神に翻訳を頼んで短縮

日本語のREADMEがあると良さそうですね。

masayuki14 commented 7 years ago

READMEにInstall の導線があったらよさそうでっすね。

masayuki14 commented 7 years ago

Qiitaの記事にもフィードバックできそう?

nishizuka commented 7 years ago
spookies-no-MacBook-Pro:~ nishizuka$ export
declare -x Apple_PubSub_Socket_Render="/private/tmp/com.apple.launchd.lf9TshTdy0/Render"
declare -x COLORFGBG="7;0"
declare -x HOME="/Users/nishizuka"
declare -x ITERM_PROFILE="Default"
declare -x ITERM_SESSION_ID="w0t0p0:F0628D05-CE5D-4AFF-B9CC-47B25069ABFF"
declare -x LANG="ja_JP.UTF-8"
declare -x LOGNAME="nishizuka"
declare -x OLDPWD
declare -x PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/nishizuka/.nodebrew/current/bin"
declare -x PWD="/Users/nishizuka"
declare -x SECURITYSESSIONID="186a6"
declare -x SHELL="/bin/bash"
declare -x SHLVL="1"
declare -x SSH_AUTH_SOCK="/private/tmp/com.apple.launchd.RyZ6KpBaJ1/Listeners"
declare -x TERM="xterm-256color"
declare -x TERM_PROGRAM="iTerm.app"
declare -x TERM_PROGRAM_VERSION="3.0.15"
declare -x TERM_SESSION_ID="w0t0p0:F0628D05-CE5D-4AFF-B9CC-47B25069ABFF"
declare -x TMPDIR="/var/folders/d0/13wfqk_j03q6xcvb0y4vp3p00000gp/T/"
declare -x USER="nishizuka"
declare -x XPC_FLAGS="0x0"
declare -x XPC_SERVICE_NAME="0"
declare -x __CF_USER_TEXT_ENCODING="0x1F6:0x1:0xE"
spookies-no-MacBook-Pro:~ nishizuka$ node -v
-bash: node: command not found
spookies-no-MacBook-Pro:~ nishizuka$ nodebrew ls
v7.10.0

current: none
spookies-no-MacBook-Pro:~ nishizuka$ nodebrew use v7.10.0
use v7.10.0
nishizuka commented 7 years ago
nishizuka@spookies-no-MacBook-Pro ~> npm install -g yo generator-hubot
npm WARN deprecated CSSselect@0.4.1: the module is now available as 'css-select'
npm WARN deprecated CSSwhat@0.4.7: the module is now available as 'css-what'
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated npmconf@2.1.2: this package has been reintegrated into npm and is now out of date with respect to npm
/Users/nishizuka/.nodebrew/node/v7.10.0/bin/yo -> /Users/nishizuka/.nodebrew/node/v7.10.0/lib/node_modules/yo/lib/cli.js
/Users/nishizuka/.nodebrew/node/v7.10.0/bin/yo-complete -> /Users/nishizuka/.nodebrew/node/v7.10.0/lib/node_modules/yo/lib/completion/index.js

> spawn-sync@1.0.15 postinstall /Users/nishizuka/.nodebrew/node/v7.10.0/lib/node_modules/yo/node_modules/spawn-sync
> node postinstall

> yo@1.8.5 postinstall /Users/nishizuka/.nodebrew/node/v7.10.0/lib/node_modules/yo
> yodoctor

Yeoman Doctor
Running sanity checks on your system

✔ Global configuration file is valid
✔ NODE_PATH matches the npm root
✔ Node.js version
✔ No .bowerrc file in home directory
✔ No .yo-rc.json file in home directory
✔ npm version

Everything looks all right!
/Users/nishizuka/.nodebrew/node/v7.10.0/lib
nishizuka commented 7 years ago
nishizuka@spookies-no-MacBook-Pro ~/w/hubot> yo hubot
? ==========================================================================
We're constantly looking for ways to make yo better!
May we anonymously report usage statistics to improve the tool over time?
More info: https://github.com/yeoman/insight & http://yeoman.io
========================================================================== Yes
                     _____________________________
                    /                             \
   //\              |      Extracting input for    |
  ////\    _____    |   self-replication process   |
 //////\  /_____\   \                             /
 ======= |[^_/\_]|   /----------------------------
  |   | _|___@@__|__
  +===+/  ///     \_\
   | |_\ /// HUBOT/\\
   |___/\//      /  \\
         \      /   +---+
          \____/    |   |
           | //|    +===+
            \//      |xx|

? Owner Ikuro Nishizuka <nishizuka@spookies.co.jp>
? Bot name hubot
? Description Idea Bot
? Bot adapter campfire
   create bin/hubot
   create bin/hubot.cmd
   create Procfile
   create README.md
   create external-scripts.json
   create hubot-scripts.json
   create .gitignore
   create package.json
   create scripts/example.coffee
   create .editorconfig
                     _____________________________
 _____              /                             \
 \    \             |   Self-replication process   |
 |    |    _____    |          complete...         |
 |__\\|   /_____\   \     Good luck with that.    /
   |//+  |[^_/\_]|   /----------------------------
  |   | _|___@@__|__
  +===+/  ///     \_\
   | |_\ /// HUBOT/\\
   |___/\//      /  \\
         \      /   +---+
          \____/    |   |
           | //|    +===+
            \//      |xx|

npm ERR! Darwin 16.5.0
npm ERR! argv "/Users/nishizuka/.nodebrew/node/v7.10.0/bin/node" "/Users/nishizuka/.nodebrew/current/bin/npm" "install" "hubot" "hubot-scripts" "hubot-diagnostics" "hubot-help" "hubot-heroku-keepalive" "hubot-google-images" "hubot-google-translate" "hubot-pugme" "hubot-maps" "hubot-redis-brain" "hubot-rules" "hubot-shipit" "--save"
npm ERR! node v7.10.0
npm ERR! npm  v4.2.0
npm ERR! code ENOSELF

npm ERR! Refusing to install package with name "hubot" under a package
npm ERR! also called "hubot". Did you name your project the same
npm ERR! as the dependency you're installing?
npm ERR!
npm ERR! For more information, see:
npm ERR!     <https://docs.npmjs.com/cli/install#limitations-of-npms-install-algorithm>
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/nishizuka/.npm/_logs/2017-05-11T16_57_55_267Z-debug.log
nishizuka commented 7 years ago
nishizuka@spookies-no-MacBook-Pro ~/w/ideabot> ./bin/hubot
nibot> [Fri May 12 2017 02:28:53 GMT+0900 (JST)] WARNING Loading scripts from hubot-scripts.json is deprecated and will be removed in 3.0 (https://github.com/github/hubot-scripts/issues/1113) in favor of packages for each script.

Your hubot-scripts.json is empty, so you just need to remove it.
[Fri May 12 2017 02:28:53 GMT+0900 (JST)] ERROR hubot-heroku-alive included, but missing HUBOT_HEROKU_KEEPALIVE_URL. `heroku config:set HUBOT_HEROKU_KEEPALIVE_URL=$(heroku apps:info -s  | grep web-url | cut -d= -f2)`
[Fri May 12 2017 02:28:53 GMT+0900 (JST)] INFO hubot-redis-brain: Using default redis on localhost:6379

nibot>
nishizuka commented 7 years ago

日本語の文字列が含まれると、うまく動かない https://github.com/github/hubot/issues/940

genya0407 commented 7 years ago

↑ これ、リンクするIssue合ってます?

nishizuka commented 7 years ago

よく見たら、doc の下にらしきドキュメントがあった。

nishizuka commented 7 years ago

script が、 coffee script 前提で作成されているが、 js もサポートされているので、example.js もあるとありがたいとおもいます。

nishizuka commented 7 years ago

https://github.com/github/hubot/issues/1324 👍 😄