chickadee 6.0.2 → 6.0.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9ae3ac8453e16a736b621287feb437dffcd6f9f5
4
- data.tar.gz: 346b0090f2fd811fbfba8eab282695f97ec743c1
3
+ metadata.gz: a85851be3f9c855878761477fc8a2cb63b4274f7
4
+ data.tar.gz: 1f15807b90b107afd3aa9fac925398b35008fb47
5
5
  SHA512:
6
- metadata.gz: 7a678a42ca376f9555ad31c3a1672f82ad636c97095997dc4912dcb4ae26ce71414709a47798943a626a1735462c445e1f609e6d0220592598aaefc1e93db4ed
7
- data.tar.gz: 166b7822c624fbbe1b6acc4f100310c7606c00db771fcbe7ee778c2f923583634a4b0e4e8f2f3243cc8ded7bff491bc9cd5d65b7dc982fccaa32560cdb5ebe23
6
+ metadata.gz: 269a2c7443bf7f111a4746400b430f43135237e5fb255dc8beb19ecd15ef61f1ac5141aac13251713b92cc90c4d859bcc0f7b403b48a79899d03402e9b623f16
7
+ data.tar.gz: 55b8e051e85847266ca4879163b0534617e09e54e34b890bc8a141c8d0286a981c9bc0de69687635edaee00285b3a0185419b6f165fa31d3c31fd12380a00487
@@ -5,17 +5,8 @@ require 'chickadee/utils/string_inflections'
5
5
 
6
6
  module Chickadee
7
7
  class Application
8
- def self.install(&block)
9
- @installer = BlockInstaller.new(&block)
10
- end
11
-
12
- def self.installer
13
- @installer
14
- end
15
-
16
- def initialize(&block)
17
- installers = []
18
- installers << self.class.installer if self.class.installer
8
+ def initialize(*installers, &block)
9
+ installers = [*installers]
19
10
  installers << BlockInstaller.new(&block) if block_given?
20
11
  @bootstrapper = Bootstrapper.new(Container, *installers)
21
12
  end
@@ -1,3 +1,3 @@
1
1
  module Chickadee
2
- VERSION = "6.0.2"
2
+ VERSION = "6.0.3"
3
3
  end
@@ -13,13 +13,9 @@ describe Chickadee::Application do
13
13
  attr_accessor :is_success
14
14
  end
15
15
 
16
- class App < Chickadee::Application
17
- install do
18
- register_handler(RequestHandler)
19
- end
16
+ app = Chickadee::Application.new do
17
+ register_handler(RequestHandler)
20
18
  end
21
-
22
- app = App.new
23
19
  request = Request.new
24
20
  app.handle(request)
25
21
  request.is_success.must_equal(true)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chickadee
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.2
4
+ version: 6.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erik Lott