Rest-Client response no longer a string
opened this issue · comments
As of version 1.3.0 and up, the Rest-Client gem now returns a RestClient::Response object instead of a String. This trips up the cloudcrowd server on line
def send_work_unit(unit)
result = node['/work'].post(:work_unit => unit.to_json)
unit.assign_to(self, JSON.parse(result)['pid'])
because the result is not a String object. I think a cast to_s might work, but we downgraded to Rest-Client 1.2 for now.
I'm having this very problem...
How can I config cloud-crowd dependencies? I've installed the rest-client v1.2.0 but the latest version (1.4.2) is used... I'd rather not uninstall the latest version of rest-client since I have other applications that depends on it on my machine...
Thanks
This is the same problem that was slowing down my development on the rackspace cloud asset store.
On master, the incompatibility with recent versions of RestClient is now fixed, and it will be part of the 0.4.0 release of CloudCrowd. Closing this ticket.