Downloads of v


Last Update:


Package Maintainer(s):

Software Author(s):

  • Yukihiro Matsumoto


ruby language programming dynamic

Ruby (Portable)

This is not the latest version of Ruby (Portable) available. | Updated: 5/11/2015



Downloads of v



Software Author(s):

  • Yukihiro Matsumoto

Ruby (Portable)

This is not the latest version of Ruby (Portable) available.

All Checks are Unknown

2 Test of Unknown Status

Validation Testing Unknown

Verification Testing Unknown

To install Ruby (Portable), run the following command from the command line or from PowerShell:


To upgrade Ruby (Portable), run the following command from the command line or from PowerShell:


To uninstall Ruby (Portable), run the following command from the command line or from PowerShell:


NOTE: This applies to both open source and commercial editions of Chocolatey.

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Enter your internal repository url

(this should look similar to

4. Choose your deployment method:

choco upgrade ruby.portable -y --source="'STEP 3 URL'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:

choco upgrade ruby.portable -y --source="'STEP 3 URL'" 

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0

Exit $exitCode

- name: Ensure ruby.portable installed
    name: ruby.portable
    state: present
    source: STEP 3 URL

See docs at

Coming early 2020! Central Managment Reporting available now! More information...

chocolatey_package 'ruby.portable' do
  action    :install
  version  ''
  source   'STEP 3 URL'

See docs at

    Name: ruby.portable,
    Source: STEP 3 URL

Requires Otter Chocolatey Extension. See docs at

cChocoPackageInstaller ruby.portable
   Name     = 'ruby.portable'
   Ensure   = 'Present'
   Version  = ''
   Source   = 'STEP 3 URL'

Requires cChoco DSC Resource. See docs at

package { 'ruby.portable':
  provider => 'chocolatey',
  ensure   => '',
  source   => 'STEP 3 URL',

Requires Puppet Chocolatey Provider module. See docs at

salt '*' chocolatey.install ruby.portable version="" source="STEP 3 URL"

See docs at

5. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

This package is likely a meta/virtual (*) or an installer (*.install) or portable (*.portable) application package.

  • Meta/virtual (*) - has a dependency on the *.install or the *.portable package - it is provided for discoverability and for other packages to take a dependency on.
  • Portable (*.portable/*.commandline (deprecated naming convention)/*.tool (deprecated naming convention)) - usually zips or archives that require no administrative access to install.
  • Install (*.install/*.app (deprecated naming convention)) - uses native installers, usually requires administrative access to install.

Learn more about chocolatey's distinction of installed versus portable apps and/or learn about this kind of package.

This package was approved by moderator gep13 on 5/11/2015.


Ruby – A dynamic, open source programming language with a focus on simplicity and productivity. It has an elegant syntax that is natural to read and easy to write.

$packageName = 'ruby.portable'

# 1.8.7
#$url = ''
#$checksum = '2eabeb3bb210d088083c0c04fdf94c7e'

# 1.9.3
# $url = ''
# $checksum = '73ba6e292d3afec5cecc68ec64fd85bf'

# 2.0.0
$url = ''
$checksum = '57422903090e7001698c5b94ca47e1a6ee492c54'
$url64 = ''
$checksum64 = 'af37b28c15449d7adf05acd0717a9804460d8738'

# 2.1.5
#$url = ''
#$checksum = 'fe6b596fc47f503b0c0c01ebed16cf65'
#$url64 = ''
#$checksum64 = '2ebc791db99858a0bd586968cddfcf0d'

try {
  $toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
  $installDir = Join-Path $toolsDir "ruby"

  $file = Join-Path $toolsDir "$($packageName).7z"
  #Get-ChocolateyWebFile "$packageName" "$file" "$url" -checksum "$checksum"
  Get-ChocolateyWebFile "$packageName" "$file" "$url" "$url64"
  #Checksum type sha1 has a bug fixed in -
  #-checksum $checksum -checksumType 'sha1' -checksum64 $checksum64 -checksumType64 'sha1'

  Get-ChocolateyUnzip "$file" "$installDir" -packageName "$packageName"

  Write-ChocolateySuccess $packageName
} catch {
  Write-ChocolateyFailure $packageName $($_.Exception.Message)

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Version Downloads Last Updated Status
Ruby (Portable) 2.1.6 523 Monday, May 11, 2015 Approved
Ruby (Portable) 2.1.5 446 Monday, January 5, 2015 Approved
Ruby (Portable) 562 Thursday, October 2, 2014 Approved
Ruby (Portable) 249 Monday, May 11, 2015 Approved
Ruby (Portable) 258 Thursday, January 8, 2015 Approved
Ruby (Portable) 289 Thursday, October 2, 2014 Unknown
Ruby (Portable) 332 Wednesday, July 23, 2014 Unknown
Ruby (Portable) 264 Thursday, January 8, 2015 Approved

This package has no dependencies.

Discussion for the Ruby (Portable) Package

Ground Rules:

  • This discussion is only about Ruby (Portable) and the Ruby (Portable) package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or Ruby (Portable), or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus