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.5.3-java ext/Rakefile
appsignal-3.5.3 ext/Rakefile
appsignal-3.5.2-java ext/Rakefile
appsignal-3.5.2 ext/Rakefile
appsignal-3.5.1-java ext/Rakefile
appsignal-3.5.1 ext/Rakefile
appsignal-3.5.0-java ext/Rakefile
appsignal-3.5.0 ext/Rakefile
appsignal-3.4.16-java ext/Rakefile
appsignal-3.4.16 ext/Rakefile
appsignal-3.4.15-java ext/Rakefile
appsignal-3.4.15 ext/Rakefile
appsignal-3.4.14-java ext/Rakefile
appsignal-3.4.14 ext/Rakefile
appsignal-3.4.13-java ext/Rakefile
appsignal-3.4.13 ext/Rakefile
appsignal-3.4.12-java ext/Rakefile
appsignal-3.4.12 ext/Rakefile
appsignal-3.4.11-java ext/Rakefile
appsignal-3.4.11 ext/Rakefile