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

to_h method undefined when copy a service #24

Closed
agouz opened this issue Oct 19, 2016 · 5 comments · Fixed by #25
Closed

to_h method undefined when copy a service #24

agouz opened this issue Oct 19, 2016 · 5 comments · Fixed by #25

Comments

@agouz
Copy link

agouz commented Oct 19, 2016

Hello team,

I've encountered the following error while trying to run the copy command on a service.

"to_h" method is undefined.

It worked after removing "to_h" from "end.to_h" @ Line 167 in 3scale-copy file (3scale_toolbox-0.2.2/exe)

@mikz
Copy link
Contributor

mikz commented Oct 19, 2016

@agouz what version of Ruby you are using? It was added in Ruby 2.1.

We should explicitly declare that version dependency. More things will be broken.

Will do a new release after merging #25.

@agouz
Copy link
Author

agouz commented Oct 19, 2016

I am using "ruby 2.0.0p648"....
I just followed the installation instruction found in the read me file.

@mikz
Copy link
Contributor

mikz commented Oct 19, 2016

Ruby 2.0 reached its end of life (https://www.ruby-lang.org/en/news/2016/02/24/support-plan-of-ruby-2-0-0-and-2-1/).
I'd suggest to update your Ruby version. We can't promise our code works on Ruby 2.0 because we are not testing against it anymore.

@agouz
Copy link
Author

agouz commented Oct 19, 2016

Thanks a lot

@mikz
Copy link
Contributor

mikz commented Oct 19, 2016

We should consider making a package that would have own Ruby. Proposed in #26.
But that will take time. So you can keep track of that issue if you'd like to get notified when that is done.

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

Successfully merging a pull request may close this issue.

2 participants