Skip to content

Minimum Ruby version is incompatible with current code #301

Closed
@danielparks

Description

@danielparks

Describe the Bug

puppet-strings.gemspec reports that the minimum version of Ruby supported is 2.3.0, but there is unsupported code (match?) since at least 08936f9.

There are also a bunch of unsupported dependency problems, but that can be solved with the brute force addition of a lot of version constraints.

Switching to ruby 2.6.0p0 makes the code work fine without problems.

Expected Behavior

You should be able to install dependencies and run unit tests with the minimum ruby version.

Steps to Reproduce

Steps to reproduce the behavior:

  1. rbenv install 2.3.0 && rbenv local 2.3.0
  2. gem install bundler:1.13.7 (later versions may work)
  3. bundle install --path .bundle/gems (this will fail)
  4. Add a bunch of version constraints to Gemfile.
  5. bundle install --path .bundle/gems
  6. bundle exec rake spec
. . .
      RuntimeError:
        Processing (stdin):13 with . . . => undefined method `match?' for /ruby4x/:Regexp
. . .

Environment

  • ruby 2.3.0p0
  • macOS 12.6.0
  • Current main branch (dba16ed)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions