logstash-devutils 2.6.1-java → 2.6.2-java

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: 4c840a65fc80e6a0abefd9b49ae35bad36ec3fee80e020eba517b3d891a0a6d7
4
- data.tar.gz: 281745793eac85e00749b7a78ec6e8b2d21c67c96b1507fe154d096e18644f92
3
+ metadata.gz: eaeaec6174b1598f32f8c0d1e5a0ce417b735eab237f5ea608eee10861bb5be6
4
+ data.tar.gz: 2ca9dbaeed76c02ab9dc99d58581928bdaa6a330b7da5aa02206d277cd140b62
5
5
  SHA512:
6
- metadata.gz: ae2946b9347b390407b3143b6f0153eea30f70a76c434ac03733bd32627218ace40b45206a35e08f81231b96c8f09ca93c55c33fb61f1122fade215900cbb816
7
- data.tar.gz: beceeb11b94ff52bc2bdf49d0120007b25de2cf21334c5be6a9f1bde5d6f14fc9bfebca22771994850094eeb4b3b054458d1c8c4e36f86b9d4ea813cc9d64099
6
+ metadata.gz: 21b60cf75fda26617855824a0b524b99941805e5283058add1652187437b5a18109a4c1bf97a92a948dbafa80bc1b775712883248e80030ce4fbf58a22abfd74
7
+ data.tar.gz: 9f32edbbb1919261a526e8d21eb5d4a177a2a96bd38e730ea5383a5b22b56beb79fe803f5df72360dc704d12c4e32dfc44dd1e36918877fbae5317f36cea76d8
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 2.6.2
2
+ - Fix: in case of redirected HTTP downloads, return the hash code of the downloaded artifact. [#106](https://github.com/elastic/logstash-devutils/pull/106)
3
+ - Fix: changed the prefix extraction from tar.gz name to the extracted folder name. [#109](https://github.com/elastic/logstash-devutils/pull/109)
4
+
1
5
  ## 2.6.1
2
6
  - Fix: updated implementation of downloading of vendored artifacts to follow HTTP redirections. [#105](https://github.com/elastic/logstash-devutils/pull/105)
3
7
 
@@ -69,8 +69,7 @@ def download(url, output, redirect_hops = 1)
69
69
  if location
70
70
  fail "Too many redirects to follow" if redirect_hops < 0
71
71
  puts "Follow redirect to: #{location}"
72
- download(location, output, redirect_hops - 1)
73
- return
72
+ return download(location, output, redirect_hops - 1)
74
73
  end
75
74
 
76
75
  size = (response["content-length"].to_i || -1).to_f
@@ -171,9 +170,10 @@ namespace "vendor" do
171
170
  @files.each do |file|
172
171
  download = file_fetch(file['url'], file['sha1'])
173
172
  if download =~ /.tar.gz/
174
- prefix = download.gsub('.tar.gz', '').gsub('vendor/', '')
175
173
  untar(download) do |entry|
176
174
  if !file['files'].nil?
175
+ # extraction folder name
176
+ prefix = entry.full_name.split("/").first
177
177
  next unless file['files'].include?(entry.full_name.gsub(prefix, ''))
178
178
  out = entry.full_name.split("/").last
179
179
  end
@@ -4,7 +4,7 @@ Gem::Specification.new do |spec|
4
4
  files = %x{git ls-files}.split("\n")
5
5
 
6
6
  spec.name = "logstash-devutils"
7
- spec.version = "2.6.1"
7
+ spec.version = "2.6.2"
8
8
  spec.license = "Apache-2.0"
9
9
  spec.authors = ["Elastic"]
10
10
  spec.email = "info@elastic.co"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-devutils
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.1
4
+ version: 2.6.2
5
5
  platform: java
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-25 00:00:00.000000000 Z
11
+ date: 2024-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement