Sha256: 4b03f9a51ca873f5d2f2ed51d9908323062ab865ebfec512b7b95cfd2e895f81

Contents?: true

Size: 1.21 KB

Versions: 94

Compression:

Stored size: 1.21 KB

Contents

# frozen_string_literal: true

require File.expand_path("base.rb", __dir__)

def local_build?
  File.exist?(ext_path("appsignal-agent")) &&
    (
      File.exist?(ext_path("libappsignal.dylib")) ||
      File.exist?(ext_path("libappsignal.so"))
    ) &&
    File.exist?(ext_path("appsignal.h"))
end

task :default do
  fail_install_on_purpose_in_test!

  library_type = "dynamic"
  report["language"]["implementation"] = "jruby"
  report["language"]["implementation_version"] = JRUBY_VERSION
  report["build"]["library_type"] = library_type
  next unless check_architecture

  if local_build?
    report["build"]["source"] = "local"
  else
    archive = download_archive(library_type)
    next unless archive
    next unless verify_archive(archive, library_type)

    unarchive(archive)
  end

  # Have the extension loader raise the error if it encountes a problem
  ENV["_APPSIGNAL_EXTENSION_INSTALL"] = "true"
  # Load the extension to test if all functions can be "attached" with FFI
  require File.expand_path("../lib/appsignal/extension/jruby.rb", __dir__)

  successful_installation
rescue StandardError, LoadError => e
  fail_installation_with_error(e)
ensure
  create_dummy_makefile unless installation_succeeded?
  write_report
end

Version data entries

94 entries across 94 versions & 1 rubygems

Version Path
appsignal-4.0.4-java ext/Rakefile
appsignal-4.0.4 ext/Rakefile
appsignal-4.0.3-java ext/Rakefile
appsignal-4.0.3 ext/Rakefile
appsignal-4.0.2-java ext/Rakefile
appsignal-4.0.2 ext/Rakefile
appsignal-4.0.1-java ext/Rakefile
appsignal-4.0.1 ext/Rakefile
appsignal-4.0.0-java ext/Rakefile
appsignal-4.0.0 ext/Rakefile
appsignal-3.13.1-java ext/Rakefile
appsignal-3.13.1 ext/Rakefile
appsignal-3.13.1.alpha.1-java ext/Rakefile
appsignal-3.13.1.alpha.1 ext/Rakefile
appsignal-4.0.0.beta.2-java ext/Rakefile
appsignal-4.0.0.beta.2 ext/Rakefile
appsignal-4.0.0.beta.1-java ext/Rakefile
appsignal-4.0.0.beta.1 ext/Rakefile
appsignal-3.13.0-java ext/Rakefile
appsignal-3.13.0 ext/Rakefile