libddprof 0.2.0.beta2-x86_64-linux → 0.2.0.1.0.beta3-x86_64-linux

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 202d6e7bf4bec36844e9ab60345cc04641530da53c1d430ef4d6fbcd570a44d8
4
- data.tar.gz: 0fcab9f94584a6ed8cb745cab8f6d233eb1984fb4cfd7ef3fc1f60a42909286f
3
+ metadata.gz: 1dde092f4cb2c5d0ed206f0c0d36d9efe11be39d26212bd61c1d3b27c9c360bb
4
+ data.tar.gz: bc4e40192061eef7730bdeb91a2a1b0b9ea087e72b6848262394ed668ba74e57
5
5
  SHA512:
6
- metadata.gz: 17df433bfacbacc48f3de3eb20dc7d74702792615447cb8fff9b2706aa84e1b0dd2cfba9cecdb300bbc94fda14e0ebe490733c7f35d42ade0f71c4e7a26c2808
7
- data.tar.gz: ef1f3a86842e50c7a98594ed29c3abfdf13b5ad742f75d449ac8d6f154f52567a5ece147b53be8b35f8e51192333ae666037c3913d72b353af7d99607592bca4
6
+ metadata.gz: 5493fe16d7bf9750dd1d126922daf76586923f264ee90a4e086f65c79eb3a4b2b6e00913024bf135944ea3f269b71d40f80d9574c4843746e7fe6cd5bab4dcce
7
+ data.tar.gz: 323fde160b1507f34beb611a5aa21fba9524ace4917104926f8be3ca042eae7d4f5b20c343f4f7efb158360116d9a6e40fd1a3c9cdd651c68121ce256fb0819b
data/Rakefile CHANGED
@@ -38,11 +38,13 @@ task :fetch do
38
38
  target_url = "https://github.com/DataDog/libddprof/releases/download/v#{Libddprof::LIB_VERSION}/#{file}"
39
39
 
40
40
  if File.exist?(target_file)
41
- if Digest::SHA256.hexdigest(File.read(target_file)) == sha256
41
+ target_file_hash = Digest::SHA256.hexdigest(File.read(target_file))
42
+
43
+ if target_file_hash == sha256
42
44
  puts "Found #{target_file} matching the expected sha256, skipping download"
43
45
  next
44
46
  else
45
- puts "Found #{target_file} BUT IT DID NOT MATCH THE EXPECTED sha256, skipping download"
47
+ puts "Found #{target_file} with hash (#{target_file_hash}) BUT IT DID NOT MATCH THE EXPECTED sha256 (#{sha256}), downloading it again..."
46
48
  end
47
49
  end
48
50
 
@@ -4,6 +4,14 @@ module Libddprof
4
4
  # Current libddprof version
5
5
  LIB_VERSION = "0.2.0"
6
6
 
7
- # This is the Ruby gem version -- often it will match LIB_VERSION, but sometimes it may not
8
- VERSION = "#{LIB_VERSION}.beta2"
7
+ GEM_MAJOR_VERSION = "1"
8
+ GEM_MINOR_VERSION = "0"
9
+ GEM_PRERELEASE_VERSION = ".beta3"
10
+ private_constant :GEM_MAJOR_VERSION, :GEM_MINOR_VERSION, :GEM_PRERELEASE_VERSION
11
+
12
+ # The gem version scheme is lib_version.gem_major.gem_minor[.prerelease].
13
+ # This allows a version constraint such as ~> 0.2.0.1.0 in the consumer (ddtrace), in essence pinning the libddprof to
14
+ # a specific version like = 0.2.0, but still allow a) introduction of a gem-level breaking change by bumping gem_major
15
+ # and b) allow to push automatically picked up bugfixes by bumping gem_minor.
16
+ VERSION = "#{LIB_VERSION}.#{GEM_MAJOR_VERSION}.#{GEM_MINOR_VERSION}#{GEM_PRERELEASE_VERSION}"
9
17
  end
data/lib/libddprof.rb CHANGED
@@ -3,11 +3,12 @@
3
3
  require_relative "libddprof/version"
4
4
 
5
5
  module Libddprof
6
- # Is this a no-op libddprof release without binaries?
7
- def self.no_binaries?
8
- available_binaries.empty?
6
+ # Does this libddprof release include any binaries?
7
+ def self.binaries?
8
+ available_binaries.any?
9
9
  end
10
10
 
11
+ # This should only be used for debugging/logging
11
12
  def self.available_binaries
12
13
  File.directory?(vendor_directory) ? Dir.children(vendor_directory) : []
13
14
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libddprof
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0.beta2
4
+ version: 0.2.0.1.0.beta3
5
5
  platform: x86_64-linux
6
6
  authors:
7
7
  - Datadog, Inc.