Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
nishizuka opened this issue May 10, 2017 · 34 comments
Closed

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

nishizuka opened this issue May 10, 2017 · 34 comments

Comments

@nishizuka
Copy link

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ワークショップ関連情報

  • スライド:ワークショップの進行に使っているスライドがあります。
  • チャット:OSS開発に関することならなんでも相談できます。ワークショップが終わった後もオンラインで相談しながら継続的にOSSの開発に参加しましょう!
  • シナリオ:ワークショップの目的・内容・進め方の詳細が書いています。
  • 過去のビギナーの作業ログ:他の人の作業ログから学べることがいろいろあるはずです。
@nishizuka
Copy link
Author

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

@nishizuka
Copy link
Author

ソースは、ここ

https://github.com/github/hubot

@nishizuka
Copy link
Author

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

@masayuki14
Copy link
Owner

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

@nishizuka
Copy link
Author

英語で読み込んでいくと時間がかかりそうなので、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
Copy link
Author

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

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

  • 技術ニュースのアンテナ問題
  • ちょっと動向を知りたい
  • 逐一もれずにリリース情報を知りたい

@nishizuka
Copy link
Author

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

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

@nishizuka
Copy link
Author

nishizuka commented May 10, 2017

% npm install -g yo generator-hubot

%  npm install -g yo generator-hubot

@nishizuka
Copy link
Author

Mac のディレクトリで悩む

@nishizuka
Copy link
Author

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

@nishizuka
Copy link
Author

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

@nishizuka
Copy link
Author

$ brew install nodebrew

@nishizuka
Copy link
Author

$ nodebrew install-binary latest

@nishizuka
Copy link
Author

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
Copy link
Author

@nishizuka
Copy link
Author

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

@nishizuka
Copy link
Author

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

@nishizuka
Copy link
Author

nishizuka@spookies-no-MacBook-Pro ~> mkdir -p .nodebrew/src

@nishizuka
Copy link
Author

nishizuka commented May 10, 2017

えいっ

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
Copy link
Author

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

@nishizuka
Copy link
Author

他の人は、何する人ぞ。
#4 #6 #5 #2

@nishizuka
Copy link
Author

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

@masayuki14
Copy link
Owner

masayuki14 commented May 10, 2017

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

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

@masayuki14
Copy link
Owner

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

@masayuki14
Copy link
Owner

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

@nishizuka
Copy link
Author

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
Copy link
Author

nishizuka@spookies-no-MacBook-Pro ~> npm install -g yo generator-hubot
npm WARN deprecated [email protected]: the module is now available as 'css-select'
npm WARN deprecated [email protected]: the module is now available as 'css-what'
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: 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

> [email protected] postinstall /Users/nishizuka/.nodebrew/node/v7.10.0/lib/node_modules/yo/node_modules/spawn-sync
> node postinstall


> [email protected] 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
Copy link
Author

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 <[email protected]>
? 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
Copy link
Author

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
Copy link
Author

nishizuka commented May 12, 2017

日本語の文字列が含まれると、うまく動かない
hubotio/hubot#940

@genya0407
Copy link

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

@nishizuka
Copy link
Author

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

@nishizuka
Copy link
Author

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

@nishizuka
Copy link
Author

hubotio/hubot#1324
👍 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants