Sha256: eb90496cdd14e49343ce9b67d2737b3182672627aeb2b80ddca3daf85e045f75

Contents?: true

Size: 604 Bytes

Versions: 31

Compression:

Stored size: 604 Bytes

Contents

require 'yaml'

begin
  require 'appsignal_extension'
  Appsignal.extension_loaded = true
rescue LoadError => err
  Appsignal.logger.error(
    "Failed to load extension (#{err}), please check the install.log file in " \
    "the ext directory of the gem and e-mail us at support@appsignal.com"
  )
  Appsignal.extension_loaded = false
end

module Appsignal
  class Extension
    def self.agent_config
      @agent_config ||= YAML.load(
        File.read(File.join(File.dirname(__FILE__), '../../ext/agent.yml'))
      )
    end

    def self.agent_version
      agent_config[:version]
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
appsignal-0.12.beta.46 lib/appsignal/extension.rb
appsignal-0.12.beta.45 lib/appsignal/extension.rb
appsignal-0.12.beta.44 lib/appsignal/extension.rb
appsignal-0.12.beta.43 lib/appsignal/extension.rb
appsignal-0.12.beta.42 lib/appsignal/extension.rb
appsignal-0.12.beta.41 lib/appsignal/extension.rb
appsignal-0.12.beta.40 lib/appsignal/extension.rb
appsignal-0.12.beta.39 lib/appsignal/extension.rb
appsignal-0.12.beta.38 lib/appsignal/extension.rb
appsignal-0.12.beta.37 lib/appsignal/extension.rb
appsignal-0.12.beta.36 lib/appsignal/extension.rb