ellen-hipchat 0.0.1 → 0.0.2

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: dc46d3716d7bcf6b3bab31e36418b1e7d328315f
4
- data.tar.gz: f763125e04009b4408583f2f1e9d20995d29fbbf
3
+ metadata.gz: 67bf8fe227e5bdea72ab18898a819d1a9cf84bef
4
+ data.tar.gz: 7a916f83cd33b04501e8424b3f611983d2aa7b5f
5
5
  SHA512:
6
- metadata.gz: 053a613023b11b4f5e96958b48b5c649e46f2606374876d9c526b1da498d6ecbe8139d4e6ebec034413a488381e1a1cbc0a917d7c1793d21f4d4537308054dce
7
- data.tar.gz: 03da897de57d425c78dc81260daadfa066479a3df8b61cd62ceca68fc8d21c9c20a42a9e21507a97f56293c65020fd6b439a8af67e8df572e0d8b53537b25d5d
6
+ metadata.gz: 12b294af25616c89018dc12401a63095ec6f61a9fc31781dd8d93b740fbe9d197bdd49db22f45d1e46720d4e875846ccc008c76d3515e2f9de26098cb26e3761
7
+ data.tar.gz: cf62c82bbfee4ec46dc2fb9d3798ffdd04ceb1bc751fb9704661f10d86d3baef368f03143d8f26170158b8cec51a292ffc06efffb0f76b6c1122ba3d443b67fe
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## 0.0.2
2
+ * Define dependent ENV variables
3
+
4
+ ## 0.0.1
5
+ * 1st release
@@ -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.2"
19
+ spec.add_dependency "ellen", ">= 0.0.3"
20
20
  spec.add_dependency "xmpp4r"
21
21
  spec.add_development_dependency "bundler", "~> 1.6"
22
22
  spec.add_development_dependency "rake"
@@ -8,15 +8,11 @@ module Ellen
8
8
  class Hipchat < Base
9
9
  include Mem
10
10
 
11
- EVENT_NAMES = [
12
- :join,
13
- :leave,
14
- :message,
15
- :private_message,
16
- :room_message,
17
- :self_leave,
18
- :subject,
19
- ]
11
+ env :HIPCHAT_DEBUG, "Pass `1` to show debug information on stdout (optional)", optional: true
12
+ env :HIPCHAT_JID, "Account's JID (e.g. 12345_67890@chat.hipchat.com)"
13
+ env :HIPCHAT_NICKNAME, "Account's nickname (e.g. Ellen)"
14
+ env :HIPCHAT_PASSWORD, "Account's password (e.g. xxx)"
15
+ env :HIPCHAT_ROOM_ID, "Room ID the robot first logs in (e.g. 12345_room-name@conf.hipchat.com)"
20
16
 
21
17
  def run
22
18
  log
@@ -51,19 +47,19 @@ module Ellen
51
47
  private
52
48
 
53
49
  def jid
54
- ENV["HIPCHAT_JID"] or Ellen.die("HIPCHAT_JID is missing")
50
+ ENV["HIPCHAT_JID"]
55
51
  end
56
52
 
57
53
  def password
58
- ENV["HIPCHAT_PASSWORD"] or Ellen.die("HIPCHAT_PASSWORD is missing")
54
+ ENV["HIPCHAT_PASSWORD"]
59
55
  end
60
56
 
61
57
  def room_id
62
- ENV["HIPCHAT_ROOM_ID"] or Ellen.die("HIPCHAT_ROOM_ID is missing")
58
+ ENV["HIPCHAT_ROOM_ID"]
63
59
  end
64
60
 
65
61
  def nickname
66
- ENV["HIPCHAT_NICKNAME"] or Ellen.die("HIPCHAT_NICKNAME is missing")
62
+ ENV["HIPCHAT_NICKNAME"]
67
63
  end
68
64
 
69
65
  def room_key
@@ -1,5 +1,5 @@
1
1
  module Ellen
2
2
  module Hipchat
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
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.1
4
+ version: 0.0.2
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-12 00:00:00.000000000 Z
11
+ date: 2014-04-13 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.2
19
+ version: 0.0.3
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.2
26
+ version: 0.0.3
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: xmpp4r
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -74,6 +74,7 @@ extensions: []
74
74
  extra_rdoc_files: []
75
75
  files:
76
76
  - ".gitignore"
77
+ - CHANGELOG.md
77
78
  - Gemfile
78
79
  - LICENSE.txt
79
80
  - README.md