logstash-devutils 2.5.0-java → 2.6.1-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/CHANGELOG.md +6 -0
- data/lib/logstash/devutils/rake/vendor.rake +13 -1
- data/lib/logstash/devutils/rspec/spec_helper.rb +0 -14
- data/logstash-devutils.gemspec +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c840a65fc80e6a0abefd9b49ae35bad36ec3fee80e020eba517b3d891a0a6d7
|
4
|
+
data.tar.gz: 281745793eac85e00749b7a78ec6e8b2d21c67c96b1507fe154d096e18644f92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae2946b9347b390407b3143b6f0153eea30f70a76c434ac03733bd32627218ace40b45206a35e08f81231b96c8f09ca93c55c33fb61f1122fade215900cbb816
|
7
|
+
data.tar.gz: beceeb11b94ff52bc2bdf49d0120007b25de2cf21334c5be6a9f1bde5d6f14fc9bfebca22771994850094eeb4b3b054458d1c8c4e36f86b9d4ea813cc9d64099
|
data/.gitignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
.idea
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
## 2.6.1
|
2
|
+
- Fix: updated implementation of downloading of vendored artifacts to follow HTTP redirections. [#105](https://github.com/elastic/logstash-devutils/pull/105)
|
3
|
+
|
4
|
+
## 2.6.0
|
5
|
+
- Removed SimpleCov configuration, as it will be moved directly to elastic/logstash [#103](https://github.com/elastic/logstash-devutils/pull/103)
|
6
|
+
|
1
7
|
## 2.5.0
|
2
8
|
- Bumped kramdown dependency to "~> 2"
|
3
9
|
|
@@ -53,7 +53,7 @@ ensure
|
|
53
53
|
fd.close if fd
|
54
54
|
end
|
55
55
|
|
56
|
-
def download(url, output)
|
56
|
+
def download(url, output, redirect_hops = 1)
|
57
57
|
uri = URI(url)
|
58
58
|
digest = Digest::SHA1.new
|
59
59
|
tmp = "#{output}.tmp"
|
@@ -61,6 +61,18 @@ def download(url, output)
|
|
61
61
|
request = Net::HTTP::Get.new(uri.path)
|
62
62
|
http.request(request) do |response|
|
63
63
|
fail "HTTP fetch failed for #{url}. #{response}" if [200, 301].include?(response.code)
|
64
|
+
case response
|
65
|
+
when Net::HTTPRedirection, Net::HTTPFound then
|
66
|
+
location = response['location']
|
67
|
+
end
|
68
|
+
|
69
|
+
if location
|
70
|
+
fail "Too many redirects to follow" if redirect_hops < 0
|
71
|
+
puts "Follow redirect to: #{location}"
|
72
|
+
download(location, output, redirect_hops - 1)
|
73
|
+
return
|
74
|
+
end
|
75
|
+
|
64
76
|
size = (response["content-length"].to_i || -1).to_f
|
65
77
|
count = 0
|
66
78
|
File.open(tmp, "w") do |fd|
|
@@ -1,17 +1,3 @@
|
|
1
|
-
if ENV['COVERAGE']
|
2
|
-
require 'simplecov'
|
3
|
-
require 'coveralls'
|
4
|
-
|
5
|
-
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
|
6
|
-
SimpleCov::Formatter::HTMLFormatter,
|
7
|
-
Coveralls::SimpleCov::Formatter
|
8
|
-
]
|
9
|
-
SimpleCov.start do
|
10
|
-
add_filter 'spec/'
|
11
|
-
add_filter 'vendor/'
|
12
|
-
end
|
13
|
-
end
|
14
|
-
|
15
1
|
require "logstash-core"
|
16
2
|
require "logstash/logging"
|
17
3
|
require "logstash/devutils/rspec/logstash_helpers"
|
data/logstash-devutils.gemspec
CHANGED
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.
|
4
|
+
version: 2.6.1
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -157,6 +157,7 @@ executables: []
|
|
157
157
|
extensions: []
|
158
158
|
extra_rdoc_files: []
|
159
159
|
files:
|
160
|
+
- ".gitignore"
|
160
161
|
- CHANGELOG.md
|
161
162
|
- Gemfile
|
162
163
|
- LICENSE
|