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-1.0.0 lib/appsignal/extension.rb
appsignal-1.0.0.rc.1 lib/appsignal/extension.rb
appsignal-0.12.rc.14 lib/appsignal/extension.rb
appsignal-0.12.rc.13 lib/appsignal/extension.rb
appsignal-0.12.rc.12 lib/appsignal/extension.rb
appsignal-0.12.rc.11 lib/appsignal/extension.rb
appsignal-0.12.rc.10 lib/appsignal/extension.rb
appsignal-0.12.rc.9 lib/appsignal/extension.rb
appsignal-0.12.rc.8 lib/appsignal/extension.rb
appsignal-0.12.rc.7 lib/appsignal/extension.rb
appsignal-0.12.rc.6 lib/appsignal/extension.rb
appsignal-0.12.rc.5 lib/appsignal/extension.rb
appsignal-0.12.beta.54 lib/appsignal/extension.rb
appsignal-0.12.beta.53 lib/appsignal/extension.rb
appsignal-0.12.beta.52 lib/appsignal/extension.rb
appsignal-0.12.beta.51 lib/appsignal/extension.rb
appsignal-0.12.beta.50 lib/appsignal/extension.rb
appsignal-0.12.beta.49 lib/appsignal/extension.rb
appsignal-0.12.beta.48 lib/appsignal/extension.rb
appsignal-0.12.beta.47 lib/appsignal/extension.rb