README.md in ruboty-1.0.2 vs README.md in ruboty-1.0.3
- old
+ new
@@ -23,10 +23,11 @@
* [ruboty-alias](https://github.com/r7kamura/ruboty-alias)
* [ruboty-cron](https://github.com/r7kamura/ruboty-cron)
* [ruboty-github](https://github.com/r7kamura/ruboty-github)
* [ruboty-google_image](https://github.com/r7kamura/ruboty-google_image)
+* [ruboty-japan_weather](https://github.com/taiki45/ruboty-japan_weather)
* [ruboty-lgtm](https://github.com/negipo/ruboty-lgtm)
* [ruboty-syoboi_calendar](https://github.com/r7kamura/ruboty-syoboi_calendar)
## Configuration
Store configuration value in envorinment variables.
@@ -43,30 +44,29 @@
gem "ruboty-redis"
gem "ruboty-slack"
```
## Environment
-Ruboty has global environment configuration like `Rails.env`.
-You can specify Ruboty environment via environment variables:
+You can change loaded gems via `RUBOTY_ENV` (default: development).
-```shell
+```sh
RUBOTY_ENV=production bundle exec ruboty
```
-Ruboty only loads dependent gems group by current environment.
-
```ruby
-# Gemfile
+# Use ruboty-cron in any env
+gem "ruboty-cron"
+
+# Use HipChat in development env
group :development do
- gem "ruboty" # For development shell console
+ gem "ruboty-hipchat"
end
+# Use Slack in production env
group :production do
- gem "ruboty-slack" # For production adapter
+ gem "ruboty-slack"
end
```
-
-The default Ruboty environment is `development`.
## Deploy
Here is the smallest example to deploy a simple chatterbot to Heroku.
```sh