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 +4 -4
- data/CHANGELOG.md +5 -0
- data/ellen-hipchat.gemspec +1 -1
- data/lib/ellen/adapters/hipchat.rb +9 -13
- 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: 67bf8fe227e5bdea72ab18898a819d1a9cf84bef
|
4
|
+
data.tar.gz: 7a916f83cd33b04501e8424b3f611983d2aa7b5f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12b294af25616c89018dc12401a63095ec6f61a9fc31781dd8d93b740fbe9d197bdd49db22f45d1e46720d4e875846ccc008c76d3515e2f9de26098cb26e3761
|
7
|
+
data.tar.gz: cf62c82bbfee4ec46dc2fb9d3798ffdd04ceb1bc751fb9704661f10d86d3baef368f03143d8f26170158b8cec51a292ffc06efffb0f76b6c1122ba3d443b67fe
|
data/CHANGELOG.md
ADDED
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.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
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
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"]
|
50
|
+
ENV["HIPCHAT_JID"]
|
55
51
|
end
|
56
52
|
|
57
53
|
def password
|
58
|
-
ENV["HIPCHAT_PASSWORD"]
|
54
|
+
ENV["HIPCHAT_PASSWORD"]
|
59
55
|
end
|
60
56
|
|
61
57
|
def room_id
|
62
|
-
ENV["HIPCHAT_ROOM_ID"]
|
58
|
+
ENV["HIPCHAT_ROOM_ID"]
|
63
59
|
end
|
64
60
|
|
65
61
|
def nickname
|
66
|
-
ENV["HIPCHAT_NICKNAME"]
|
62
|
+
ENV["HIPCHAT_NICKNAME"]
|
67
63
|
end
|
68
64
|
|
69
65
|
def room_key
|
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.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-
|
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.
|
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.
|
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
|