Sha256: 21e6746ede0cc6a94c25d48f0ab0660a75028c4e9c3a8d532671895f5b67b9a7

Contents?: true

Size: 384 Bytes

Versions: 10

Compression:

Stored size: 384 Bytes

Contents

require 'rbconfig'

module Rabbit
  module Config
    IMAGE_PATH = [
      ::Config::CONFIG["datadir"],
      File.join(".", "data"),
    ]
    if Object.const_defined?(:Gem)
      rabbit_gem_spec = Gem.loaded_specs["rabbit"]
      if rabbit_gem_spec and rabbit_gem_spec.loaded?
        IMAGE_PATH.unshift(File.join(rabbit_gem_spec.full_gem_path, "data"))
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rabbit-1.0.2 lib/rabbit/default-config.rb
rabbit-1.0.1 lib/rabbit/default-config.rb
rabbit-1.0.0 lib/rabbit/default-config.rb
rabbit-0.9.3 lib/rabbit/default-config.rb
rabbit-0.9.2 lib/rabbit/default-config.rb
rabbit-0.9.1 lib/rabbit/default-config.rb
rabbit-0.9.0 lib/rabbit/default-config.rb
rabbit-0.6.4 lib/rabbit/default-config.rb
rabbit-0.6.3 lib/rabbit/default-config.rb
rabbit-0.6.2 lib/rabbit/default-config.rb