ruboty 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9e6320c42e2a7e8bbdc0ce9b8e5ac491c5f06769
4
- data.tar.gz: 7183e2a4318890db1b0e2267061208a575513e94
3
+ metadata.gz: 95c695bb0d9f550d464a2417ae4b29f3bed23ac8
4
+ data.tar.gz: a3fd238b18ad1c50d3d51e6a9ba4061425a23b0d
5
5
  SHA512:
6
- metadata.gz: 825ab8fc29e11b4bc6a1ac3cb7e5c6623378b99d9700978c7254803d155eb065b2b4653e40392bc9dbe703342c0c9e376b402aa1d498d04bc942aede679c4c3f
7
- data.tar.gz: 024ca628947aaefb36af48191524d6a3a32ce1ef6614b5d8fe95985d78f8ca40f1d5188ede016fea8fe806a1bcc64de34dd0419b9ea526a314fe7e4f7619f9f2
6
+ metadata.gz: a79ff419c471ec6829dfc82573cf0e3ed1ec0a58b06e6947dee87ffa54a20b1602f15ff6b439be59c64a16b559e2f47542c681dfc7249ce10b44f59043c17af1
7
+ data.tar.gz: 9bdae2c329be3b91236f0b0e79ad3a4363d24ce7f942f8a2493a9d3cc260f96904ec4cd3fff9ab97b2c1ecf2b39494904f000cf9dfae145cee9f5179e0361cc1
@@ -1,3 +1,6 @@
1
+ ## 1.0.3
2
+ * Fix help handler
3
+
1
4
  ## 1.0.2
2
5
  * Add RUBOTY_ENV to change bundled gems with environment
3
6
 
data/README.md CHANGED
@@ -25,6 +25,7 @@ Handler provides various behaviors to your robot.
25
25
  * [ruboty-cron](https://github.com/r7kamura/ruboty-cron)
26
26
  * [ruboty-github](https://github.com/r7kamura/ruboty-github)
27
27
  * [ruboty-google_image](https://github.com/r7kamura/ruboty-google_image)
28
+ * [ruboty-japan_weather](https://github.com/taiki45/ruboty-japan_weather)
28
29
  * [ruboty-lgtm](https://github.com/negipo/ruboty-lgtm)
29
30
  * [ruboty-syoboi_calendar](https://github.com/r7kamura/ruboty-syoboi_calendar)
30
31
 
@@ -45,28 +46,27 @@ gem "ruboty-slack"
45
46
  ```
46
47
 
47
48
  ## Environment
48
- Ruboty has global environment configuration like `Rails.env`.
49
- You can specify Ruboty environment via environment variables:
49
+ You can change loaded gems via `RUBOTY_ENV` (default: development).
50
50
 
51
- ```shell
51
+ ```sh
52
52
  RUBOTY_ENV=production bundle exec ruboty
53
53
  ```
54
54
 
55
- Ruboty only loads dependent gems group by current environment.
56
-
57
55
  ```ruby
58
- # Gemfile
56
+ # Use ruboty-cron in any env
57
+ gem "ruboty-cron"
58
+
59
+ # Use HipChat in development env
59
60
  group :development do
60
- gem "ruboty" # For development shell console
61
+ gem "ruboty-hipchat"
61
62
  end
62
63
 
64
+ # Use Slack in production env
63
65
  group :production do
64
- gem "ruboty-slack" # For production adapter
66
+ gem "ruboty-slack"
65
67
  end
66
68
  ```
67
69
 
68
- The default Ruboty environment is `development`.
69
-
70
70
  ## Deploy
71
71
  Here is the smallest example to deploy a simple chatterbot to Heroku.
72
72
 
@@ -25,7 +25,7 @@ module Ruboty
25
25
  memoize :handlers
26
26
 
27
27
  def actions
28
- handlers.map(&:actions).flatten.sort_by(&:all?)
28
+ handlers.map(&:actions).flatten.sort_by { |action| action.all? ? 1 : 0 }
29
29
  end
30
30
  end
31
31
  end
@@ -1,3 +1,3 @@
1
1
  module Ruboty
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruboty
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-22 00:00:00.000000000 Z
11
+ date: 2014-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport