boty 0.0.17.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +559 -54
  4. data/bin/bot +10 -13
  5. data/docs/images/readme-01-screen-integration.png +0 -0
  6. data/docs/images/readme-02-screen-integration.png +0 -0
  7. data/docs/images/readme-03-screen-integration.png +0 -0
  8. data/lib/boty/action.rb +1 -1
  9. data/lib/boty/bot.rb +46 -63
  10. data/lib/boty/dsl.rb +52 -0
  11. data/lib/boty/eventable.rb +41 -0
  12. data/lib/boty/http.rb +33 -0
  13. data/lib/boty/locale.rb +17 -4
  14. data/lib/boty/logger.rb +21 -4
  15. data/lib/boty/rspec.rb +2 -3
  16. data/lib/boty/script_loader.rb +1 -1
  17. data/lib/boty/session.rb +21 -17
  18. data/lib/boty/slack/chat.rb +2 -2
  19. data/lib/boty/slack/message.rb +29 -0
  20. data/lib/boty/slack/users.rb +13 -0
  21. data/lib/boty/slack.rb +6 -0
  22. data/lib/boty/version.rb +1 -1
  23. data/lib/boty.rb +4 -4
  24. data/spec/boty/bot_spec.rb +105 -174
  25. data/spec/boty/dsl_spec.rb +125 -0
  26. data/spec/boty/http_spec.rb +5 -0
  27. data/spec/boty/logger_spec.rb +33 -0
  28. data/spec/boty/rspec_spec.rb +1 -1
  29. data/spec/boty/script_loader_spec.rb +27 -0
  30. data/spec/boty/session_spec.rb +9 -11
  31. data/spec/boty/slack/message_spec.rb +34 -0
  32. data/spec/boty/slack/users_spec.rb +41 -15
  33. data/spec/happy_path_spec.rb +22 -12
  34. data/spec/script/i18n_spec.rb +10 -4
  35. data/spec/script/pug_spec.rb +1 -1
  36. data/spec/spec_helper.rb +5 -2
  37. data/spec/support/logger_support.rb +20 -0
  38. data/spec/support/session_support.rb +2 -2
  39. data/template/project/bot.tt +4 -13
  40. data/template/project/script/ping.rb +3 -3
  41. metadata +14 -5
  42. data/lib/boty/message.rb +0 -27
  43. data/lib/boty/script_dsl.rb +0 -80
  44. data/spec/boty/message_spec.rb +0 -32
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0ebb5950dfa8625a01e2aca017fbd5ed259c499d
4
- data.tar.gz: 463e6b73167a63d36ec7441c9205784bf74a5520
3
+ metadata.gz: b1b80fa6a35d917745e219d705ad008950daef3b
4
+ data.tar.gz: 03fbea6b6493b940a63bcb963ad26c83cc62f756
5
5
  SHA512:
6
- metadata.gz: 5ad60851ef2067df1eaafc8a6bf9be654c2494cf1be814a33a920df05f1b702a8f818d4661d4144c5771bb5dfde15b7e6054227ece9d3208fd296b413bab6577
7
- data.tar.gz: 9fa330463454c9be3297c034a4189d7f6663d8a5ad6bfff6b474d0f9866ab33fbc2d1bf6a541431e70771545f5ee46bd97cb4356f6111ddcde0d6d8a438976c6
6
+ metadata.gz: 5ffbaa33ad222082cda2865606090e2e4a67051cafdd342a1a0851333594e3fe1514ee516b4b536a96105b54106e86da749ab449c87f1e369cf3009fea6852b4
7
+ data.tar.gz: af874f7e181697c3fe8e75b0a3f09f963a37c607a4f066655271e3435f6de4fcce479bde4f0f6ae0f15fc540482eb11030ad2fafc183181bc05f4df3e572d262
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- boty (0.0.17.1)
4
+ boty (0.1.0)
5
5
  eventmachine
6
6
  faraday
7
7
  faye-websocket