lita 4.0.0 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/lita/default_configuration.rb +2 -2
- data/lib/lita/version.rb +1 -1
- data/spec/lita/default_configuration_spec.rb +2 -2
- data/spec/lita/handler/common_spec.rb +0 -15
- 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: 82f0c8bba8bcf252debec8df0ab1aee07e239cdc
|
4
|
+
data.tar.gz: 9d398df86aa81a27c97089dd5367a2b3516c5cbb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7fcfae5ea03659d83c477249e2df8a40f013f1e6e927a1bb18993e6c475fc56662b8fc5a74a14b2d8eaf65ead10177c2f98c843db3d62e50ed225cbc14565bc
|
7
|
+
data.tar.gz: d91453339c92d22a74bc75090b0e03e31cc43909da422c8dc1bb89d86fa78cc1d328bc2f3a8a57e501b70d9b8d7f2dfed9263fffa725bddb612ad76908408d59
|
@@ -98,9 +98,9 @@ module Lita
|
|
98
98
|
handlers.each do |handler|
|
99
99
|
if handler.configuration_builder.children?
|
100
100
|
combine(handler.namespace, handler.configuration_builder)
|
101
|
-
|
101
|
+
elsif handler.respond_to?(:default_config)
|
102
102
|
old_config = Config.new
|
103
|
-
handler.default_config(old_config)
|
103
|
+
handler.default_config(old_config)
|
104
104
|
config(handler.namespace, default: old_config)
|
105
105
|
end
|
106
106
|
end
|
data/lib/lita/version.rb
CHANGED
@@ -62,10 +62,10 @@ describe Lita::DefaultConfiguration, lita: true do
|
|
62
62
|
end
|
63
63
|
|
64
64
|
context "with one handler with no configuration" do
|
65
|
-
it "has
|
65
|
+
it "has no attribute for the handler" do
|
66
66
|
registry.register_handler(:foo) {}
|
67
67
|
|
68
|
-
expect(config.handlers).
|
68
|
+
expect(config.handlers).not_to respond_to(:foo)
|
69
69
|
end
|
70
70
|
end
|
71
71
|
|
@@ -140,21 +140,6 @@ describe Lita::Handler::Common, lita: true do
|
|
140
140
|
expect(subject.config.style).to eq(:new)
|
141
141
|
end
|
142
142
|
end
|
143
|
-
|
144
|
-
context "with no configuration" do
|
145
|
-
let(:handler) do
|
146
|
-
Class.new do
|
147
|
-
include Lita::Handler::Common
|
148
|
-
|
149
|
-
namespace "foo_bar_baz"
|
150
|
-
end
|
151
|
-
end
|
152
|
-
|
153
|
-
it "uses an old-style config object" do
|
154
|
-
subject.config.style = :old
|
155
|
-
expect(subject.config.style).to eq(:old)
|
156
|
-
end
|
157
|
-
end
|
158
143
|
end
|
159
144
|
|
160
145
|
describe "#http" do
|