lita 4.4.0 → 4.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lita/robot.rb +4 -1
- data/lib/lita/version.rb +1 -1
- data/spec/lita/robot_spec.rb +6 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9748761bfa32c6c6222b9efb641526bbeea252bf
|
4
|
+
data.tar.gz: 28cfb9a3586637f3cf335d87731f3b7b63829678
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41eeb51d98b67949a6938be319bdcf143ff6be47a853137a05c822a1ee85df3f8ad9f5e90af093bcc020e0d653a79a6e892097f803d6c2ae250edbcbca126c31
|
7
|
+
data.tar.gz: 90be4a7d2dd20bfbdfaa5abcab9a98eacc9012e9d4e48b9020e3f0c391e626b7536333055b1aab30082f85f1c6ce643b0226027c041c4a652e656ed945326afc
|
data/lib/lita/robot.rb
CHANGED
@@ -39,7 +39,10 @@ module Lita
|
|
39
39
|
# @!method mention_format(name)
|
40
40
|
# @see Lita::Adapter#mention_format
|
41
41
|
# @since 4.4.0
|
42
|
-
|
42
|
+
# @!method roster(room)
|
43
|
+
# @see Lita::Adapter#roster
|
44
|
+
# @since 4.4.1
|
45
|
+
def_delegators :adapter, :mention_format, :roster
|
43
46
|
|
44
47
|
# @param registry [Lita::Registry] The registry for the robot's configuration and plugins.
|
45
48
|
def initialize(registry = Lita)
|
data/lib/lita/version.rb
CHANGED
data/spec/lita/robot_spec.rb
CHANGED
@@ -38,6 +38,12 @@ describe Lita::Robot, lita: true do
|
|
38
38
|
expect(subject.mention_format(subject.mention_name)).to eq("Lita:")
|
39
39
|
end
|
40
40
|
|
41
|
+
it "exposes Adapter#roster" do
|
42
|
+
expect_any_instance_of(Lita::Adapters::Shell).to receive(:roster)
|
43
|
+
|
44
|
+
subject.roster(instance_double("Lita::Room"))
|
45
|
+
end
|
46
|
+
|
41
47
|
context "with registered handlers" do
|
42
48
|
let(:handler1) { Class.new(Lita::Handler) { namespace :test } }
|
43
49
|
let(:handler2) { Class.new(Lita::Handler) { namespace :test } }
|