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

ArgumentError: tried to create Proc object without a block #16

Open
mike927 opened this issue Apr 28, 2021 · 6 comments
Open

ArgumentError: tried to create Proc object without a block #16

mike927 opened this issue Apr 28, 2021 · 6 comments

Comments

@mike927
Copy link

mike927 commented Apr 28, 2021

Hello, upgraded my app to Ruby 3.0.1 and it looks like hurley-0.2 which is a dependency of your product broke the gem. Getting that error while calling DirectionsApi

2021-04-28T17:21:35.996Z pid=98696 tid=2ifg WARN: ArgumentError: tried to create Proc object without a block
2021-04-28T17:21:35.996Z pid=98696 tid=2ifg WARN: /Users/michal/.rvm/gems/ruby-3.0.1/gems/hurley-0.2/lib/hurley.rb:45:in `new'

Is it a chance somebody could fix it?

@mybuddyandrew
Copy link

I'm getting the same error

@AkermanisM
Copy link

I forked the hurley lib and potentialy fixed the place giving the error. Not sure if it's the correct way, but the google service works again in my project - https://github.com/AkermanisM/hurley

Minimally tested, but maybe it helps somebody.

@Miloshes
Copy link

Miloshes commented Mar 7, 2022

Great job @AkermanisM, your fork of hurley worked in my project as well.

@aames-cls
Copy link

I forked the hurley lib and potentialy fixed the place giving the error. Not sure if it's the correct way, but the google service works again in my project - https://github.com/AkermanisM/hurley

Minimally tested, but maybe it helps somebody.

I'm sorry. I'm a little slow. how did you fork/fix it? I'm having. this same issue and it's driving me nuts

@AkermanisM
Copy link

There is button in github interface called Fork, it will create a repository with identical code as the source repo.\

This is the commit where i fixed it AkermanisM/hurley@2f8924c

@aames-cls
Copy link

I added

gem 'hurley', :git => "https://github.com/AkermanisM/hurley.git"

to my Gemfile and now everything works like a charm! thanks you're the best :)

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

5 participants