ellen-hipchat 0.0.3 → 0.0.4
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 +4 -4
- data/CHANGELOG.md +3 -0
- data/README.md +2 -2
- data/ellen-hipchat.gemspec +1 -1
- data/lib/ellen/adapters/hipchat.rb +5 -4
- data/lib/ellen/hipchat/version.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e30afae6e417e1a412d8bbdddf1c14c2ab2196e
|
4
|
+
data.tar.gz: 386ae5b9880c4546b3d94aceb354c208bb5404fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ba38dd9f9a90b298eb1bd769e05ab41f14d0f00166105a7cb2ab5064c9c174c7f4768830c5661d980bc1cabf9c7d51f1b8f8098ecbaded14945838de82c93c2
|
7
|
+
data.tar.gz: 50c7202d5166c6c2f814c539b77dd739a84d42834849f263f7f4c356226da45e0ba34d2e3bb1dbc3a77a98a49f1de5d8ebde359813b7224e4ad8f6121c17aee9
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# Ellen::Hipchat
|
2
|
-
Hipchat adapter for Ellen.
|
2
|
+
Hipchat adapter for [Ellen](https://github.com/r7kamura/ellen).
|
3
3
|
|
4
4
|
## Usage
|
5
5
|
```ruby
|
@@ -11,7 +11,7 @@ gem "ellen-hipchat"
|
|
11
11
|
```
|
12
12
|
HIPCHAT_DEBUG - Pass `1` to show debug information on stdout (optional)
|
13
13
|
HIPCHAT_JID - Account's JID (e.g. 12345_67890@chat.hipchat.com)
|
14
|
-
HIPCHAT_NICKNAME - Account's nickname (e.g. Ellen)
|
14
|
+
HIPCHAT_NICKNAME - Account's nickname, which must match the name on the HipChat account (e.g. Ellen)
|
15
15
|
HIPCHAT_PASSWORD - Account's password (e.g. xxx)
|
16
16
|
HIPCHAT_ROOM_ID - Room ID the robot first logs in (e.g. 12345_room-name@conf.hipchat.com)
|
17
17
|
```
|
data/ellen-hipchat.gemspec
CHANGED
@@ -16,7 +16,7 @@ Gem::Specification.new do |spec|
|
|
16
16
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
17
17
|
spec.require_paths = ["lib"]
|
18
18
|
|
19
|
-
spec.add_dependency "ellen", ">= 0.0
|
19
|
+
spec.add_dependency "ellen", ">= 0.2.0"
|
20
20
|
spec.add_dependency "xmpp4r"
|
21
21
|
spec.add_development_dependency "bundler", "~> 1.6"
|
22
22
|
spec.add_development_dependency "rake"
|
@@ -10,7 +10,7 @@ module Ellen
|
|
10
10
|
|
11
11
|
env :HIPCHAT_DEBUG, "Pass `1` to show debug information on stdout (optional)", optional: true
|
12
12
|
env :HIPCHAT_JID, "Account's JID (e.g. 12345_67890@chat.hipchat.com)"
|
13
|
-
env :HIPCHAT_NICKNAME, "Account's nickname (e.g. Ellen)"
|
13
|
+
env :HIPCHAT_NICKNAME, "Account's nickname, which must match the name on the HipChat account (e.g. Ellen)"
|
14
14
|
env :HIPCHAT_PASSWORD, "Account's password (e.g. xxx)"
|
15
15
|
env :HIPCHAT_ROOM_ID, "Room ID the robot first logs in (e.g. 12345_room-name@conf.hipchat.com)"
|
16
16
|
|
@@ -25,8 +25,9 @@ module Ellen
|
|
25
25
|
exit
|
26
26
|
end
|
27
27
|
|
28
|
-
|
29
|
-
|
28
|
+
# TODO: We should use message[:from] & message[:to] to select correct room
|
29
|
+
def say(message)
|
30
|
+
room.say(message[:body])
|
30
31
|
end
|
31
32
|
|
32
33
|
private
|
@@ -78,7 +79,7 @@ module Ellen
|
|
78
79
|
|
79
80
|
def bind
|
80
81
|
room.on_message do |time, nickname, body|
|
81
|
-
robot.receive(body: body,
|
82
|
+
robot.receive(body: body, from: nickname, to: room_id)
|
82
83
|
end
|
83
84
|
end
|
84
85
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ellen-hipchat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
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-04-
|
11
|
+
date: 2014-04-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ellen
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.0
|
19
|
+
version: 0.2.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.0
|
26
|
+
version: 0.2.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: xmpp4r
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -108,3 +108,4 @@ signing_key:
|
|
108
108
|
specification_version: 4
|
109
109
|
summary: Hipchat adapter for Ellen
|
110
110
|
test_files: []
|
111
|
+
has_rdoc:
|