Sha256: 4d0baedd6a16ddb5047593c6e808483f243a637129db135b6ce99b7e03dd50a2

Contents?: true

Size: 831 Bytes

Versions: 3

Compression:

Stored size: 831 Bytes

Contents

# frozen_string_literal: true

require 'active_model'
require 'active_support/all'
require 'active_utils'
require 'business_time'
require 'cgi'
require 'httparty'
require 'measured'
require 'mimemagic'
require 'nokogiri'
require 'open-uri'
require 'place_kit'
require 'savon'
require 'watir'
require 'yaml'
require 'zeitwerk'

module FreightKit
  VERSION = File.read(File.expand_path('../VERSION', __dir__)).strip.freeze

  class Inflector < Zeitwerk::Inflector
    def camelize(basename, abspath)
      if basename =~ /\Ahttp_(.*)/
        return "HTTP#{super(::Regexp.last_match(1), abspath)}"
      end

      super
    end
  end
end

loader = Zeitwerk::Loader.for_gem

loader.collapse("#{__dir__}/freight_kit/errors")
loader.collapse("#{__dir__}/freight_kit/models")

loader.inflector = FreightKit::Inflector.new

loader.setup

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
freight_kit-0.1.11 lib/freight_kit.rb
freight_kit-0.1.10 lib/freight_kit.rb
freight_kit-0.1.7 lib/freight_kit.rb