ruboty-hipchat 0.1.2 → 0.1.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: c4ac44b7c2e220159ac879ee33cb43a94f009a4f
4
- data.tar.gz: 8f0ce0137d50c74a05066a6c414f2e8470add205
3
+ metadata.gz: 4a5ecbf44be8da99ddb2679b5b642de512abe409
4
+ data.tar.gz: 75c889a13066b2cf5a4b6b7b587a914525b514c3
5
5
  SHA512:
6
- metadata.gz: 2673c131c4f19199af5692b2754bafbf985889bf5f6c849233eca9564ffc7ad2b1559fd35e0fbe6cff9d97b6123689f75eb4233056f2890ee868948edfcd29dd
7
- data.tar.gz: ebba31344d5f00a0607e65e39055c162da474eb5f9ba2b88df8181abc3c1b86307db1ba2835752f1eabaf40056ac6e31c4b7434c464f3231c8e2d0fdc951359e
6
+ metadata.gz: e7f24937461e448d4f2599010ad69be16bb0d6c177ea26f33f693d4014fe24b9368332ce345bf89194862a9d4b15a418c93925268ee506a32c28cc712ad32950
7
+ data.tar.gz: 68eee8acffd3cca3db43669bd1d7832303220239580bd2b990a1e9f62dd4c472304011daaaf9b129f80486b596aab93029c870cc817051221ada70b9cd81b386
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 0.1.3
2
+ * Support comma-separated multi HIPCHAT_ROOM_NAME
3
+
1
4
  ## 0.1.2
2
5
  * Rename: Ellen -> Ruboty
3
6
 
data/README.md CHANGED
@@ -9,9 +9,8 @@ gem "ruboty-hipchat"
9
9
 
10
10
  ## ENV
11
11
  ```
12
- HIPCHAT_DEBUG - Pass `1` to show debug information on stdout (optional)
13
12
  HIPCHAT_JID - Account's JID (e.g. 12345_67890@chat.hipchat.com)
14
13
  HIPCHAT_NICKNAME - Account's nickname, which must match the name on the HipChat account (e.g. Ruboty)
15
14
  HIPCHAT_PASSWORD - Account's password (e.g. xxx)
16
- HIPCHAT_ROOM_ID - Room ID the robot first logs in (e.g. 12345_room-name@conf.hipchat.com)
15
+ HIPCHAT_ROOM_NAME - Room name ruboty first logs in (e.g. 12345_room_a,12345_room_b)
17
16
  ```
@@ -8,7 +8,7 @@ module Ruboty
8
8
  env :HIPCHAT_JID, "Account's JID (e.g. 12345_67890@chat.hipchat.com)"
9
9
  env :HIPCHAT_NICKNAME, "Account's nickname, which must match the name on the HipChat account (e.g. ruboty)"
10
10
  env :HIPCHAT_PASSWORD, "Account's password (e.g. xxx)"
11
- env :HIPCHAT_ROOM_NAME, "Room name ruboty first logs in (e.g. 12345_myroom)"
11
+ env :HIPCHAT_ROOM_NAME, "Room name ruboty first logs in (e.g. 12345_room_a,12345_room_b)"
12
12
 
13
13
  def run
14
14
  bind
@@ -33,7 +33,7 @@ module Ruboty
33
33
  jid: jid,
34
34
  nickname: nickname,
35
35
  password: password,
36
- room_jid: room_jid,
36
+ room_jid: room_jids.join(","),
37
37
  )
38
38
  end
39
39
 
@@ -45,12 +45,14 @@ module Ruboty
45
45
  jid.to_s
46
46
  end
47
47
 
48
- def room_jid
49
- "#{room_name}@conf.hipchat.com"
48
+ def room_jids
49
+ room_names.map do |room_name|
50
+ "#{room_name}@conf.hipchat.com"
51
+ end
50
52
  end
51
53
 
52
- def room_name
53
- ENV["HIPCHAT_ROOM_NAME"]
54
+ def room_names
55
+ ENV["HIPCHAT_ROOM_NAME"].split(",")
54
56
  end
55
57
 
56
58
  def password
@@ -1,5 +1,5 @@
1
1
  module Ruboty
2
2
  module Hipchat
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
17
17
  spec.require_paths = ["lib"]
18
18
 
19
19
  spec.add_dependency "ruboty"
20
- spec.add_dependency "xrc", ">= 0.0.5"
20
+ spec.add_dependency "xrc", ">= 0.1.0"
21
21
  spec.add_development_dependency "bundler", "~> 1.6"
22
22
  spec.add_development_dependency "rake"
23
23
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruboty-hipchat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.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-05-31 00:00:00.000000000 Z
11
+ date: 2014-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruboty
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 0.0.5
33
+ version: 0.1.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 0.0.5
40
+ version: 0.1.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement