Sha256: 293528a1b62d692a752161060948ac22d8aaa6333910d4ec4c97c0947fd71bb3

Contents?: true

Size: 878 Bytes

Versions: 56

Compression:

Stored size: 878 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
    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

56 entries across 56 versions & 1 rubygems

Version Path
appsignal-2.10.12 ext/Rakefile
appsignal-2.10.12-java ext/Rakefile
appsignal-2.10.11 ext/Rakefile
appsignal-2.10.11-java ext/Rakefile
appsignal-2.11.0.beta.4 ext/Rakefile
appsignal-2.11.0.beta.4-java ext/Rakefile
appsignal-2.11.0.beta.3 ext/Rakefile
appsignal-2.11.0.beta.3-java ext/Rakefile
appsignal-2.10.10 ext/Rakefile
appsignal-2.10.10-java ext/Rakefile
appsignal-2.11.0.beta.2 ext/Rakefile
appsignal-2.11.0.beta.2-java ext/Rakefile
appsignal-2.11.0.beta.1-java ext/Rakefile
appsignal-2.11.0.beta.1 ext/Rakefile
appsignal-2.11.0.alpha.2 ext/Rakefile
appsignal-2.11.0.alpha.2-java ext/Rakefile
appsignal-2.11.0.alpha.1 ext/Rakefile
appsignal-2.11.0.alpha.1-java ext/Rakefile
appsignal-2.10.9 ext/Rakefile
appsignal-2.10.9-java ext/Rakefile