lib/mqtt/homie.rb in mqtt-homie-0.1.0 vs lib/mqtt/homie.rb in mqtt-homie-0.1.1

- old
+ new

@@ -1,27 +1,29 @@ -require "mqtt" -require "mqtt/homie/version" - -module MQTT - module Homie - class Error < StandardError; end - - class << self - attr_accessor :logger - - def debug(message) - logger.debug(message) if logger - end - - def device_builder(options = {}) - MQTT::Homie::DeviceBuilder.new(options) - end - end - end -end - -require "mqtt/homie/homie_object" -require "mqtt/homie/property" -require "mqtt/homie/node" -require "mqtt/homie/device" -require "mqtt/homie/client" -require "mqtt/homie/device_builder" +require "mqtt" +require "mqtt/homie/version" + +module MQTT + module Homie + class Error < StandardError; end + + class << self + attr_accessor :logger + + def debug(message) + logger.debug(message) if logger + end + + def device_builder(options = {}) + MQTT::Homie::DeviceBuilder.new(options) + end + end + end +end + +require "mqtt/homie/homie_attribute" +require "mqtt/homie/homie_object" +require "mqtt/homie/network" +require "mqtt/homie/property" +require "mqtt/homie/node" +require "mqtt/homie/device" +require "mqtt/homie/client" +require "mqtt/homie/device_builder"