ellen-hipchat 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 67bf8fe227e5bdea72ab18898a819d1a9cf84bef
4
- data.tar.gz: 7a916f83cd33b04501e8424b3f611983d2aa7b5f
3
+ metadata.gz: f892bc38b7cce6f49e658a4738e2535b28634401
4
+ data.tar.gz: d444aea03196afe1ea60b14ce633afc65e736a5a
5
5
  SHA512:
6
- metadata.gz: 12b294af25616c89018dc12401a63095ec6f61a9fc31781dd8d93b740fbe9d197bdd49db22f45d1e46720d4e875846ccc008c76d3515e2f9de26098cb26e3761
7
- data.tar.gz: cf62c82bbfee4ec46dc2fb9d3798ffdd04ceb1bc751fb9704661f10d86d3baef368f03143d8f26170158b8cec51a292ffc06efffb0f76b6c1122ba3d443b67fe
6
+ metadata.gz: 97f6ba037c0655506f7105cc32b2c8002fbadf2ef7d7e3cdcaeeacada33f0d6751d3cd943097e0bb185111179af2714af191bd5fe2822139c2b8ad45f1f9c962
7
+ data.tar.gz: 5b4b5c7610b0c2f58b26a690e80839cf213cf48883bcd8a0d60ac1b1f1d56d895b54e92d63a70993208db7acb28321c996ce6996a3ceee29416815e741aa2da3
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 0.0.3
2
+ * Set JID optional resource as "bot" to disable receiving chat-history :v:
3
+
1
4
  ## 0.0.2
2
5
  * Define dependent ENV variables
3
6
 
data/README.md CHANGED
@@ -6,3 +6,12 @@ Hipchat adapter for Ellen.
6
6
  # Gemfile
7
7
  gem "ellen-hipchat"
8
8
  ```
9
+
10
+ ## ENV
11
+ ```
12
+ HIPCHAT_DEBUG - Pass `1` to show debug information on stdout (optional)
13
+ HIPCHAT_JID - Account's JID (e.g. 12345_67890@chat.hipchat.com)
14
+ HIPCHAT_NICKNAME - Account's nickname (e.g. Ellen)
15
+ 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)
17
+ ```
@@ -47,7 +47,9 @@ module Ellen
47
47
  private
48
48
 
49
49
  def jid
50
- ENV["HIPCHAT_JID"]
50
+ jid = Jabber::JID.new(ENV["HIPCHAT_JID"])
51
+ jid.resource = "bot"
52
+ jid
51
53
  end
52
54
 
53
55
  def password
@@ -1,5 +1,5 @@
1
1
  module Ellen
2
2
  module Hipchat
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ellen-hipchat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura