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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f892bc38b7cce6f49e658a4738e2535b28634401
4
- data.tar.gz: d444aea03196afe1ea60b14ce633afc65e736a5a
3
+ metadata.gz: 6e30afae6e417e1a412d8bbdddf1c14c2ab2196e
4
+ data.tar.gz: 386ae5b9880c4546b3d94aceb354c208bb5404fa
5
5
  SHA512:
6
- metadata.gz: 97f6ba037c0655506f7105cc32b2c8002fbadf2ef7d7e3cdcaeeacada33f0d6751d3cd943097e0bb185111179af2714af191bd5fe2822139c2b8ad45f1f9c962
7
- data.tar.gz: 5b4b5c7610b0c2f58b26a690e80839cf213cf48883bcd8a0d60ac1b1f1d56d895b54e92d63a70993208db7acb28321c996ce6996a3ceee29416815e741aa2da3
6
+ metadata.gz: 2ba38dd9f9a90b298eb1bd769e05ab41f14d0f00166105a7cb2ab5064c9c174c7f4768830c5661d980bc1cabf9c7d51f1b8f8098ecbaded14945838de82c93c2
7
+ data.tar.gz: 50c7202d5166c6c2f814c539b77dd739a84d42834849f263f7f4c356226da45e0ba34d2e3bb1dbc3a77a98a49f1de5d8ebde359813b7224e4ad8f6121c17aee9
@@ -1,3 +1,6 @@
1
+ ## 0.0.4
2
+ * Support Ellen v0.2.0
3
+
1
4
  ## 0.0.3
2
5
  * Set JID optional resource as "bot" to disable receiving chat-history :v:
3
6
 
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
  ```
@@ -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.3"
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
- def say(body, options = {})
29
- room.say(body)
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, source: nickname, command: body.start_with?(prefixed_mention_name))
82
+ robot.receive(body: body, from: nickname, to: room_id)
82
83
  end
83
84
  end
84
85
 
@@ -1,5 +1,5 @@
1
1
  module Ellen
2
2
  module Hipchat
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
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.3
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-13 00:00:00.000000000 Z
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.3
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.3
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: