require 'ship_fosdick/version'
require 'ship_fosdick/railtie'
require 'ship_fosdick/engine'

# Fosdick integration entry point.
# Will check to see if Rails and a confuration is available.
# Including bootstrapping all needed files for your shipping pleasure
module ShipFosdick
  if defined?(Rails)
    def self.configure(&block)
      if block_given?
        block.call(ShipFosdick::Railtie.config.ship_fosdick)
      else
        ShipFosdick::Railtie.config.ship_fosdick
      end
    end
  else
    def self.config
      @@config ||= OpenStruct.new()
      @@config
    end
  end
end

require 'spree_core'
require 'ship_fosdick/version'
require 'ship_fosdick/railtie'
require 'ship_fosdick/engine'

# Fosdick integration entry point.
# Will check to see if Rails confuration is available.
# Including bootstrapping all needed files for your shipping pleasure
module ShipFosdick
  def self.configure(&block)
    if block_given?
      block.call(ShipFosdick::Railtie.config.ship_fosdick)
    else
      ShipFosdick::Railtie.config.ship_fosdick
    end
  end
end

Clean Up If Rails Block
Clean Up If Rails Block

Assuming this will only work with rails now that this will be an Engine
over a strait gem.
