Sha256: 1ec0e12523e8f4005cfba972a14097df7092f2c8a7030f5a29aeb1063feec3fe

Contents?: true

Size: 916 Bytes

Versions: 136

Compression:

Stored size: 916 Bytes

Contents

require File.expand_path("../base.rb", __FILE__)

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
  begin
    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 => error
    fail_installation_with_error(error)
  ensure
    create_dummy_makefile unless installation_succeeded?
    write_report
  end
end

Version data entries

136 entries across 136 versions & 1 rubygems

Version Path
appsignal-3.3.11-java ext/Rakefile
appsignal-3.3.11 ext/Rakefile
appsignal-3.4.0-java ext/Rakefile
appsignal-3.4.0 ext/Rakefile
appsignal-3.3.10-java ext/Rakefile
appsignal-3.3.10 ext/Rakefile
appsignal-3.3.9-java ext/Rakefile
appsignal-3.3.9 ext/Rakefile
appsignal-3.3.8-java ext/Rakefile
appsignal-3.3.8 ext/Rakefile
appsignal-3.3.7-java ext/Rakefile
appsignal-3.3.7 ext/Rakefile
appsignal-3.3.6-java ext/Rakefile
appsignal-3.3.6 ext/Rakefile
appsignal-3.3.5-java ext/Rakefile
appsignal-3.3.5 ext/Rakefile
appsignal-3.3.4-java ext/Rakefile
appsignal-3.3.4 ext/Rakefile
appsignal-3.3.3-java ext/Rakefile
appsignal-3.3.3 ext/Rakefile