CircleCI-Public / ruby-orb

The `circleci/ruby` orb source code.
https://circleci.com/developer/orbs/orb/circleci/ruby
MIT License
26 stars 53 forks source link

'ruby/install' doesn't respect version param #31

Closed josh-m-sharpe closed 4 years ago

josh-m-sharpe commented 4 years ago

Orb Version 1.0

Describe the bug

Followed instructions to have ruby installed. Ruby not installed.

To Reproduce

Use barebones example:

jobs:
  build:
    docker:
      - image: 'cimg/base:stable'
    steps:
      - checkout
      - ruby/install:
          version: '2.6.6'
      - run: echo "Ruby 2.6.6 has been installed"
orbs:
  ruby: circleci/ruby@1.0
version: 2.1

Expected behavior

ruby 2.6.6 would be installed

Additional context

It's pretty obvious from the code. The install step doesn't even use the version param except in the name of the step.

FelicianoTech commented 4 years ago

Thank you for editing your GitHub Issue.

Investigating.

FelicianoTech commented 4 years ago

Confirmed. Working on a fix.

FelicianoTech commented 4 years ago

@josh-m-sharpe v1.0.2 of the Ruby orb is now available. It includes the fix for the install command (major bug), and a fix/improvement for the install-deps command (minor bug).