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: 161a81fd8834b27403dfd7e86aa4b0b733e099bd
4
- data.tar.gz: 7904f55d5dcc2d0731673f93ba787c9db8f5d1be
3
+ metadata.gz: 0ec7ba5ac4abe138d28e1bd36a4558f813d7fb5b
4
+ data.tar.gz: e46480f1c832145e7600b534032152f45cdaadb7
5
5
  SHA512:
6
- metadata.gz: a2c21e123f3b466bc7ebc355bcc3fc91d47c2d775b10729543e12a0f0ab5635cee9ab3c34e820897d34b8f66052b513e09928a07fbb08b05afb339d0bab4a986
7
- data.tar.gz: fd312cce8cd98d536fbf8d009d7613b5c85daaa56611023d32293a40f111c8095eb36ce937f1eaafc83b706d17eb239fb5aa6d10c937588e32df0b1065041abd
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.1"
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", "~> 1.1"
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"
@@ -1,6 +1,6 @@
1
1
  require "spec_helper"
2
2
 
3
- describe Lita::Adapters::HipChat::Callback do
3
+ describe Lita::Adapters::HipChat::Callback, lita: true do
4
4
  subject { described_class.new(robot, roster) }
5
5
 
6
6
  let(:robot) { double("Lita::Robot") }
@@ -1,6 +1,6 @@
1
1
  require "spec_helper"
2
2
 
3
- describe Lita::Adapters::HipChat::Connector do
3
+ describe Lita::Adapters::HipChat::Connector, lita: true do
4
4
  subject { described_class.new(robot, "user", "secret") }
5
5
 
6
6
  let(:client) { double("Jabber::Client").as_null_object }
@@ -2,11 +2,13 @@ require "spec_helper"
2
2
 
3
3
  describe Lita::Adapters::HipChat do
4
4
  before do
5
- Lita.config.adapter.jid = "jid"
6
- Lita.config.adapter.password = "secret"
7
- Lita.config.adapter.rooms = nil
8
- Lita.config.adapter.muc_domain = nil
9
- allow(Lita).to receive(:logger).and_return(double("Logger").as_null_object)
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.instance_variable_set(:@config, nil)
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.1
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-24 00:00:00.000000000 Z
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: '1.1'
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: '1.1'
26
+ version: '2.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: xmpp4r
29
29
  requirement: !ruby/object:Gem::Requirement