lita 4.0.0 → 4.0.1

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: ff4e72897c87eecb56d3d99f805048491e894a81
4
- data.tar.gz: 041cb427d4daf7417733225e02356265dd17e72e
3
+ metadata.gz: 82f0c8bba8bcf252debec8df0ab1aee07e239cdc
4
+ data.tar.gz: 9d398df86aa81a27c97089dd5367a2b3516c5cbb
5
5
  SHA512:
6
- metadata.gz: 4d52748c7b11f6178f12464016cd011865ea53e16e73389a08503024533d85e27500a4c10c149b68c3fd9b7bc4d947e210dade5f7f4f6aa860a6bd9f223c9b63
7
- data.tar.gz: 0933fecc96d4b8289c2b607da1bb13cd947058a662fa3dd657f1c593de31b0818fba950786ddac937f2417aea31a6b99418a61d0b0ce33169e9a3db3712d5818
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
- else
101
+ elsif handler.respond_to?(:default_config)
102
102
  old_config = Config.new
103
- handler.default_config(old_config) if handler.respond_to?(:default_config)
103
+ handler.default_config(old_config)
104
104
  config(handler.namespace, default: old_config)
105
105
  end
106
106
  end
@@ -1,4 +1,4 @@
1
1
  module Lita
2
2
  # The current version of Lita.
3
- VERSION = "4.0.0"
3
+ VERSION = "4.0.1"
4
4
  end
@@ -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 an attribute for the handler" do
65
+ it "has no attribute for the handler" do
66
66
  registry.register_handler(:foo) {}
67
67
 
68
- expect(config.handlers).to respond_to(:foo)
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 4.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jimmy Cuadra