Sha256: c7c94cde2d7f77445e1939ad7fe1981e14f0cc223e5119c9260ae552aba4644c

Contents?: true

Size: 947 Bytes

Versions: 2

Compression:

Stored size: 947 Bytes

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
  successful_installation
rescue => e
  fail_installation_with_error(e)
ensure
  create_dummy_makefile unless installation_succeeded?
  write_report
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
appsignal-3.5.4-java ext/Rakefile
appsignal-3.5.4 ext/Rakefile