Skip to content

incombatible with Ruby-3 / later gem versions (wrong number of arguments) #285

Closed
@hadmut

Description

Hi,

just to make the report reproducible, I'm using a docker file. This dockerfile works (with ruby-2.7):

FROM ruby:2-alpine

RUN apk add --update --upgrade --no-cache --virtual .build-dependencies gcc musl-dev make sqlite-dev &&
gem install gemstash &&
apk del .build-dependencies &&
rm -rf /var/cache/apk/*

CMD ["gemstash","start","--no-daemonize"]

But when replacing the FROM image with ruby:alpine (i.e. using ruby 3) it still compiles,yet the process results in

/usr/local/bundle/gems/gemstash-2.1.0/lib/gemstash/web.rb:10:in initialize': wrong number of arguments (given 1, expected 0) (ArgumentError) from /usr/local/bundle/gems/sinatra-2.1.0/lib/sinatra/base.rb:1527:in new'
[...]

regards

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions