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 +4 -4
- data/Rakefile +4 -2
- data/lib/libddprof/version.rb +10 -2
- data/lib/libddprof.rb +4 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1dde092f4cb2c5d0ed206f0c0d36d9efe11be39d26212bd61c1d3b27c9c360bb
|
4
|
+
data.tar.gz: bc4e40192061eef7730bdeb91a2a1b0b9ea087e72b6848262394ed668ba74e57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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,
|
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
|
|
data/lib/libddprof/version.rb
CHANGED
@@ -4,6 +4,14 @@ module Libddprof
|
|
4
4
|
# Current libddprof version
|
5
5
|
LIB_VERSION = "0.2.0"
|
6
6
|
|
7
|
-
|
8
|
-
|
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
|
-
#
|
7
|
-
def self.
|
8
|
-
available_binaries.
|
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
|