- Install qiita_information gem
- Run below
bundle exec ruby main.rb > 20170101.json
# Next day
bundle exec ruby main.rb > 20170102.json
ruby diff.rb 20170101.json 20170102.json > mail.html
MAIL_SUBJECT="Today's qiita report" \
MAIL_FROM="[email protected]" \
MAIL_TO="[email protected]" \
SMTP_SERVER="smtp@server" \
ruby mail.rb < mail.html