Sha256: dfda06c573ea19fac5afb823d3f65a3455d7f46accb6865fd66fe7cd66d0bd71

Contents?: true

Size: 476 Bytes

Versions: 11

Compression:

Stored size: 476 Bytes

Contents

# frozen_string_literal: true

require "cogger"
require "dry/container"
require "spek"

module SublimeTextKit
  # Provides a global gem container for injection into other objects.
  module Container
    extend Dry::Container::Mixin

    register(:configuration) { Configuration::Loader.call }
    register(:specification) { Spek::Loader.call "#{__dir__}/../../sublime_text_kit.gemspec" }
    register(:kernel) { Kernel }
    register(:logger) { Cogger::Client.new }
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
sublime_text_kit-14.1.2 lib/sublime_text_kit/container.rb
sublime_text_kit-14.1.1 lib/sublime_text_kit/container.rb
sublime_text_kit-14.1.0 lib/sublime_text_kit/container.rb
sublime_text_kit-14.0.0 lib/sublime_text_kit/container.rb
sublime_text_kit-13.5.0 lib/sublime_text_kit/container.rb
sublime_text_kit-13.4.0 lib/sublime_text_kit/container.rb
sublime_text_kit-13.3.0 lib/sublime_text_kit/container.rb
sublime_text_kit-13.2.0 lib/sublime_text_kit/container.rb
sublime_text_kit-13.1.0 lib/sublime_text_kit/container.rb
sublime_text_kit-13.0.1 lib/sublime_text_kit/container.rb
sublime_text_kit-13.0.0 lib/sublime_text_kit/container.rb