Sha256: 10d665e712f1a24f55d9fbac33a0309f7564cb6e806e59fcbcb130edee529480

Contents?: true

Size: 884 Bytes

Versions: 40

Compression:

Stored size: 884 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["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

40 entries across 40 versions & 1 rubygems

Version Path
appsignal-3.4.10-java ext/Rakefile
appsignal-3.4.10 ext/Rakefile
appsignal-3.4.9-java ext/Rakefile
appsignal-3.4.9 ext/Rakefile
appsignal-3.4.8-java ext/Rakefile
appsignal-3.4.8 ext/Rakefile
appsignal-3.4.7-java ext/Rakefile
appsignal-3.4.7 ext/Rakefile
appsignal-3.4.6-java ext/Rakefile
appsignal-3.4.6 ext/Rakefile
appsignal-3.4.5-java ext/Rakefile
appsignal-3.4.5 ext/Rakefile
appsignal-3.4.4-java ext/Rakefile
appsignal-3.4.4 ext/Rakefile
appsignal-3.4.3-java ext/Rakefile
appsignal-3.4.3 ext/Rakefile
appsignal-3.4.2-java ext/Rakefile
appsignal-3.4.2 ext/Rakefile
appsignal-3.4.1-java ext/Rakefile
appsignal-3.4.1 ext/Rakefile