Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mustermann (1.0.3) won't work with Ruby 3.2 #21

Open
Fuzzwah opened this issue Jan 25, 2023 · 2 comments
Open

mustermann (1.0.3) won't work with Ruby 3.2 #21

Fuzzwah opened this issue Jan 25, 2023 · 2 comments

Comments

@Fuzzwah
Copy link

Fuzzwah commented Jan 25, 2023

/usr/local/lib/ruby/gems/3.2.0/gems/mustermann-1.0.3/lib/mustermann/regular.rb:22:in `initialize': wrong number of arguments (given 2, expected 1) (ArgumentError)
	from /usr/local/lib/ruby/gems/3.2.0/gems/mustermann-1.0.3/lib/mustermann/pattern.rb:59:in `new'
	from /usr/local/lib/ruby/gems/3.2.0/gems/mustermann-1.0.3/lib/mustermann/pattern.rb:59:in `block in new'
	from /usr/local/lib/ruby/gems/3.2.0/gems/mustermann-1.0.3/lib/mustermann/equality_map.rb:43:in `fetch'
	from /usr/local/lib/ruby/gems/3.2.0/gems/mustermann-1.0.3/lib/mustermann/pattern.rb:59:in `new'
	from /usr/local/lib/ruby/gems/3.2.0/gems/mustermann-1.0.3/lib/mustermann.rb:67:in `new'
	from /usr/local/lib/ruby/gems/3.2.0/gems/mustermann-1.0.3/lib/mustermann.rb:70:in `block in new'
	from /usr/local/lib/ruby/gems/3.2.0/gems/mustermann-1.0.3/lib/mustermann.rb:70:in `map'
	from /usr/local/lib/ruby/gems/3.2.0/gems/mustermann-1.0.3/lib/mustermann.rb:70:in `new'
	from /usr/local/lib/ruby/gems/3.2.0/gems/sinatra-2.0.4/lib/sinatra/base.rb:1641:in `compile'
	from /usr/local/lib/ruby/gems/3.2.0/gems/sinatra-2.0.4/lib/sinatra/base.rb:1629:in `compile!'
	from /usr/local/lib/ruby/gems/3.2.0/gems/sinatra-2.0.4/lib/sinatra/base.rb:1271:in `error'
	from /usr/local/lib/ruby/gems/3.2.0/gems/sinatra-2.0.4/lib/sinatra/base.rb:1838:in `<class:Base>'
	from /usr/local/lib/ruby/gems/3.2.0/gems/sinatra-2.0.4/lib/sinatra/base.rb:894:in `<module:Sinatra>'
	from /usr/local/lib/ruby/gems/3.2.0/gems/sinatra-2.0.4/lib/sinatra/base.rb:22:in `<top (required)>'
	from /usr/local/lib/ruby/gems/3.2.0/gems/sinatra-2.0.4/lib/sinatra/main.rb:1:in `require'
	from /usr/local/lib/ruby/gems/3.2.0/gems/sinatra-2.0.4/lib/sinatra/main.rb:1:in `<top (required)>'
	from /usr/local/lib/ruby/gems/3.2.0/gems/sinatra-2.0.4/lib/sinatra.rb:1:in `require'
	from /usr/local/lib/ruby/gems/3.2.0/gems/sinatra-2.0.4/lib/sinatra.rb:1:in `<top (required)>'
	from template_server.rb:1:in `require'
	from template_server.rb:1:in `<main>'
@shiyuhang0
Copy link

shiyuhang0 commented Feb 9, 2023

meet the same error.
I upgrade the octokit in order to support check API. octokit 6.0 need ruby >=2.7, so I upgrade ruby to 3.2. then I find mustermann can not work with it.

Any workaround now?

@horatiothomas
Copy link

OP created a pr: #22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants