Skip to content

Commit

Permalink
AU: 4 updated - k9s ruby ruby.install ruby.portable
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocolatey Community committed Dec 26, 2023
1 parent eb0a9df commit 8b0ff86
Show file tree
Hide file tree
Showing 14 changed files with 40 additions and 37 deletions.
4 changes: 2 additions & 2 deletions automatic/k9s/k9s.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
<metadata>
<id>k9s</id>
<version>0.30.3</version>
<version>0.30.4</version>
<packageSourceUrl>https://github.com/chocolatey-community/chocolatey-packages/tree/master/automatic/k9s</packageSourceUrl>
<owners>chocolatey-community,Matteo Dell'Aquila (moebius87)</owners>
<title>k9s: Kubernetes CLI To Manage Your Clusters In Style!</title>
Expand Down Expand Up @@ -53,7 +53,7 @@ Customize/Arrange which columns to display on a per resource basis.
* Resource Graph Traversals
* K9s provides for easy traversal of Kubernetes resources and their associated resources.
]]></description>
<releaseNotes>https://github.com/derailed/k9s/blob/v0.30.3/change_logs/release_v0.30.3.md</releaseNotes>
<releaseNotes>https://github.com/derailed/k9s/blob/v0.30.4/change_logs/release_v0.30.4.md</releaseNotes>
<dependencies>
<dependency id="kubernetes-cli" />
</dependencies>
Expand Down
4 changes: 2 additions & 2 deletions automatic/k9s/legal/VERIFICATION.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ in verifying that this package's contents are trustworthy.
The embedded software can be verified by doing the following:

1. Download the following:
64-bit software: <https://github.com/derailed/k9s/releases/download/v0.30.3/k9s_Windows_amd64.zip>
64-bit software: <https://github.com/derailed/k9s/releases/download/v0.30.4/k9s_Windows_amd64.zip>

2. Get the checksum using one of the following methods:
- Using powershell function 'Get-FileHash'
Expand All @@ -15,6 +15,6 @@ The embedded software can be verified by doing the following:

3. The checksums should match the following:
checksum type: sha256
checksum64: 85DEC95672781E8F44545CAD13C8F3700F9F014CFFA780919681BF5457CD4704
checksum64: FF3B593B7C19ED71FB98A808765A43CFB0F7A5DB294DE73C3655C33C69006829

The file 'LICENSE.txt' has been obtained from <https://raw.githubusercontent.com/derailed/k9s/2e05367256a7b2777b011da7213cf636c9ae4d17/LICENSE>
10 changes: 5 additions & 5 deletions automatic/ruby.install/legal/VERIFICATION.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,21 @@ Package can be verified like this:

1. Go to

x32: https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.2.2-1/rubyinstaller-3.2.2-1-x86.exe
x64: https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.2.2-1/rubyinstaller-3.2.2-1-x64.exe
x32: https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.3.0-1/rubyinstaller-3.3.0-1-x86.exe
x64: https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.3.0-1/rubyinstaller-3.3.0-1-x64.exe

to download the installer.

2. You can use one of the following methods to obtain the SHA256 checksum:
- Use powershell function 'Get-FileHash'
- Use Chocolatey utility 'checksum.exe'

checksum32: 4AF9FEA1A16088DBD87CE680CB510BE10E3EAA89D15BF2F18466B27C3769F68E
checksum64: 62ABC1F520BD986BFFF2090C4DF2C77FE8BB6E21FBD02076D1EBB36662DDFD91
checksum32: A964939E86BBDB5FD5D9ADEF5CF16AF8187D708A0AF96F7368C9BFC90C093E84
checksum64: 3DF565A05CC8F8B825A319B0B343997460DD969C2BE4976C453205AAAB9D2AFF

Using AU:

Get-RemoteChecksum https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.2.2-1/rubyinstaller-3.2.2-1-x64.exe
Get-RemoteChecksum https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.3.0-1/rubyinstaller-3.3.0-1-x64.exe

