lita-hipchat 0.0.1 → 1.0.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ec7ba5ac4abe138d28e1bd36a4558f813d7fb5b
|
4
|
+
data.tar.gz: e46480f1c832145e7600b534032152f45cdaadb7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d5eff11e4b7489853069890d99420e72f7c01969bdc4f631b69dc7202eeb10250357de6dffe5f9a4051672ecfedb9852608de7c0bfc938427ed62cb9b6ad0e46
|
7
|
+
data.tar.gz: 9441c86938d6beed4b511af951e637aa139addc0eacce13e1c0c798b969dd568640c6e51205f1cd47cebd0d4f3a3f6b647f5c841cb404b5fd0695d1b20c9d72c
|
data/lita-hipchat.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = "lita-hipchat"
|
3
|
-
spec.version = "0.0
|
3
|
+
spec.version = "1.0.0"
|
4
4
|
spec.authors = ["Jimmy Cuadra"]
|
5
5
|
spec.email = ["jimmy@jimmycuadra.com"]
|
6
6
|
spec.description = %q{A HipChat adapter for Lita.}
|
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
|
|
13
13
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
14
14
|
spec.require_paths = ["lib"]
|
15
15
|
|
16
|
-
spec.add_runtime_dependency "lita", "~>
|
16
|
+
spec.add_runtime_dependency "lita", "~> 2.0"
|
17
17
|
spec.add_runtime_dependency "xmpp4r", "~> 0.5"
|
18
18
|
|
19
19
|
spec.add_development_dependency "bundler", "~> 1.3"
|
@@ -2,11 +2,13 @@ require "spec_helper"
|
|
2
2
|
|
3
3
|
describe Lita::Adapters::HipChat do
|
4
4
|
before do
|
5
|
-
Lita.
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
5
|
+
Lita.configure do |config|
|
6
|
+
config.adapter.jid = "jid"
|
7
|
+
config.adapter.password = "secret"
|
8
|
+
config.adapter.rooms = nil
|
9
|
+
config.adapter.muc_domain = nil
|
10
|
+
end
|
11
|
+
|
10
12
|
allow(described_class::Connector).to receive(:new).and_return(connector)
|
11
13
|
end
|
12
14
|
|
@@ -20,7 +22,7 @@ describe Lita::Adapters::HipChat do
|
|
20
22
|
end
|
21
23
|
|
22
24
|
it "requires config.jid and config.password" do
|
23
|
-
Lita.
|
25
|
+
Lita.clear_config
|
24
26
|
expect(Lita.logger).to receive(:fatal).with(/jid, password/)
|
25
27
|
expect { subject }.to raise_error(SystemExit)
|
26
28
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -4,15 +4,7 @@ SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
|
|
4
4
|
SimpleCov::Formatter::HTMLFormatter,
|
5
5
|
Coveralls::SimpleCov::Formatter
|
6
6
|
]
|
7
|
-
SimpleCov.start
|
7
|
+
SimpleCov.start { add_filter "/spec/" }
|
8
8
|
|
9
9
|
require "lita-hipchat"
|
10
10
|
require "lita/rspec"
|
11
|
-
|
12
|
-
RSpec.configure do |config|
|
13
|
-
config.include Lita::RSpec
|
14
|
-
|
15
|
-
config.before do
|
16
|
-
allow(Lita).to receive(:logger).and_return(double("Logger").as_null_object)
|
17
|
-
end
|
18
|
-
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lita-hipchat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jimmy Cuadra
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-06
|
11
|
+
date: 2013-07-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lita
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '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: '
|
26
|
+
version: '2.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: xmpp4r
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|