fluent-plugin-fluent-package-update-notifier 0.2.3 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/fluent/plugin/fluent_package_update_checker.rb +14 -11
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f4415b49c83f3e66b9a8de69c86c69f0a71a1bff90f6f5800ccdf87aaa80ef9d
|
|
4
|
+
data.tar.gz: a717bd088e0f79f5d94f835503629debba331e3a6b0f606a53007440cae42ecf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a0d17e42755f3fc8ed61d2f976cd19d68c824f6e73e7ea6d60ceabe7edef8c250c5f4c9dbf27c94846a8603ff8e0d85572dd2f22e2bc0a4f274a1ae8c480883a
|
|
7
|
+
data.tar.gz: 204259fd7b172e6821dd034207512a14939b827d7b3508e7efb0712024504b5ebb5276c57b6ddf9781ece57dc1b0bdb7d39581a25cd1b6cda8f467629c7395ff
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
# 0.2.4 - 2026-10-19
|
|
2
|
+
|
|
3
|
+
* Fix checking the x64 msi for updates on ARM64 Windows (#26)
|
|
4
|
+
* Fix update check failing with TypeError on the standard channel (#27)
|
|
5
|
+
* Fix update check never finding deb packages on Debian and Ubuntu (#28)
|
|
6
|
+
* Fix update check never finding rpm packages on Red Hat compatible platforms and Amazon Linux (#29)
|
|
7
|
+
* Stop downloading whole packages when checking for updates (#30)
|
|
8
|
+
|
|
1
9
|
# 0.2.3 - 2025-08-28
|
|
2
10
|
|
|
3
11
|
* Remove unnecessary error log (#10)
|
|
@@ -24,6 +24,7 @@ module Fluent
|
|
|
24
24
|
@logger.info "Failed to load #{ENV["FLUENT_PACKAGE_CONFIG"] || DEFAULT_PACKAGE_CONFIG_PATH}"
|
|
25
25
|
end
|
|
26
26
|
@host_os = RbConfig::CONFIG['host_os']
|
|
27
|
+
@host_cpu = RbConfig::CONFIG['host_cpu']
|
|
27
28
|
Specinfra.configuration.backend = windows? ? :cmd : :exec
|
|
28
29
|
@os_info = Specinfra.backend.os_info
|
|
29
30
|
end
|
|
@@ -80,13 +81,15 @@ module Fluent
|
|
|
80
81
|
when "debian", "ubuntu"
|
|
81
82
|
@os_info[:arch] == "x86_64" ? "amd64" : "arm64"
|
|
82
83
|
when "redhat", "amazon"
|
|
83
|
-
@os_info[:arch] == "x86_64" ? "
|
|
84
|
+
@os_info[:arch] == "x86_64" ? "x86_64" : "aarch64"
|
|
85
|
+
when "windows"
|
|
86
|
+
@host_cpu == "aarch64" ? "arm64" : "x64"
|
|
84
87
|
end
|
|
85
88
|
end
|
|
86
89
|
|
|
87
90
|
def package_url(prefix, distribution, version)
|
|
88
91
|
major = version.segments.first
|
|
89
|
-
channel = @options[:lts] ? "lts/#{major}" : major
|
|
92
|
+
channel = @options[:lts] ? "lts/#{major}" : major.to_s
|
|
90
93
|
case distribution
|
|
91
94
|
when "debian", "ubuntu"
|
|
92
95
|
codename = @os_info[:codename]
|
|
@@ -94,18 +97,17 @@ module Fluent
|
|
|
94
97
|
"fluent-package_#{version}-1_#{package_arch}.deb"])
|
|
95
98
|
when "redhat"
|
|
96
99
|
major = Gem::Version.new(@os_info[:release]).segments.first
|
|
97
|
-
File.join([prefix, channel, distribution, major, package_arch,
|
|
98
|
-
"fluent-
|
|
100
|
+
File.join([prefix, channel, distribution, major.to_s, package_arch,
|
|
101
|
+
"fluent-package-#{version}-1.el#{major}.#{package_arch}.rpm"])
|
|
99
102
|
when "amazon/2023"
|
|
100
103
|
File.join([prefix, channel, distribution, package_arch,
|
|
101
|
-
"fluent-
|
|
104
|
+
"fluent-package-#{version}-1.amzn2023.#{package_arch}.rpm"])
|
|
102
105
|
when "amazon/2"
|
|
103
|
-
arch = @os_info[:arch] == "x86_64" ? "x64_64" : "aarch64"
|
|
104
106
|
File.join([prefix, channel, distribution, package_arch,
|
|
105
|
-
"fluent-
|
|
107
|
+
"fluent-package-#{version}-1.amzn2.#{package_arch}.rpm"])
|
|
106
108
|
when "windows"
|
|
107
109
|
File.join([prefix, channel, distribution,
|
|
108
|
-
"fluent-package-#{version}
|
|
110
|
+
"fluent-package-#{version}-#{package_arch}.msi"])
|
|
109
111
|
end
|
|
110
112
|
end
|
|
111
113
|
|
|
@@ -113,8 +115,7 @@ module Fluent
|
|
|
113
115
|
if linux?
|
|
114
116
|
case @os_info[:family]
|
|
115
117
|
when "debian", "ubuntu"
|
|
116
|
-
|
|
117
|
-
package_url(url_prefix, family_codename, target_version)
|
|
118
|
+
package_url(url_prefix, @os_info[:family], target_version)
|
|
118
119
|
when "redhat"
|
|
119
120
|
package_url(url_prefix, "redhat", target_version)
|
|
120
121
|
when "amazon"
|
|
@@ -136,7 +137,9 @@ module Fluent
|
|
|
136
137
|
major = target_version.segments.first
|
|
137
138
|
check_remote_packages(target_version) do |url|
|
|
138
139
|
begin
|
|
139
|
-
|
|
140
|
+
# Sec-GPC prevents Scarf Gateway from counting this check as a download
|
|
141
|
+
# https://docs.scarf.sh/gateway/#do-not-track
|
|
142
|
+
URI.open(url, "Range" => "bytes=0-0", "Sec-GPC" => "1")
|
|
140
143
|
return true
|
|
141
144
|
rescue => e
|
|
142
145
|
# package is not available
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fluent-plugin-fluent-package-update-notifier
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kentaro Hayashi
|
|
@@ -80,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
80
80
|
- !ruby/object:Gem::Version
|
|
81
81
|
version: '0'
|
|
82
82
|
requirements: []
|
|
83
|
-
rubygems_version:
|
|
83
|
+
rubygems_version: 4.0.20
|
|
84
84
|
specification_version: 4
|
|
85
85
|
summary: Notify latest version of fluent-package
|
|
86
86
|
test_files: []
|