File 'license.txt' is obtained from:
https://raw.githubusercontent.com/oneclick/rubyinstaller2/master/LICENSE.txt
3 changes: 2 additions & 1 deletion automatic/ruby.install/ruby.install.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@
"2.3": "2.3.3",
"2.2": "2.2.6",
"2.1": "2.1.9",
"3.2": "3.2.2.1"
"3.2": "3.2.2.1",
"3.3": "3.3.0.1"
}
2 changes: 1 addition & 1 deletion automatic/ruby.install/ruby.install.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<package xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<metadata>
<id>ruby.install</id>
<version>3.2.2.1</version>
<version>3.3.0.1</version>
<title>Ruby (Install)</title>
<authors>Yukihiro Matsumoto</authors>
<owners>chocolatey-community, Rob Reynolds</owners>
Expand Down
4 changes: 2 additions & 2 deletions automatic/ruby.install/tools/chocolateyInstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ Write-Host "Ruby is going to be installed in '$installDir'"
$packageArgs = @{
packageName = $env:ChocolateyPackageName
fileType = 'exe'
file = "$toolsPath\rubyinstaller-3.2.2-1-x86.exe"
file64 = "$toolsPath\rubyinstaller-3.2.2-1-x64.exe"
file = "$toolsPath\rubyinstaller-3.3.0-1-x86.exe"
file64 = "$toolsPath\rubyinstaller-3.3.0-1-x64.exe"
silentArgs = '/verysilent /dir="{0}" /tasks="{1}"' -f $installDir, ($tasks -join ',')
validExitCodes = @(0)
softwareName = 'ruby *'
Expand Down
12 changes: 6 additions & 6 deletions automatic/ruby.install/update.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import-module au
import-module au

$releases = 'https://rubyinstaller.org/downloads/archives/'

Expand Down Expand Up @@ -27,17 +27,17 @@ function GetStreams() {
$streams = @{ }

$re64 = 'x64\.exe$'
$x64releaseUrls = $releaseUrls | ? href -match $re64
$x64releaseUrls = $releaseUrls | Where-Object href -match $re64

$x64releaseUrls | % {
$version = $_ -replace '\-([\d]+)', '.$1' -replace 'rubyinstaller.' -replace 'ruby.' -split '/' | select -Last 1 -Skip 1
$x64releaseUrls | ForEach-Object {
$version = $_ -replace '\-([\d]+)', '.$1' -replace 'rubyinstaller.' -replace 'ruby.' -split '/' | Select-Object -Last 1 -Skip 1
if ($version -match '[a-z]') { Write-Host "Skipping prerelease: '$version'"; return }
$versionTwoPart = $version -replace '([\d]+\.[\d]+).*', "`$1"

if ($streams.$versionTwoPart) { return }

$url64 = $_ | Select-Object -ExpandProperty href
$url32 = $releaseUrls | ? href -notmatch $re64 | ? href -match $version | Select-Object -ExpandProperty href
$url32 = $releaseUrls | Where-Object href -notmatch $re64 | Where-Object href -match $version | Select-Object -ExpandProperty href

if (!$url32 -or !$url64) {
Write-Host "Skipping due to missing installer: '$version'"; return
Expand All @@ -54,7 +54,7 @@ function global:au_GetLatest {
$download_page = Invoke-WebRequest -Uri $releases -UseBasicParsing

$re = '\.exe$'
$releaseUrls = $download_page.links | ? href -match $re | ? { $_ -notmatch 'devkit' }
$releaseUrls = $download_page.links | Where-Object href -match $re | Where-Object { $_ -notmatch 'devkit' }

@{ Streams = GetStreams $releaseUrls }
}
Expand Down
10 changes: 5 additions & 5 deletions automatic/ruby.portable/legal/VERIFICATION.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,21 @@ Package can be verified like this:

1. Go to

x32: https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.2.2-1/rubyinstaller-3.2.2-1-x86.7z
x64: https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.2.2-1/rubyinstaller-3.2.2-1-x64.7z
x32: https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.3.0-1/rubyinstaller-3.3.0-1-x86.7z
x64: https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.3.0-1/rubyinstaller-3.3.0-1-x64.7z

to download the archives.

2. You can use one of the following methods to obtain the SHA256 checksum:
- Use powershell function 'Get-FileHash'
- Use Chocolatey utility 'checksum.exe'

checksum32: 9610B04045705D492E537743A8DE173A02B55F3EE963A4008A7FBD8DDBD87B21
checksum64: 1F0F55BA0790676BE6D701515A244159E9CA2D6314F1101560E3E8A277A2661E
checksum32: 68A25566AF07D2F7A5667CC6D92BCEF8539606585AEF0967E01A88A5C1150E5E
checksum64: 6A1BB52F692BEFC38C00CFAB64B20C7D73409D775518AF952677485597D75AD4

Using AU:

Get-RemoteChecksum https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.2.2-1/rubyinstaller-3.2.2-1-x64.7z
Get-RemoteChecksum https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.3.0-1/rubyinstaller-3.3.0-1-x64.7z

File 'license.txt' is obtained from:
https://raw.githubusercontent.com/oneclick/rubyinstaller2/master/LICENSE.txt
3 changes: 2 additions & 1 deletion automatic/ruby.portable/ruby.portable.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
"3.1": "3.1.4.1",
"3.0": "3.0.6.1",
"2.7": "2.7.7.1",
"3.2": "3.2.2.1"
"3.2": "3.2.2.1",
"3.3": "3.3.0.1"
}
2 changes: 1 addition & 1 deletion automatic/ruby.portable/ruby.portable.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<package xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<metadata>
<id>ruby.portable</id>
<version>3.2.2.1</version>
<version>3.3.0.1</version>
<title>Ruby (Portable)</title>
<authors>Yukihiro Matsumoto</authors>
<owners>chocolatey-community, Rob Reynolds</owners>
Expand Down
4 changes: 2 additions & 2 deletions automatic/ruby.portable/tools/chocolateyInstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
$toolsPath = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"

$packageArgs = @{
File = "$toolsPath\rubyinstaller-3.2.2-1-x86.7z"
File64 = "$toolsPath\rubyinstaller-3.2.2-1-x64.7z"
File = "$toolsPath\rubyinstaller-3.3.0-1-x86.7z"
File64 = "$toolsPath\rubyinstaller-3.3.0-1-x64.7z"
Destination = "$toolsPath\ruby"
PackageName = $env:ChocolateyPackageName
}
Expand Down
12 changes: 6 additions & 6 deletions automatic/ruby.portable/update.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import-module au
import-module au

$releases = 'https://rubyinstaller.org/downloads/archives/'
$fixBelowVersion = '3.1.3'
Expand Down Expand Up @@ -30,17 +30,17 @@ function GetStreams() {
# Temporarily limit the amount of URLs to use until we have at least
# one approved version. Then slowly increase the limit so we do not
# overwhelm anything.
$x64releaseUrls = $releaseUrls | ? href -match $re64 | select -First 3
$x64releaseUrls = $releaseUrls | Where-Object href -match $re64 | Select-Object -First 3

$x64releaseUrls | % {
$version = $_ -replace '\-([\d]+)', '.$1' -replace 'rubyinstaller.' -replace 'ruby.' -split '/' | select -Last 1 -Skip 1
$x64releaseUrls | ForEach-Object {
$version = $_ -replace '\-([\d]+)', '.$1' -replace 'rubyinstaller.' -replace 'ruby.' -split '/' | Select-Object -Last 1 -Skip 1
if ($version -match '[a-z]') { Write-Host "Skipping prerelease: '$version'"; return }
$versionTwoPart = $version -replace '([\d]+\.[\d]+).*', "`$1"

if ($streams.$versionTwoPart) { return }

$url64 = $_ | Select-Object -ExpandProperty href
$url32 = $releaseUrls | ? href -notmatch $re64 | ? href -match $version | Select-Object -ExpandProperty href
$url32 = $releaseUrls | Where-Object href -notmatch $re64 | Where-Object href -match $version | Select-Object -ExpandProperty href

if (!$url32 -or !$url64) {
Write-Host "Skipping due to missing installer: '$version'"; return
Expand All @@ -62,7 +62,7 @@ function global:au_GetLatest {
$download_page = Invoke-WebRequest -Uri $releases -UseBasicParsing

$re = '\.7z$'
$releaseUrls = $download_page.links | ? href -match $re | ? { $_ -notmatch 'doc' }
$releaseUrls = $download_page.links | Where-Object href -match $re | Where-Object { $_ -notmatch 'doc' }

@{ Streams = GetStreams $releaseUrls }
}
Expand Down
3 changes: 2 additions & 1 deletion automatic/ruby/ruby.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@
"2.3": "2.3.3",
"2.2": "2.2.6",
"2.1": "2.1.9",
"3.2": "3.2.2.1"
"3.2": "3.2.2.1",
"3.3": "3.3.0.1"
}
4 changes: 2 additions & 2 deletions automatic/ruby/ruby.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<package xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<metadata>
<id>ruby</id>
<version>3.2.2.1</version>
<version>3.3.0.1</version>
<title>Ruby</title>
<authors>Yukihiro Matsumoto</authors>
<owners>chocolatey-community, Rob Reynolds</owners>
Expand Down Expand Up @@ -34,7 +34,7 @@ Example: `choco install ruby --package-parameters="'/NoPath ""/InstallDir:C:\yo
<releaseNotes>https://www.ruby-lang.org/en/downloads/releases/</releaseNotes>
<iconUrl>https://cdn.jsdelivr.net/gh/chocolatey-community/chocolatey-packages@aad7c15bfbec43c3716f8a82bc3af22e1a55579d/icons/ruby.svg</iconUrl>
<dependencies>
<dependency id="ruby.install" version="[3.2.2.1]" />
<dependency id="ruby.install" version="[3.3.0.1]" />
</dependencies>
</metadata>
<files />
Expand Down

0 comments on commit 8b0ff86

Please sign in to comment.