-
Notifications
You must be signed in to change notification settings - Fork 27
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
old curb version uninstallable #15
Comments
Hey @jon-ga, thank you for reporting the issue, having the same problem here. Did the newer version of curb work for you? |
Hey, I'm facing the same issue. did you have any luck with this? if so, what fixed it for you? |
Hi @ritikesh, it never worked for me. Ended up just writing some ruby code to post info directly through the API. Here's a snippet: def post_to_hubspot(firstname, lastname, phone, email, company, source, employees)
properties = { properties: [ { property: 'email', value: email },
{ property: 'firstname', value: firstname },
{ property: 'lastname', value: lastname },
{ property: 'company', value: company },
{ property: 'employees', value: employees },
{ property: 'phone', value: phone },
{ property: 'source', value: source } ] }
url = "https://api.hubapi.com/contacts/v1/contact/?" \
"access_token=#{access_token}"
uri = URI.parse(url)
request = Net::HTTP::Post.new(uri)
request.content_type = "application/json"
request.body = JSON.dump(properties)
response = Net::HTTP.start(uri.hostname,
uri.port,
use_ssl: uri.scheme == "https") do |http|
http.request(request)
end
response
end |
ah, very well. Thanks! :) |
I haven't worked with this library since I filed this issue. Given that the last commit was on Mar 10, 2014, there is a significant amount of bit rot. You could try upgrading the gems in Gemfile.lock (the newest issue is that the older version of the JSON gem is no longer installable), or you could create your own minimal integration as @nicobrenner posted above. The latter is your best bet, in my opinion. |
Summary: You're depending upon an old version of curb and should upgrade.
You have curb pinned to 0.7:
s.add_runtime_dependency(%q<curb>, ["~> 0.7.12"])
0.7.18 was released in January 2012.
I'm receiving the error below when trying to run
gem install r_hapi
. I came upon the following github issue which tells me that a newer version of curb should be used: taf2/curb#234I manually updated the gemspec to depend upon curb 0.8.8 and it installed fine. I can't verify if there have been any breaking changes between 0.7 and 0.8, at the moment, as I'm still getting my API credentials.
The text was updated successfully, but these errors were encountered: